SSG3
Oh, THAT Youtuber...
I'm trying to make a "Screw Jump" for a custom character, but it doesn't scale correctly. how can I get it to scale to the player's current size?
Here's the code extract:
Here's the code extract:
Code:
if not (P_IsObjectOnGround(player.mo))
and (player.canscrew == 1)
and (player.justscrewed == 0)
and (player.cmd.buttons & BT_CUSTOM2)
and not (player.spectator)
and not (player.pflags & PF_NIGHTSMODE)
and not (player.mo.tracer and player.mo.tracer.type == MT_TUBEWAYPOINT)
and not (player.mo.state == S_PLAY_DIE) then
if (player.mo.flags2 & MF2_OBJECTFLIP)
player.mo.momz = -10*FRACUNIT
else
player.mo.momz = 10*FRACUNIT
end
S_StartSound(player.mo, sfx_jump)
S_StartSound(player.mo, sfx_fre001)
P_SpawnGhostMobj(player.mo)
player.cansrew = 2
player.justscrewed = 1
end
Last edited: