diff options
author | Asa Kravets <norfenstein@gmail.com> | 2011-04-04 23:34:28 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:18:03 +0000 |
commit | 99436a23e7f2ca74401f90b79c865280c5086ff1 (patch) | |
tree | d6e2e826f0266075c05a838410b1a4246b0b328b /src/game/g_active.c | |
parent | a8bd455bbcc8c5e582ce0526a8b5453052c26610 (diff) |
* Change trample to not lose all charge on hitting a structure, and keep track of structures to only allow one hit each (thanks Lakitu7)
Diffstat (limited to 'src/game/g_active.c')
-rw-r--r-- | src/game/g_active.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c index a7cd08c0..6a149f90 100644 --- a/src/game/g_active.c +++ b/src/game/g_active.c @@ -1602,6 +1602,15 @@ void ClientThink_real( gentity_t *ent ) } break; + case WP_ALEVEL4: + // If not currently in a trample, reset the trample bookkeeping data + if( !( client->ps.pm_flags & PMF_CHARGE ) && client->trampleBuildablesHitPos ) + { + ent->client->trampleBuildablesHitPos = 0; + memset( ent->client->trampleBuildablesHit, 0, sizeof( ent->client->trampleBuildablesHit ) ); + } + break; + case WP_HBUILD: CheckCkitRepair( ent ); break; |