redhot69
amongus
so...i was trying to make an mod where shadow gets new abilities but somehow the script got no error but when i tried using them nothing happened.
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)
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)
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)
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)