Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ZDoom makes crouching half the player height.
- Doomguy is 56 units tall. (And his ViewHeight is 41 because fuck proportions, apparently)
- So by default, Crouch Height is 28 units. Here, the height is set to 32, making his crouch height 16.
- In actual application you might want to add a line to change the View height accordingly, as well.
- I also don't know if this will work. I probably should have tested it, but drunk so no sorry.
- Love, anon
- */
- Script 1 ENTER
- {
- int keypress;
- while (TRUE)
- {
- keypress = GetPlayerInput(-1, INPUT_BUTTONS);
- if (keypress == BT_CROUCH)
- {
- SetActorProperty(0, APROP_Height, 32)
- }
- else
- {
- SetPlayerProperty(0, APROP_Height, 56);
- }
- delay(1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement