diff options
author | Petr Pudlak <petr.mvd@gmail.com> | 2014-08-16 14:26:16 +0200 |
---|---|---|
committer | Petr Pudlak <petr.mvd@gmail.com> | 2014-08-16 14:26:16 +0200 |
commit | 8816244ec329acdd5eb64e0518e69ae77df1cd75 (patch) | |
tree | c7a7614c537a79b29452695c94ee7597b69e7993 /src/game/g_local.h | |
parent | fc765f5f146627d282b4374dd0c575895d64a900 (diff) |
Add the ability for humans to heal their team members
The medkit handling is moved to a new function G_UseMedkit.
If there is a human within a given range that is either more wounded
than the player, or poisoned, the medkit is applied to him
(see G_NeedsMedkit).
The range and the breadth of the action is configurable by cvars.
The original patch was used on a server, but this port wasn't tested
(only that it compiles).
Diffstat (limited to 'src/game/g_local.h')
-rw-r--r-- | src/game/g_local.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/g_local.h b/src/game/g_local.h index e437349..37971ed 100644 --- a/src/game/g_local.h +++ b/src/game/g_local.h @@ -1042,6 +1042,7 @@ void G_UnregisterCommands( void ); void FireWeapon( gentity_t *ent ); void FireWeapon2( gentity_t *ent ); void FireWeapon3( gentity_t *ent ); +gentity_t *G_MedkitTarget( gentity_t *ent ); // // g_main.c @@ -1179,6 +1180,8 @@ extern vmCvar_t g_suddenDeathVoteDelay; extern vmCvar_t g_readyPercent; extern vmCvar_t g_armageddonVotePercent; extern vmCvar_t g_armageddonPercent; +extern vmCvar_t g_humanMedkitRange; +extern vmCvar_t g_humanMedkitWidth; extern vmCvar_t g_teamForceBalance; extern vmCvar_t g_smoothClients; extern vmCvar_t pmove_fixed; |