CloneFighter
Mediocre Lua scripter
So upon stomping down the player gets stuck fsr.
Gif:
Gif:
Related code:
elseif player.shieldability == "stomp"
if player.stomping == true
P_SetObjectMomZ(player.mo, -25*FRACUNIT)
P_SpawnThokMobj(player)
P_InstaThrust(player.mo, 0, 0)
if P_IsObjectOnGround(player.mo)
player.stomping = false
P_SetObjectMomZ(player.mo, 5*FRACUNIT)
player.mo.state = S_PLAY_FALL
player.mo.flags = $|PF_NOJUMPDAMAGE|PF_THOKKED
if player.mo.eflags & MFE_UNDERWATER
S_StartSound(player.mo, sfx_s3k4c)
else
for i = 1, 8
local flame = P_SpawnMobjFromMobj(player.mo, 0, 0, 0, MT_SPINFIRE)
if multiplayer
flame.colorized = true
end
flame.color = player.skincolor
P_InstaThrust(flame, player.mo.angle + (ANGLE_45*i), 3*FRACUNIT)
P_SetObjectMomZ(flame, 5*FRACUNIT)
flame.target = player.mo
flame.fuse = 7*TICRATE
end
S_StartSound(player.mo, sfx_s3k47)
end
elseif player.mo.eflags & MFE_SPRUNG then
player.stomping = false
end
end
end