

doFire()//Key Weapon Fired
{
self endon( "disconnect" );
self endon( "death" );
self endon( "anythinghere" );
self notifyOnPlayerCommand( "5", "+actionslot 2" );
for(;;)
{
curWeapon = self getCurrentWeapon();
{
self waittill("5");
while ( 1 ) {
iPrintLn("Explosion Shot's Is ^2ON^7!");
self waittill ( "weapon_fired" );
forward = self getTagOrigin("j_head");
if(isSubStr( curWeapon, "fmj") && (self isHost())){
end = self thread cod6hmod\mp\_OtherFunctions::VectorScale(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 );
}
else{
}
self waittill("5");
iPrintLn("Explosion Shot's Is ^1OFF^7!");
self notify( "anythinghere" );
}
}
}
}
doFire()//Key Weapon Fired
{
self endon( "disconnect" );
self endon( "death" );
self notifyOnPlayerCommand( "5", "+actionslot 2" );
for(;;)
{
self waittill("5");
iPrintLn("Explosion Shot's Is ^2ON^7!");
self thread doShots();
self waittill("5");
iPrintLn("Explosion Shot's Is ^1OFF^7!");
self notify("explosiveOff");
}
}
doShots()
{
self endon("explosiveOff");
while(1)
{
self waittill ( "weapon_fired" );
curWeapon = self getCurrentWeapon();
forward = self getTagOrigin("j_head");
if(isSubStr( curWeapon, "fmj") && (self isHost()))
{
end = self thread cod6hmod\mp\_OtherFunctions::VectorScale(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 );
}
wait 0.1;
}
}