Sky The Destroyer
Member
Also applies to P_InstaThrust.
Example code of the issue at hand:
To replicate: merely tap custom button 1 while on the ground, and the player will thrust forward at 35 fracunits as specified, and the player's momz will be set at 15 fracunits, which launches the player up into the air...
...then the player's momx and momy will just simply stop while in the air after a certain distance (which is very short).
Example GIF attached. As you can see in GIF, the player will be thrusted forward for like a fracunit, then just completely stops.
Also possibly related to this issue: Use P_Telekinesis on another player, and no matter what the force of it is, the player will stop still after a certain distance if the player is on the ground. They won't slide.
Example code of the issue at hand:
Code:
if (player.cmd.buttons & BT_CUSTOM1)
P_InstaThrust(player.mo, player.mo.angle, 35*FRACUNIT)
P_SetObjectMomZ(player.mo, 15*FRACUNIT, true)
end
...then the player's momx and momy will just simply stop while in the air after a certain distance (which is very short).
Example GIF attached. As you can see in GIF, the player will be thrusted forward for like a fracunit, then just completely stops.
Also possibly related to this issue: Use P_Telekinesis on another player, and no matter what the force of it is, the player will stop still after a certain distance if the player is on the ground. They won't slide.