From d9e9bb2d95483cbf2ca5d6cf5ac7b9f490d40204 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sun, 29 Mar 2020 19:59:19 +0200 Subject: Implement coronavirus --- src/game/g_local.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/game/g_local.h') diff --git a/src/game/g_local.h b/src/game/g_local.h index 1720c4c..a088551 100644 --- a/src/game/g_local.h +++ b/src/game/g_local.h @@ -256,6 +256,7 @@ struct gentity_s int suicideTime; // when the client will suicide int lastDamageTime; + int lastDamageMOD; int bdnumb; // buildlog entry ID @@ -469,6 +470,14 @@ typedef struct { float rangeBoost; } adminRangeBoosts_t; +enum { + COVID_NONE, + COVID_ASYMPTOMATIC, + COVID_MODERATE, + COVID_SEVERE, + COVID_RECOVERED +}; + // this structure is cleared on each ClientSpawn(), // except for 'client->pers' and 'client->sess' struct gclient_s @@ -571,6 +580,10 @@ struct gclient_s adminRangeBoosts_t newRange; int man_bad; + int covidKind; + float covidProgress; + float covidSeverity; + float covidDamage; }; @@ -1172,6 +1185,7 @@ void G_UnlaggedClear( gentity_t *ent ); void G_UnlaggedCalc( int time, gentity_t *skipEnt ); void G_UnlaggedOn( gentity_t *attacker, vec3_t muzzle, float range ); void G_UnlaggedOff( void ); +void G_ContractCoronavirus( gentity_t *ent ); void ClientThink( int clientNum ); void ClientEndFrame( gentity_t *ent ); void G_RunClient( gentity_t *ent ); -- cgit