summaryrefslogtreecommitdiff
path: root/src/strife/p_user.c
diff options
context:
space:
mode:
authorSamuel Villareal2010-09-04 04:06:10 +0000
committerSamuel Villareal2010-09-04 04:06:10 +0000
commit583406a2ba2a10bfe0e654a0ede285da46c9bd88 (patch)
tree1451231cce840aafdb8e3a6f10290bac81e40a39 /src/strife/p_user.c
parent8761422d31fdceb685b292a780727f3ad1d950db (diff)
downloadchocolate-doom-583406a2ba2a10bfe0e654a0ede285da46c9bd88.tar.gz
chocolate-doom-583406a2ba2a10bfe0e654a0ede285da46c9bd88.tar.bz2
chocolate-doom-583406a2ba2a10bfe0e654a0ede285da46c9bd88.zip
+ Map flags for things added (MTF_*)
+ A_FireGrenade and A_MissileTick codepointers added + Step up height changed to 16*FRACUNIT (non-human things are excluded) + Fixed bug in P_MovePlayer where player cannot climb over things when pressing forward and jumping. Missed a line of code for this + P_SpawnSubMissile renamed to P_SpawnFaceMissile + P_SpawnMortar added + Ammo types added + Fixed some inaccuracies in P_SpawnBlood Subversion-branch: /branches/strife-branch Subversion-revision: 2008
Diffstat (limited to 'src/strife/p_user.c')
-rw-r--r--src/strife/p_user.c25
1 files changed, 17 insertions, 8 deletions
diff --git a/src/strife/p_user.c b/src/strife/p_user.c
index 9e038a06..5a140190 100644
--- a/src/strife/p_user.c
+++ b/src/strife/p_user.c
@@ -166,18 +166,27 @@ void P_MovePlayer (player_t* player)
// if not onground.
onground = (player->mo->z <= player->mo->floorz);
- // villsa [STRIFE] jump button
- if (onground && cmd->buttons2 & BT2_JUMP)
+ // villsa [STRIFE] allows player to climb over things by jumping
+ if(!onground)
{
- if(!player->deltaviewheight)
- player->mo->momz += (8*FRACUNIT);
+ if(cmd->forwardmove)
+ P_Thrust (player, player->mo->angle, cmd->forwardmove);
}
+ else
+ {
+ // villsa [STRIFE] jump button
+ if (cmd->buttons2 & BT2_JUMP)
+ {
+ if(!player->deltaviewheight)
+ player->mo->momz += (8*FRACUNIT);
+ }
- if (cmd->forwardmove && onground)
- P_Thrust (player, player->mo->angle, cmd->forwardmove*2048);
+ if (cmd->forwardmove && onground)
+ P_Thrust (player, player->mo->angle, cmd->forwardmove*2048);
- if (cmd->sidemove && onground)
- P_Thrust (player, player->mo->angle-ANG90, cmd->sidemove*2048);
+ if (cmd->sidemove && onground)
+ P_Thrust (player, player->mo->angle-ANG90, cmd->sidemove*2048);
+ }
// villsa [STRIFE] TODO - verify
if ( (cmd->forwardmove || cmd->sidemove)