summaryrefslogtreecommitdiff
path: root/src/game/g_active.c
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2020-03-29 20:59:17 +0200
committerPaweł Redman <pawel.redman@gmail.com>2020-03-29 21:57:23 +0200
commit04fa335c32eca9a86bcc4912351bb5190665420d (patch)
treeb9899e4bc636265586a222e26808c83d96a610e9 /src/game/g_active.c
parentd9e9bb2d95483cbf2ca5d6cf5ac7b9f490d40204 (diff)
Getting this ready for testing
Diffstat (limited to 'src/game/g_active.c')
-rw-r--r--src/game/g_active.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c
index 4059259..baba182 100644
--- a/src/game/g_active.c
+++ b/src/game/g_active.c
@@ -658,6 +658,8 @@ void G_Coronavirus( gentity_t *ent )
else if( distance < COVID_RANGE / 2.0f )
chance *= 2.0f;
+ chance *= g_covidInfectionFactor.value;
+
trap_SendServerCommand( (int)( ent - g_entities ), va( "print \"^1COVID:^7 Chance to infect %s^7 is ^1%f^7\n\"",
target->client->pers.netname, chance ) );
@@ -699,7 +701,7 @@ void G_Coronavirus( gentity_t *ent )
G_AddEvent( ent, EV_COUGH, 0 );
}
- client->covidDamage += client->covidSeverity;
+ client->covidDamage += client->covidSeverity * g_covidSeverityFactor.value;
if( client->covidDamage > 1.0f )
{
int damage;