(adsbygoogle = window.adsbygoogle || []).push({});
Hey, I'm trying to figure out how to make a gun shoot grenades mainly smoke stun and flash grenades. Should I be using the magicbullet or the magicgrenade function? I wrote this to give you a P90 that shoots noob tubes but can't figure out how to make it shoot flash stun smoke or regular grenades. Thanks.
Testpistol()
{
self giveWeapon("p90_mp");
self setWeaponAmmoClip("p90_mp", 20);
self setWeaponAmmoStock("p90_mp",100);
self thread noobpistol();
wait .5;
self switchToWeapon("p90_mp");
self endon("death");
self endon("disconnect");
self notify("testpistol");
self endon("testpistol");
while(true)
{
self waittill("weapon_fired");
weapon = self getCurrentWeapon();
if(weapon == "p90_mp")
{
MagicBullet("gl_mp", self getTagOrigin("j_head"), self getCursorPos(2000), self);
}
}
return true;
}
I have also tried using this but it didnt work
MagicBullet("smoke_grenade_mp", self getTagOrigin("j_head"), self getCursorPos(2000), self);