Jump to content

NPC with No Weapon


Go to solution Solved by eezstreet,

Recommended Posts

Is there a way to actually have an NPC with no weapon? Every time I set the weapon to WP_NONE, it gives them a blaster rifle. I tried setting the class to CLASS_PRISONER since the prisoners and elders don't have any weapons but nothing worked.

 

This isn't for scripting or anything, just a normal NPC file for a mod and also curiousity.

spacer.png

Link to comment

What's the NPC's name? You might have to set them to CLASS_UGNAUGHT or CLASS_JAWA in order for it to work properly, not CLASS_PRISONER. Also if you're replacing an NPC, keep in mind that ICARUS can assign NPCs weapons (examples: NPCs in the bar on ns_streets, prisoners on artus_detention, et al)

Link to comment

What's the NPC's name? You might have to set them to CLASS_UGNAUGHT or CLASS_JAWA in order for it to work properly, not CLASS_PRISONER. Also if you're replacing an NPC, keep in mind that ICARUS can assign NPCs weapons (examples: NPCs in the bar on ns_streets, prisoners on artus_detention, et al)

The name is JarJar. 

 

I tried spawning an elder though and it didn't have a weapon so I know it's not from that.

 

I renamed the NPC to elder and that worked. That's annoying though because I don't really want to replace the elder NPCs.

 

I'll try the other classes. I've been using the thread you helped with on FileFront with NPC stuff. It's pretty helpful stuff. I've been trying to get a fast firing rate for an NPC too.

spacer.png

Link to comment
  • Solution

Additionally, these NPC names are hardcoded to spawn with no weapon:

 

MonMothma

Anything beginning with "elder" (such as elder_jarjarbinks)

Anything beginning with "prisoner" (such as prisoner_jarjarbinks)

 

All neutral NPCs will spawn with WP_NONE, regardless of class.

 

These "enemy" types:

 

Anything beginning with "protocol"

interrogator

sentry

ugnaught

therfiles likes this
Link to comment

Additionally, these NPC names are hardcoded to spawn with no weapon:

 

MonMothma

Anything beginning with "elder" (such as elder_jarjarbinks)

Anything beginning with "prisoner" (such as prisoner_jarjarbinks)

 

All neutral NPCs will spawn with WP_NONE, regardless of class.

 

These "enemy" types:

 

Anything beginning with "protocol"

interrogator

sentry

ugnaught

Okay it worked. Thanks a lot!

spacer.png

Link to comment

Additionally, these NPC names are hardcoded to spawn with no weapon:

 

MonMothma

Anything beginning with "elder" (such as elder_jarjarbinks)

Anything beginning with "prisoner" (such as prisoner_jarjarbinks)

 

All neutral NPCs will spawn with WP_NONE, regardless of class.

 

These "enemy" types:

 

Anything beginning with "protocol"

interrogator

sentry

ugnaught

 

 

Wow....I never knew this! Great to know, thanks! :P

Circa likes this
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...