summaryrefslogtreecommitdiff
path: root/src/game/g_combat.c
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2020-03-29 19:59:19 +0200
committerPaweł Redman <pawel.redman@gmail.com>2020-03-29 20:09:17 +0200
commitd9e9bb2d95483cbf2ca5d6cf5ac7b9f490d40204 (patch)
treec71483e197da36ebf8b11fec3e05df5608c7dc78 /src/game/g_combat.c
parent36ebcd1cc0933ee0bfe9f6ac15879286d3199046 (diff)
Implement coronavirus
Diffstat (limited to 'src/game/g_combat.c')
-rw-r--r--src/game/g_combat.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/g_combat.c b/src/game/g_combat.c
index 4d5d3d3..4df883c 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"
};
/*
@@ -1488,6 +1490,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 )