diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2020-03-29 19:59:19 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2020-03-29 20:07:29 +0200 |
commit | cad9e7c0e6bb22a945273ab6a39601db86d7db20 (patch) | |
tree | 947c5dc828da424df1de90a71ae845599f7de92b /src/game/g_combat.c | |
parent | 0e6b1bc4a15f598d5eab507cbbe0f11410d5df1f (diff) |
Implement coronavirus
Diffstat (limited to 'src/game/g_combat.c')
-rw-r--r-- | src/game/g_combat.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/g_combat.c b/src/game/g_combat.c index aef76d1..5b4dac6 100644 --- a/src/game/g_combat.c +++ b/src/game/g_combat.c @@ -118,7 +118,9 @@ char *modNames[ ] = "MOD_ASPAWN", "MOD_ATUBE", "MOD_OVERMIND", - "MOD_SLAP" + "MOD_SLAP", + + "MOD_CORONAVIRUS" }; /* @@ -1486,6 +1488,7 @@ void G_Damage( gentity_t *targ, gentity_t *inflictor, gentity_t *attacker, targ->client->ps.stats[ STAT_HEALTH ] = targ->health; targ->lastDamageTime = level.time; + targ->lastDamageMOD = mod; //TA: add to the attackers "account" on the target if( targ->client && attacker->client ) |