Spoiler addhook("say","impulse101")
function impulse101(id,txt)
if txt == "!impulse101" then
for wpn = 1,88 do -- all weapons
parse("equip "..id.." "..wpn) -- equiping them.
return 1
end
end
end
Spoiler noclip = initArray(32)
addhook("always","wh_noclip")
function wh_noclip()
for id = 1,32 do
if (player(id,"exists")) then
rot = player(id,"rot")
if rot < -90 then rot = rot + 360 end
local angle = math.rad(math.abs(rot + 90)) - math.pi
local x = player(id,"x") + math.cos(angle)*4
local y = player(id,"y") + math.sin(angle)*4
if noclip[id]==1 then
if x > 0 and y > 0 and x < map("xsize") and y < map("ysize") then
parse("setpos "..id.." "..x.." "..y)
end
end
end
end
end