summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Millwood <thebenmachine@gmail.com>2009-10-03 13:03:11 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:16:26 +0000
commita6ac7de859b998f277f44c2b1dbd61b65acdca4d (patch)
treeb69dca7243624d5b1120dc00365b7f94e53419d4
parent9672c9de3c2e7e7a7ddea6d2ecfe9bd1eaecf648 (diff)
Make humans raise their weapon when they spawn
This is a purely cosmetic change that I thought I'd experiment with. Note that the previous resetting of ps.weapon was redundant.
-rw-r--r--src/game/g_client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c
index 51972395..ea4aab82 100644
--- a/src/game/g_client.c
+++ b/src/game/g_client.c
@@ -1590,7 +1590,9 @@ void ClientSpawn( gentity_t *ent, gentity_t *spawn, vec3_t origin, vec3_t angles
trap_LinkEntity( ent );
// force the base weapon up
- client->ps.weapon = WP_NONE;
+ if( client->pers.teamSelection == TEAM_HUMANS )
+ G_ForceWeaponChange( ent, weapon );
+
client->ps.weaponstate = WEAPON_READY;
}