Circa Posted March 14, 2013 Posted March 14, 2013 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.
eezstreet Posted March 14, 2013 Posted March 14, 2013 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)
Circa Posted March 14, 2013 Author Posted March 14, 2013 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.
eezstreet Posted March 14, 2013 Posted March 14, 2013 Change the class to CLASS_JAWA and it should work. For fun, you could replace the jawa sound with jarjar saying "Mesa Jar Jar Binks"
Circa Posted March 14, 2013 Author Posted March 14, 2013 That didn't work. It made him walk around like a jawa though. Quite entertaining.
eezstreet Posted March 14, 2013 Posted March 14, 2013 It's hardcoded, looks like, to spawn with a blaster if it's on TEAM_PLAYER. Setting it to neutral team seems to work.
Solution eezstreet Posted March 14, 2013 Solution Posted March 14, 2013 Additionally, these NPC names are hardcoded to spawn with no weapon: MonMothmaAnything 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"interrogatorsentryugnaught therfiles likes this
Circa Posted March 14, 2013 Author Posted March 14, 2013 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 ugnaughtOkay it worked. Thanks a lot!
therfiles Posted March 14, 2013 Posted March 14, 2013 Additionally, these NPC names are hardcoded to spawn with no weapon: MonMothmaAnything 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"interrogatorsentryugnaught Wow....I never knew this! Great to know, thanks! Circa likes this
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now