Jump to content

Home

NPC Help


Zappa_0

Recommended Posts

Hello, I am having problems making NPC's. I have tried it two ways:

 

1) Using notepad and adding what needs to be added and save it as a .npc file.

 

2) the NPC editor.

 

Both ways leads to cannot spawn file. I was wondering if someone can help me with this, its really bugging me!

Link to comment
Share on other sites

Post an example of a npc file you are using. Here's what I'm using for the Darth Malak model:

 

 

 

malak

{

playerModel malak

saber darth_malak

sabercolor red

weapon WP_SABER

saberStyle 4

FP_HEAL 0

FP_LEVITATION 3

FP_SPEED 3

FP_PUSH 3

FP_PULL 3

FP_TELEPATHY 3

FP_GRIP 3

FP_LIGHTNING 3

FP_RAGE 3

FP_PROTECT 0

FP_ABSORB 0

FP_DRAIN 0

FP_SEE 3

FP_SABERTHROW 3

FP_SABER_DEFENSE 3

FP_SABER_OFFENSE 3

forceRegenRate 50

rank captain

reactions 3

aim 3

move 5

aggression 3

evasion 5

intelligence 5

hfov 160

vfov 160

scale 100

height 78

crouchheight 42

width 18

playerTeam TEAM_ENEMY

enemyTeam TEAM_PLAYER

// race human

class CLASS_DESANN

yawSpeed 120

walkSpeed 55

runSpeed 200

snd malak

sndcombat malak

sndjedi malak

health 1000

dismemberProbHead 55

dismemberProbArms 40

dismemberProbLegs 40

dismemberProbHands 55

dismemberProbWaist 55

}

 

 

 

just make sure that "playerModel" points to the directory which your model is in.

Link to comment
Share on other sites

Sorry for the delay, havent been able to get on much this week. So heres the text you wanted me to post:

 

 

 

Tyrion Jedi

{

playerModel jedi_tyrion

saber single_quigon

saberColor green

weapon WP_SABER

saberStyle 1

saberStyle 3

saberStyle 2

FP_HEAL 3

FP_LEVITATION 0

FP_SPEED 1

FP_PUSH 4

FP_PULL 3

FP_TELEPATHY 2

FP_GRIP 0

FP_LIGHTNING 0

FP_SABERTHROW 3

FP_RAGE 0

FP_PROTECT 3

FP_ABSORB 3

FP_DRAIN 0

FP_SEE 0

FP_SABER_DEFENSE 3

FP_SABER_OFFENSE 3

forcePowerMax 200

rank captain

reactions 3

aim 3

move 3

aggression 3

evasion 5

intelligence 3

playerTeam TEAM_PLAYER

enemyTeam TEAM_ENEMY

class CLASS_LUKE

yawSpeed 140

walkSpeed 55

runSpeed 200

// race human

snd jedi_tyrion

sndcombat jedi_tyrion

sndjedi jedi_tyrion

health 900

dismemberProbHead 0

dismemberProbArms 0

dismemberProbLegs 0

dismemberProbHands 0

dismemberProbWaist 0

}

Link to comment
Share on other sites

yea maybe but even if it was one word it still wont work.

 

Heres another example:

 

YodaGhost

{

playerModel yodaghost

 

weapon WP_MELEE

 

rank captain

reactions 5

aim 5

move 5

aggression 3

evasion 5

intelligence 5

hfov 160

vfov 160

scale 48

height 40

crouchheight 30

width 18

playerTeam TEAM_PLAYER

enemyTeam TEAM_ENEMY

class CLASS_LUKE

yawSpeed 140

walkSpeed 50

runSpeed 300

// race human

snd yodaghost

sndcombat yodaghost

sndjedi yodaghost

health 1400

dismemberProbHead 0

dismemberProbArms 0

dismemberProbLegs 0

dismemberProbHands 0

dismemberProbWaist 0

Link to comment
Share on other sites

  • 2 weeks later...
  • 5 weeks later...

My experience with this issue is that 99.9% of the people that have this error either, put the npc file in the wrong directory or they pk3 it wrong or they just don't know how to properly spawn an NPC.

 

Looking at your NPC code, there don't seem to be any errors except for the fact that i don't see a } at the end, but that's probably just a copy & paste error. Also, that yodaghost playermodel doesn't seem familiar, so I'm thinking it's just some skin you downloaded somewhere.

 

So all I can say is make sure that you put your NPC in the ext_date/npcs directory in the base dir. Also consider that if you're trying to spawn in Multiplayer you might need to pack it into a pk3, INCLUDING the appropriate directory structure(ext_data/npcs). If you're running it in Single Player, pk3'ing it is not necessary.

Link to comment
Share on other sites

This is just a shot in the dark here, but ... are you saving it as a .npc file or ... a .txt.npc file. I've been trying to help people make their own little npc replacements and I've discovered they couldn't change extension because, well, they couldn't see them.

 

Find your folder options, either by the tools menu on top of any opened folder or in your control panel. Once there, go to the "view" tab on top and find an option called "hide extensions for know file typed" and make sure it's UNCHECKED.

 

Now try making your .txt into a .npc. Again, this is just something I've come across before and thought I'd try to help here.

 

Edit: Eh, I just re-read what you said and I ... suppose my help isn't going to, well, help. Sorry about that.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...