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:09:17 +0200 |
commit | d9e9bb2d95483cbf2ca5d6cf5ac7b9f490d40204 (patch) | |
tree | c71483e197da36ebf8b11fec3e05df5608c7dc78 /src/game/g_client.c | |
parent | 36ebcd1cc0933ee0bfe9f6ac15879286d3199046 (diff) |
Implement coronavirus
Diffstat (limited to 'src/game/g_client.c')
-rw-r--r-- | src/game/g_client.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c index d204831..9f6710c 100644 --- a/src/game/g_client.c +++ b/src/game/g_client.c @@ -1907,6 +1907,16 @@ void ClientSpawn( gentity_t *ent, gentity_t *spawn, vec3_t origin, vec3_t angles ent->client->ps.stats[ STAT_STATE ] = 0; VectorSet( ent->client->ps.grapplePoint, 0.0f, 0.0f, 1.0f ); + client->covidKind = COVID_NONE; + client->covidProgress = 0.0f; + client->covidSeverity = 0.0f; + client->covidDamage = 0.0f; + + // 1 in 10 chance they spawn sick + //if( rand( ) % 10 == 0 ) + if( client->pers.classSelection != PCL_NONE ) + G_ContractCoronavirus( ent ); + // health will count down towards max_health ent->health = client->ps.stats[ STAT_HEALTH ] = client->ps.stats[ STAT_MAX_HEALTH ]; //* 1.25; |