Skip to content

Commit

Permalink
force drain tweak
Browse files Browse the repository at this point in the history
(cherry picked from commit 8281f2c)
  • Loading branch information
videoP authored and taysta committed May 31, 2024
1 parent e707085 commit e594364
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion codemp/game/w_force.c
Original file line number Diff line number Diff line change
Expand Up @@ -2409,7 +2409,11 @@ int ForceShootDrain( gentity_t *self )

if ( tr.entityNum == ENTITYNUM_NONE || tr.fraction == 1.0 || tr.allsolid || tr.startsolid || !g_entities[tr.entityNum].client || !g_entities[tr.entityNum].inuse )
{
self->client->ps.activeForcePass = 0; //Reset this visual
if (g_tweakForce.integer & FT_FIXLINEDRAIN) {
self->client->ps.fd.forcePowerRegenDebounceTime = level.time + 200;
self->client->ps.activeForcePass = 0; //Reset this visual
//cost force?
}
return 0;
}

Expand Down

0 comments on commit e594364

Please sign in to comment.