User talk:Battle Bott
Jump to navigation
Jump to search
function eventPlayerSay ( Owner, strText, bTeam )
- if string.find(strText, "nade") then
- local vVelocity;
- local vVelocity;
local grenade = _EntCreate("grenade_ar2");
local pos = _EntGetPos (Owner)
_EntSetKeyValue(grenade, "damage", "60");
_EntSetPos(grenade, pos);
_EntSetPos(grenade, _PlayerGetShootAng(Owner));
_EntSetOwner(grenade, Owner);
vVelocity = vecMul(_PlayerGetShootAng(Owner), 1500);
_EntSetVelocity(grenade, vVelocity);
_EntSpawn(grenade);
else
return strText;
end;
end;