From 04fa335c32eca9a86bcc4912351bb5190665420d Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sun, 29 Mar 2020 20:59:17 +0200 Subject: Getting this ready for testing --- src/game/g_active.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/game/g_active.c') 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; -- cgit