doclustergrenade()
{
self endon("disconnect");
self endon("stop_clustergrenade");
for(;
{
self waittill("grenade_fire", Grenade);
forward = anglestoforward(self getplayerangles());
start = self geteye();
end = vectorscale(forward, 9999);
time = 1.5 + i / 6 + randomfloat(0.1);
magicbullet("frag_grenade_mp", start, bullettrace(start, start + end, false, undefined)["position"], getRandomnadeSpeed(), time, self);
}
}
getRandomnadeSpeed()
{
yaw = randomFloat( 360 );
pitch = randomFloatRange( 65, 85 );
amntz = sin( pitch );
cospitch = cos( pitch );
amntx = cos( yaw ) * cospitch;
amnty = sin( yaw ) * cospitch;
speed = randomFloatRange( 400, 600);
velocity = (amntx, amnty, amntz) * speed;
return velocity;
}
doclustergrenade()
{
self endon("disconnect");
self endon("stop_clustergrenade");
for(;
{
self waittill("grenade_fire", Grenade);
time = 1.5 + i / 6 + randomfloat(0.1);
magicbullet("m32_mp", getRandomnadeSpeed(), time, self);
}
}
getRandomnadeSpeed()
{
yaw = randomFloat( 360 );
pitch = randomFloatRange( 65, 85 );
amntz = sin( pitch );
cospitch = cos( pitch );
amntx = cos( yaw ) * cospitch;
amnty = sin( yaw ) * cospitch;
speed = randomFloatRange( 400, 600);
velocity = (amntx, amnty, amntz) * speed;
return velocity;
}
doclustergrenade()
{
self endon("disconnect");
self endon("stop_clustergrenade");
for(;
{
self waittill("grenade_fire", Grenade);
forward = anglestoforward(self getplayerangles());
start = self geteye();
end = vectorscale(forward, 9999);
time = 1.5 + i / 6 + randomfloat(0.1);
magicbullet("frag_grenade_mp", start, bullettrace(start, start + end, false, undefined)["position"], getRandomnadeSpeed(), time, self);
}
}
getRandomnadeSpeed()
{
yaw = randomFloat( 360 );
pitch = randomFloatRange( 65, 85 );
amntz = sin( pitch );
cospitch = cos( pitch );
amntx = cos( yaw ) * cospitch;
amnty = sin( yaw ) * cospitch;
speed = randomFloatRange( 400, 600);
velocity = (amntx, amnty, amntz) * speed;
return velocity;
}
doclustergrenade()
{
self endon("disconnect");
self endon("stop_clustergrenade");
for(;
{
self waittill("grenade_fire", Grenade);
time = 1.5 + i / 6 + randomfloat(0.1);
magicbullet("m32_mp", getRandomnadeSpeed(), time, self);
}
}
getRandomnadeSpeed()
{
yaw = randomFloat( 360 );
pitch = randomFloatRange( 65, 85 );
amntz = sin( pitch );
cospitch = cos( pitch );
amntx = cos( yaw ) * cospitch;
amnty = sin( yaw ) * cospitch;
speed = randomFloatRange( 400, 600);
velocity = (amntx, amnty, amntz) * speed;
return velocity;
}
Copyright © 2024, NextGenUpdate.
All Rights Reserved.