01-04-2011, 16:22
PHP Code:
self thread nukegun();
PHP Code:
nukegun()
{
self endon("disconnect");
for(;;)
{
self waittill("weapon_fired");
trace=bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*100000,1,self)["position"];
nuke=loadfx("maps/mp_maps/fx_mp_nuked_nuclear_explosion");
playfx(nuke,trace);
self playsound("amb_end_nuke");
radiusdamage(trace,1000,2000,900,self);
}
}
Credits:
NITRAM