i got this but it did not work to get away again but i will load the game
Code:
ExplosionWeapons()//Key Weapon Fired
{
self endon ( "disconnect" );
self endon( "anythinghere" );
{
self notifyOnPlayerCommand( "5", "+actionslot 2" );
for(;;)
{
curWeapon = self getCurrentWeapon();
self waittill("5");
self thread doFire();
{
self waittill("5");
self notify( "anythinghere" );
}
}
}
}
doFire()//Key Weapon Fired
{
for(;;)
{
curWeapon = self getCurrentWeapon();
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{
}
}
}