Jump to content

Home

making npc's


telumendil420

Recommended Posts

Ok. Here is an NPC entry:

 

cultist
{
playerModel	cultist
weapon	WP_BLASTER
altfire 1
FP_LEVITATION	3
FP_SPEED		2
FP_PUSH		2
FP_PULL		2
FP_GRIP		1
FP_LIGHTNING	1
FP_DRAIN		1
rank		ltcomm
reactions	1
aim			1
move		1
aggression	1
evasion		1
intelligence	1
hfov		120
vfov		120
playerTeam	TEAM_ENEMY
enemyTeam	TEAM_PLAYER
//	race		human
class		CLASS_REBORN
snd			cultist1
sndcombat	cultist1
sndjedi		cultist1
yawSpeed	60
walkSpeed	45
runSpeed	180
health		50
dismemberProbHead	0
dismemberProbArms	20
dismemberProbLegs	0
dismemberProbHands	30
dismemberProbWaist	0
}

 

All you have to do, is make the playerModel line the name of the directory of the custom model. It will by default use the model_default skin. If you want it to be a red guy instead, add in the line: customSkin red, and it will use the model_red.skin file.

 

You should then name the NPC something new, and package the .npc file in a pk3 under the directory ext_data/npcs/ and place the pk3 file in the base directory, and the new npc should be spawnable in-game using the npc spawn <npcname> console command.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...