summaryrefslogtreecommitdiff
path: root/src/game/g_active.c
diff options
context:
space:
mode:
authorIronClawTrem <louie.nutman@gmail.com>2020-03-07 20:56:38 +0000
committerIronClawTrem <louie.nutman@gmail.com>2020-03-08 00:13:44 +0000
commit7309ee5dd3ba0b9a40705bc6373d867aea3a6f97 (patch)
treefdbeba64154a354a6ad75d7d2e002f9a58b1cd36 /src/game/g_active.c
parent888ea67bab11ba1a6917e3e4ff26bfc2e5233235 (diff)
add !practise command
Diffstat (limited to 'src/game/g_active.c')
-rw-r--r--src/game/g_active.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c
index fc7d540..c69d421 100644
--- a/src/game/g_active.c
+++ b/src/game/g_active.c
@@ -1469,6 +1469,7 @@ void ClientThink_real( gentity_t *ent )
int msec;
usercmd_t *ucmd;
int real_pm_type;
+ pTeam_t team;
client = ent->client;
@@ -1918,6 +1919,22 @@ void ClientThink_real( gentity_t *ent )
bubble = G_TempEntity( client->ps.origin, EV_PLAYER_TELEPORT_OUT );
bubble->s.clientNum = ent->s.clientNum;
}
+
+ if( g_practise.integer )
+ {
+ if( team = PTE_ALIENS )
+ {
+ if( client->pers.credit < 9 )
+ G_AddCreditToClient( client, 9, qtrue );
+ }
+ if( team = PTE_HUMANS )
+ {
+ if( client->pers.credit < 2000 )
+ G_AddCreditToClient( client, 2000, qtrue );
+ else if( client->pers.credit > 2000 )
+ G_AddCreditToClient( client, -2000, qtrue );
+ }
+ }
}
/*