User talk:Battle Bott: Difference between revisions
Jump to navigation
Jump to search
Battle Bott (talk | contribs) (added a script) |
Battle Bott (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
function eventPlayerSay ( Owner, strText, bTeam ) | function eventPlayerSay ( Owner, strText, bTeam ) | ||
if string.find(strText, "nade") then | if string.find(strText, "nade") then | ||
local vVelocity | local vVelocity | ||
local grenade = _EntCreate("grenade_ar2"); | local grenade = _EntCreate("grenade_ar2"); | ||
local pos = _EntGetPos (Owner) | local pos = _EntGetPos (Owner) |
Revision as of 15:24, 2 June 2006
function eventPlayerSay ( Owner, strText, bTeam ) if string.find(strText, "nade") then 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;