mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-17 23:21:22 +00:00
Unrelated to the branch, but I was messing around with heights and shadow.wad and figured I might as well tweak it whilst I remember.
This commit is contained in:
parent
f3cad19184
commit
ae3441659e
1 changed files with 6 additions and 5 deletions
11
src/p_user.c
11
src/p_user.c
|
@ -4310,11 +4310,6 @@ static void P_DoJumpStuff(player_t *player, ticcmd_t *cmd)
|
|||
player->mo->momy /= 3;
|
||||
}
|
||||
|
||||
if (player->mo->info->attacksound && !player->spectator)
|
||||
S_StartSound(player->mo, player->mo->info->attacksound); // Play the THOK sound
|
||||
|
||||
P_SpawnThokMobj(player);
|
||||
|
||||
if (player->charability == CA_HOMINGTHOK)
|
||||
{
|
||||
P_SetTarget(&player->mo->target, P_SetTarget(&player->mo->tracer, lockon));
|
||||
|
@ -4327,10 +4322,16 @@ static void P_DoJumpStuff(player_t *player, ticcmd_t *cmd)
|
|||
{
|
||||
P_SetPlayerMobjState(player->mo, S_PLAY_FALL);
|
||||
player->pflags &= ~PF_JUMPED;
|
||||
player->mo->height = P_GetPlayerHeight(player);
|
||||
}
|
||||
player->pflags &= ~PF_NOJUMPDAMAGE;
|
||||
}
|
||||
|
||||
if (player->mo->info->attacksound && !player->spectator)
|
||||
S_StartSound(player->mo, player->mo->info->attacksound); // Play the THOK sound
|
||||
|
||||
P_SpawnThokMobj(player);
|
||||
|
||||
player->pflags &= ~(PF_SPINNING|PF_STARTDASH);
|
||||
player->pflags |= PF_THOKKED;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue