static void P_DoJumpStuff(player_t *player, ticcmd_t *cmd)
{
...
if (cmd->buttons & BT_JUMP && !(player->pflags & PF_JUMPDOWN) && !player->exiting && !(!(player->pflags & PF_SLIDING) && player->mo->state == &states[player->mo->info->painstate] && player->powers[pw_flashing]))
{
...
else if (!(player->pflags & PF_SLIDING) && ((gametype != GT_CTF) || (!player->gotflag)))
{
switch (player->charability)
{
case CA_THOK:
case CA_HOMINGTHOK:
...
case CA_FLY:
case CA_SWIM:
...