1
parse("spawnprojectile "..id.." 72 "..player(id,"x").." "..player(id,"y").." 500 "..player(id,"rot").."")
How to make the gas grenade throw at mouse position instead of the "500 number"
parse("spawnprojectile "..id.." 72 "..player(id,"x").." "..player(id,"y").." 500 "..player(id,"rot").."")
math.sqrt((player(id,"mousex")-player(id,"x"))^2 + (player(id,"mousey")-player(id,"y"))^2)
local WhatIsBrain= math.sqrt((player(id,"mousex")-player(id,"x"))^2 + (player(id,"mousey")-player(id,"y"))^2) parse("spawnprojectile "..id.." 72 "..player(id,"x").." "..player(id,"y").." "..WhatIsBrain.." "..player(id,"rot").."")
parse("spawnprojectile "..id.." 72 "..player(id,"x").." "..player(id,"y").." "..player(id,"mousedist").." "..player(id,"rot"))