redhot69
amongus
So i was working on some new shadow abilities but idk what happened but in game none of the abilities worked but no errors showed up.(I did load the shadow mod first)
Lua:
addHook("PlayerThink", function(player)
if player.mo.skin == "shadow"
if (player.cmd.buttons & BT_CUSTOM2)
and P_IsObjectOnGround(player.mo)
and (player.mo.state == S_PLAY_STND) then
P_InstaThrust(player.mo, player.mo.angle, 20*FRACUNIT)
P_SetObjectMomZ(player.mo, 5*FRACUNIT)
player.mo.state = S_PLAY_SPRING
end
end
end)
Lua:
addHook("PlayerThink", function(player)
if player.mo.skin == "shadow"
if (player.cmd.buttons & BT_CUSTOM1)
and not P_IsObjectOnGround(player.mo)
and (player.mo.state == S_PLAY_JUMP) then
P_InstaThrust(player.mo, player.mo.angle, 30*FRACUNIT)
player.mo.state == S_PLAY_ROLL
end
end
end)