ItsMods
Nuclear Bullets - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: Nuclear Bullets (/Thread-Nuclear-Bullets.html)



Nuclear Bullets - d0h! - 10-30-2010

Credits: Lost4468

Code:
ExplosionWednesday() //<--Add to onplayerspawned(); { for(;;) { self waittill ( "weapon_fired" ); forward = self getTagOrigin("j_head"); end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000); SPLOSIONlocation = BulletTrace( forward, end, 0, self )[ "position" ]; level.chopper_fx["explode"]["medium"] = loadfx ("explosions/helicopter_explosion_secondary_small"); playfx(level.chopper_fx["explode"]["medium"], SPLOSIONlocation); RadiusDamage( SPLOSIONlocation, 500, 1000, 500, self ); } } vector_scal(vec, scale) //<-- dont add this thread to onplayerspawned(); { vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale); return vec; }



RE: Nuclear Bullets - Cgallagher - 11-07-2010

Nice explosions gj lost