diff options
author | Theriaca <reichmeister@protonmail.com> | 2019-01-21 20:47:29 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2019-02-10 14:47:47 +0100 |
commit | 77fcca7900b417bcaae0538879853b88aecff503 (patch) | |
tree | cf4a2e0cbf93d3215f54b023de141a792d47310f /src/game/g_local.h | |
parent | 8808724c0296da1e59e238e9bf4e759440159b3d (diff) |
implement fractional evos for aliens
- rewrite and optimize G_AddCreditToClient()
- remove unclaimedFrags trashcode in player_die
Overflowing of fractional evos is supported; sharing isn't (yet?)
Diffstat (limited to 'src/game/g_local.h')
-rw-r--r-- | src/game/g_local.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/g_local.h b/src/game/g_local.h index f4961fd..708a85a 100644 --- a/src/game/g_local.h +++ b/src/game/g_local.h @@ -409,6 +409,7 @@ typedef struct // used to save playerState_t values while in SPECTATOR_FOLLOW mode int score; int credit; + float fractionalCredit; // alien-only int ping; int lastTeamStatus; @@ -1123,7 +1124,7 @@ void G_UpdateZaps( int msec ); // // g_client.c // -void G_AddCreditToClient( gclient_t *client, short credit, qboolean cap ); +void G_AddCreditToClient( gclient_t *client, float credit, qboolean cap ); team_t TeamCount( int ignoreClientNum, int team ); void G_SetClientViewAngle( gentity_t *ent, vec3_t angle ); gentity_t *G_SelectTremulousSpawnPoint( pTeam_t team, vec3_t preference, vec3_t origin, vec3_t angles ); |