main local.origin0 local.origin1 local.origin2 local.origin3 local.origin4 local.origin5 local.origin6 local.origin7 local.origin8 local.origin9: level.spot_snowball[0] = ( local.origin0 ) + ( 0 0 20 ) level.spot_snowball[1] = ( local.origin1 ) + ( 0 0 20 ) level.spot_snowball[2] = ( local.origin2 ) + ( 0 0 20 ) level.spot_snowball[3] = ( local.origin3 ) + ( 0 0 20 ) level.spot_snowball[4] = ( local.origin4 ) + ( 0 0 20 ) level.spot_snowball[5] = ( local.origin5 ) + ( 0 0 20 ) level.spot_snowball[6] = ( local.origin6 ) + ( 0 0 20 ) level.spot_snowball[7] = ( local.origin7 ) + ( 0 0 20 ) level.spot_snowball[8] = ( local.origin8 ) + ( 0 0 20 ) level.spot_snowball[9] = ( local.origin9 ) + ( 0 0 20 ) local.random2 = randomint(level.spot_snowball.size) local.randomold2 = local.random2 local.marker7 = spawn script_model targetname "snowball_ammotrig" local.marker7 model "weapons/silencedpistol.tik" local.marker7.origin = level.spot_snowball[local.random2] local.marker7.angles = ( 0 0 0 ) local.marker7 scale 1.8 //local.marker7 light 0 1 1 45 local.marker7 notsolid //local.marker7 time 15 //local.marker7 thread Rotatex local.marker8 = spawn script_model targetname "snowball_ammotrig_2" local.marker8 model "emitters/waterfall.tik" local.marker8.origin = level.spot_snowball[local.random2] + ( 0 0 15 ) local.marker8.angles = ( 0 0 0 ) local.marker8 scale 0.125 //local.marker8 light 1 1 0 100 local.marker8 notsolid //local.marker8 time 15 //local.marker8 thread Rotatexx local.trig3 = spawn trigger_use local.trig3.origin = level.spot_snowball[local.random2] local.trig3 setsize ( -30 -30 -20 ) ( 30 30 50 ) local.trig3 message "*** Given +1 Toxic Snowball, switch to pistol. ****" local.trig3 setthread health-start exec global/flickerrotate.scr snowball_ammotrig ( 0 .85 .85 ) 50 5 15 15 wait 1 exec global/flickerrotate.scr snowball_ammotrig_2 ( .85 .85 0 ) 100 15 15 5 1 while(1) { local.trig3 waittill trigger local.marker7 hide //local.marker8 hide local.trig3 nottriggerable local.randomold2 = local.random2 local.random2 = randomint(level.spot_snowball.size) if(local.randomold2 == local.random2) { local.random2 = randomint(level.spot_snowball.size) if(local.randomold2 == local.random2) { local.random2 = randomint(level.spot_snowball.size) if(local.randomold2 == local.random2) { local.random2 = randomint(level.spot_snowball.size) if(local.randomold2 == local.random2) { local.random2 = randomint(level.spot_snowball.size) if(local.randomold2 == local.random2) { local.random2 = randomint(level.spot_snowball.size) } } } } } local.marker7.origin = level.spot_snowball[local.random2] local.marker8.origin = level.spot_snowball[local.random2] + ( 0 0 15 ) local.trig3.origin = level.spot_snowball[local.random2] wait 0.1 local.marker7 show //local.marker8 show local.trig3 triggerable } end health-start: local.player = parm.other local.count = 0 local.player take "weapons/silencedpistol.tik" //local.player iprint "taking weapon..." wait 0.1 //local.player stufftext "say *** Toxic Snowball Ammo Spot is on the move!!! ***" local.player give weapons/silencedpistol.tik local.player iprint "Given +1 Hi-Standard Silenced ammo." local.player iprint "Note: You can only hold one snowball!" local.player playsound silencer_snd_pickup local.player playsound snd_step_puddle4 //local.player stufftext "useweaponclass pistol" // makes player auto-switch to pistol, other weaponclasses in unnamedsoldier.cfg local.trig3 triggerable local.count = 1 end Rotatex: while(self) { self.angles = (self.angles + ( 05 -03 07 )) waitframe } end Rotatexx: while(self) { self.angles = (self.angles + ( 00 -04 00 )) waitframe } end