Guest Redemption Posted April 9, 2017 Share Posted April 9, 2017 Hi, I want to trim down my npc spawn list by making npc spawn reborn, spawn either rebornboss; rebornacrobat; rebornforceuser; rebornfencer or reborn... but when I use the random code for an example: void SP_NPC_Weequay( gentity_t *self) { if ( !self->NPC_type ) { switch ( Q_irand( 0, 3 ) ) { case 0: self->NPC_type = "Weequay"; break; case 1: self->NPC_type = "Weequay2"; break; case 2: self->NPC_type = "Weequay3"; break; case 3: self->NPC_type = "Weequay4"; break; } } SP_NPC_spawner( self ); }Only one case spawns. I don't understand why they would have these other cases setup if they don't function. Will anybody help me get the random spawner to work? Smoo likes this Link to comment
Daedra Posted April 9, 2017 Share Posted April 9, 2017 Hi, I want to trim down my npc spawn list by making npc spawn reborn, spawn either rebornboss; rebornacrobat; rebornforceuser; rebornfencer or reborn... but when I use the random code for an example: void SP_NPC_Weequay( gentity_t *self) { if ( !self->NPC_type ) { switch ( Q_irand( 0, 3 ) ) { case 0: self->NPC_type = "Weequay"; break; case 1: self->NPC_type = "Weequay2"; break; case 2: self->NPC_type = "Weequay3"; break; case 3: self->NPC_type = "Weequay4"; break; } } SP_NPC_spawner( self ); }Only one case spawns. I don't understand why they would have these other cases setup if they don't function. Will anybody help me get the random spawner to work? Just make new npc files, but use the jedi_random.npc file from the base assets as your template. Then you can do something like "reborn_random.npc" and change all the names inside to the reborn files. Here is the jedi_random.npc for easier access: jedi_hf1 { playerModel jedi_hf customSkin head_B1|torso_C1|lower_D1 // customRGBA 255 157 114 customRGBA jedi_hf saber single_1 saberColor random weapon WP_SABER saberStyle 1 saberStyle 3 saberStyle 2 FP_HEAL 1 FP_LEVITATION 2 FP_SPEED 2 FP_PUSH 2 FP_PULL 1 FP_TELEPATHY 1 FP_GRIP 0 FP_LIGHTNING 0 FP_RAGE 0 FP_PROTECT 1 FP_ABSORB 1 FP_DRAIN 0 FP_SEE 1 FP_SABERTHROW 2 FP_SABER_DEFENSE 3 FP_SABER_OFFENSE 3 forceRegenRate 150 forcePowerMax 90 rank lt reactions 3 aim 3 move 3 aggression 3 evasion 2 intelligence 3 playerTeam TEAM_PLAYER enemyTeam TEAM_ENEMY class CLASS_JEDI yawSpeed 140 walkSpeed 55 runSpeed 200 sex female snd female_jedi1 sndcombat female_jedi1 sndjedi female_jedi1 health 200 dismemberProbHead 0 dismemberProbArms 5 dismemberProbLegs 0 dismemberProbHands 10 dismemberProbWaist 0 } jedi_hf2 { playerModel jedi_hf customSkin head_C1|torso_A1|lower_B1 // customRGBA 233 183 208 customRGBA jedi_hf saber single_2 saberColor random weapon WP_SABER saberStyle 1 saberStyle 3 saberStyle 2 FP_HEAL 1 FP_LEVITATION 2 FP_SPEED 2 FP_PUSH 2 FP_PULL 1 FP_TELEPATHY 1 FP_GRIP 0 FP_LIGHTNING 0 FP_RAGE 0 FP_PROTECT 1 FP_ABSORB 1 FP_DRAIN 0 FP_SEE 1 FP_SABERTHROW 2 FP_SABER_DEFENSE 3 FP_SABER_OFFENSE 3 forceRegenRate 150 forcePowerMax 90 rank lt reactions 3 aim 3 move 3 aggression 3 evasion 2 intelligence 3 playerTeam TEAM_PLAYER enemyTeam TEAM_ENEMY class CLASS_JEDI yawSpeed 140 walkSpeed 55 runSpeed 200 sex female snd female_jedi1 sndcombat female_jedi1 sndjedi female_jedi1 health 200 dismemberProbHead 0 dismemberProbArms 5 dismemberProbLegs 0 dismemberProbHands 10 dismemberProbWaist 0 } jedi_hm1 { playerModel jedi_hm customSkin head_A1|torso_A1|lower_B1 // customRGBA 112 153 161 customRGBA jedi_hm saber single_3 saberColor random weapon WP_SABER saberStyle 1 saberStyle 3 saberStyle 2 FP_HEAL 1 FP_LEVITATION 2 FP_SPEED 2 FP_PUSH 2 FP_PULL 1 FP_TELEPATHY 1 FP_GRIP 0 FP_LIGHTNING 0 FP_RAGE 0 FP_PROTECT 1 FP_ABSORB 1 FP_DRAIN 0 FP_SEE 1 FP_SABERTHROW 2 FP_SABER_DEFENSE 3 FP_SABER_OFFENSE 3 forceRegenRate 150 forcePowerMax 90 rank lt reactions 3 aim 3 move 3 aggression 3 evasion 2 intelligence 3 playerTeam TEAM_PLAYER enemyTeam TEAM_ENEMY class CLASS_JEDI yawSpeed 140 walkSpeed 55 runSpeed 200 snd jedi1 sndcombat jedi1 sndjedi jedi1 health 200 dismemberProbHead 0 dismemberProbArms 5 dismemberProbLegs 0 dismemberProbHands 10 dismemberProbWaist 0 } jedi_hm2 { playerModel jedi_hm customSkin head_B1|torso_C1|lower_A1 // customRGBA 254 197 73 customRGBA jedi_hm saber single_4 saberColor random weapon WP_SABER saberStyle 1 saberStyle 3 saberStyle 2 FP_HEAL 1 FP_LEVITATION 2 FP_SPEED 2 FP_PUSH 2 FP_PULL 1 FP_TELEPATHY 1 FP_GRIP 0 FP_LIGHTNING 0 FP_RAGE 0 FP_PROTECT 1 FP_ABSORB 1 FP_DRAIN 0 FP_SEE 1 FP_SABERTHROW 2 FP_SABER_DEFENSE 3 FP_SABER_OFFENSE 3 forceRegenRate 150 forcePowerMax 90 rank lt reactions 3 aim 3 move 3 aggression 3 evasion 2 intelligence 3 playerTeam TEAM_PLAYER enemyTeam TEAM_ENEMY class CLASS_JEDI yawSpeed 140 walkSpeed 55 runSpeed 200 snd jedi2 sndcombat jedi2 sndjedi jedi2 health 200 dismemberProbHead 0 dismemberProbArms 5 dismemberProbLegs 0 dismemberProbHands 10 dismemberProbWaist 0 } jedi_kdm1 { playerModel jedi_kdm customSkin head_B1|torso_D1|lower_C1 // customRGBA 138 83 0 customRGBA jedi_kdm saber dual_3 saberColor random weapon WP_SABER saberStyle 7 FP_HEAL 1 FP_LEVITATION 2 FP_SPEED 1 FP_PUSH 2 FP_PULL 1 FP_TELEPATHY 1 FP_GRIP 0 FP_LIGHTNING 0 FP_RAGE 0 FP_PROTECT 1 FP_ABSORB 1 FP_DRAIN 0 FP_SEE 1 FP_SABERTHROW 0 FP_SABER_DEFENSE 3 FP_SABER_OFFENSE 3 forceRegenRate 150 forcePowerMax 90 rank lt reactions 3 aim 3 move 3 aggression 3 evasion 2 intelligence 3 playerTeam TEAM_PLAYER enemyTeam TEAM_ENEMY class CLASS_JEDI yawSpeed 140 walkSpeed 55 runSpeed 200 snd jedi2 sndcombat jedi2 sndjedi jedi2 health 200 dismemberProbHead 0 dismemberProbArms 5 dismemberProbLegs 0 dismemberProbHands 10 dismemberProbWaist 0 } jedi_kdm2 { playerModel jedi_kdm customSkin head_C1|torso_B1|lower_B1 // customRGBA 225 226 144 customRGBA jedi_kdm saber single_5 saberColor random weapon WP_SABER saberStyle 2 saberStyle 3 FP_HEAL 2 FP_LEVITATION 2 FP_SPEED 2 FP_PUSH 2 FP_PULL 3 FP_TELEPATHY 1 FP_GRIP 0 FP_LIGHTNING 0 FP_RAGE 0 FP_PROTECT 2 FP_ABSORB 2 FP_DRAIN 0 FP_SEE 1 FP_SABERTHROW 2 FP_SABER_DEFENSE 3 FP_SABER_OFFENSE 3 forceRegenRate 150 forcePowerMax 90 rank lt reactions 3 aim 3 move 3 aggression 3 evasion 2 intelligence 3 playerTeam TEAM_PLAYER enemyTeam TEAM_ENEMY class CLASS_JEDI yawSpeed 140 walkSpeed 55 runSpeed 200 snd jedi2 sndcombat jedi2 sndjedi jedi2 health 200 dismemberProbHead 0 dismemberProbArms 5 dismemberProbLegs 0 dismemberProbHands 10 dismemberProbWaist 0 } jedi_rm1 { playerModel jedi_rm customSkin head_A1|torso_A1|lower_A1 // customRGBA 163 79 17 customRGBA jedi_rm saber single_6 saberColor random weapon WP_SABER saberStyle 2 saberStyle 1 FP_HEAL 1 FP_LEVITATION 3 FP_SPEED 3 FP_PUSH 2 FP_PULL 1 FP_TELEPATHY 1 FP_GRIP 0 FP_LIGHTNING 0 FP_RAGE 0 FP_PROTECT 1 FP_ABSORB 2 FP_DRAIN 0 FP_SEE 1 FP_SABERTHROW 2 FP_SABER_DEFENSE 3 FP_SABER_OFFENSE 3 forceRegenRate 150 forcePowerMax 90 rank lt reactions 3 aim 3 move 3 aggression 3 evasion 2 intelligence 3 playerTeam TEAM_PLAYER enemyTeam TEAM_ENEMY class CLASS_JEDI yawSpeed 140 walkSpeed 55 runSpeed 200 snd jedi1 sndcombat jedi1 sndjedi jedi1 health 200 dismemberProbHead 0 dismemberProbArms 5 dismemberProbLegs 0 dismemberProbHands 10 dismemberProbWaist 0 } jedi_rm2 { playerModel jedi_rm customSkin head_B1|torso_B1|lower_C1 // customRGBA 49 155 131 customRGBA jedi_rm saber single_7 saberColor random weapon WP_SABER saberStyle 2 saberStyle 1 FP_HEAL 2 FP_LEVITATION 3 FP_SPEED 3 FP_PUSH 2 FP_PULL 1 FP_TELEPATHY 1 FP_GRIP 0 FP_LIGHTNING 0 FP_RAGE 0 FP_PROTECT 2 FP_ABSORB 1 FP_DRAIN 0 FP_SEE 1 FP_SABERTHROW 2 FP_SABER_DEFENSE 3 FP_SABER_OFFENSE 3 forceRegenRate 150 forcePowerMax 90 rank lt reactions 3 aim 3 move 3 aggression 3 evasion 2 intelligence 3 playerTeam TEAM_PLAYER enemyTeam TEAM_ENEMY class CLASS_JEDI yawSpeed 140 walkSpeed 55 runSpeed 200 snd jedi1 sndcombat jedi1 sndjedi jedi1 health 200 dismemberProbHead 0 dismemberProbArms 5 dismemberProbLegs 0 dismemberProbHands 10 dismemberProbWaist 0 } jedi_tf1 { playerModel jedi_tf customSkin head_A1|torso_A1|lower_D1 // customRGBA 255 200 212 customRGBA jedi_tf saber dual_5 saberColor random weapon WP_SABER saberStyle 7 FP_HEAL 1 FP_LEVITATION 2 FP_SPEED 2 FP_PUSH 2 FP_PULL 1 FP_TELEPATHY 1 FP_GRIP 0 FP_LIGHTNING 0 FP_RAGE 0 FP_PROTECT 1 FP_ABSORB 1 FP_DRAIN 0 FP_SEE 1 FP_SABERTHROW 0 FP_SABER_DEFENSE 3 FP_SABER_OFFENSE 3 forceRegenRate 150 forcePowerMax 90 rank lt reactions 3 aim 3 move 3 aggression 3 evasion 2 intelligence 3 playerTeam TEAM_PLAYER enemyTeam TEAM_ENEMY class CLASS_JEDI yawSpeed 140 walkSpeed 55 runSpeed 200 sex female snd female_jedi2 sndcombat female_jedi2 sndjedi female_jedi2 health 200 dismemberProbHead 0 dismemberProbArms 5 dismemberProbLegs 0 dismemberProbHands 10 dismemberProbWaist 0 } jedi_tf2 { playerModel jedi_tf customSkin head_B2|torso_C1|lower_C1 // customRGBA 255 255 255 customRGBA jedi_tf saber single_8 saberColor random weapon WP_SABER saberStyle 1 saberStyle 2 FP_HEAL 2 FP_LEVITATION 3 FP_SPEED 3 FP_PUSH 2 FP_PULL 2 FP_TELEPATHY 1 FP_GRIP 0 FP_LIGHTNING 0 FP_RAGE 0 FP_PROTECT 2 FP_ABSORB 1 FP_DRAIN 0 FP_SEE 1 FP_SABERTHROW 2 FP_SABER_DEFENSE 3 FP_SABER_OFFENSE 3 forceRegenRate 150 forcePowerMax 90 rank lt reactions 3 aim 3 move 3 aggression 3 evasion 2 intelligence 3 playerTeam TEAM_PLAYER enemyTeam TEAM_ENEMY class CLASS_JEDI yawSpeed 140 walkSpeed 55 runSpeed 200 sex female snd female_jedi2 sndcombat female_jedi2 sndjedi female_jedi2 health 200 dismemberProbHead 0 dismemberProbArms 5 dismemberProbLegs 0 dismemberProbHands 10 dismemberProbWaist 0 } jedi_zf1 { playerModel jedi_zf customSkin head_B1|torso_A1|lower_D1 // customRGBA 255 164 59 customRGBA jedi_zf saber single_9 saberColor random weapon WP_SABER saberStyle 1 saberStyle 3 saberStyle 2 FP_HEAL 1 FP_LEVITATION 2 FP_SPEED 2 FP_PUSH 2 FP_PULL 1 FP_TELEPATHY 1 FP_GRIP 0 FP_LIGHTNING 0 FP_RAGE 0 FP_PROTECT 1 FP_ABSORB 1 FP_DRAIN 0 FP_SEE 1 FP_SABERTHROW 2 FP_SABER_DEFENSE 3 FP_SABER_OFFENSE 3 forceRegenRate 150 forcePowerMax 90 rank lt reactions 3 aim 3 move 3 aggression 3 evasion 2 intelligence 3 playerTeam TEAM_PLAYER enemyTeam TEAM_ENEMY class CLASS_JEDI yawSpeed 140 walkSpeed 55 runSpeed 200 sex female snd female_jedi2 sndcombat female_jedi2 sndjedi female_jedi2 health 200 dismemberProbHead 0 dismemberProbArms 5 dismemberProbLegs 0 dismemberProbHands 10 dismemberProbWaist 0 } jedi_zf2 { playerModel jedi_zf customSkin head_C1|torso_C1|lower_B1 // customRGBA 161 226 240 customRGBA jedi_zf saber single_9 saber2 single_1 saberColor random saber2Color random weapon WP_SABER saberStyle 6 FP_HEAL 1 FP_LEVITATION 2 FP_SPEED 2 FP_PUSH 2 FP_PULL 1 FP_TELEPATHY 1 FP_GRIP 0 FP_LIGHTNING 0 FP_RAGE 0 FP_PROTECT 1 FP_ABSORB 1 FP_DRAIN 0 FP_SEE 1 FP_SABERTHROW 2 FP_SABER_DEFENSE 3 FP_SABER_OFFENSE 3 forceRegenRate 150 forcePowerMax 90 rank lt reactions 3 aim 3 move 3 aggression 3 evasion 2 intelligence 3 playerTeam TEAM_PLAYER enemyTeam TEAM_ENEMY class CLASS_JEDI yawSpeed 140 walkSpeed 55 runSpeed 200 sex female snd female_jedi1 sndcombat female_jedi1 sndjedi female_jedi1 health 200 dismemberProbHead 0 dismemberProbArms 5 dismemberProbLegs 0 dismemberProbHands 10 dismemberProbWaist 0 } Link to comment
Guest Redemption Posted April 9, 2017 Share Posted April 9, 2017 That method only works in Academy, fails miserably in Outcast Link to comment
Solution Guest Redemption Posted April 10, 2017 Solution Share Posted April 10, 2017 Figured it out, spawn NPC_Weequay did the trick Smoo likes this Link to comment
Smoo Posted April 13, 2017 Share Posted April 13, 2017 Nice, I wanna try something like this sometime Link to comment
The Punisher Posted April 28, 2017 Share Posted April 28, 2017 Is there a way to do the same with other NPCs? For example, I always wondered if something could be done with the droids or the mercenaries, even stormtroopers. I know there is a mod thatakes the R2 units show in random (RGB) colors but not every droid in the SW universe is an R2 unit. Link to comment
Guest Redemption Posted November 27, 2017 Share Posted November 27, 2017 Is there a way to do the same with other NPCs? For example, I always wondered if something could be done with the droids or the mercenaries, even stormtroopers. I know there is a mod thatakes the R2 units show in random (RGB) colors but not every droid in the SW universe is an R2 unit.Aye, copy the weequay snippet above, paste the copy below it, rename weequays to whatever npcs you want to spawn randomly, bobs your uncle Link to comment
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