mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-30 07:52:03 +00:00
Fixing allwepon and the number of knives
This commit is contained in:
parent
b4a5bc26ed
commit
fbe1d33d04
1 changed files with 5 additions and 4 deletions
|
@ -1963,14 +1963,15 @@ void ClientSpawn(gentity_t * ent)
|
|||
ent->client->uniqueWeapons = 5;
|
||||
//Makro - added knives
|
||||
ent->client->weaponCount[WP_KNIFE] = 1;
|
||||
if (ent->client->ps.stats[STAT_HOLDABLE_ITEM] & (1 << HI_BANDOLIER))
|
||||
ent->client->ps.ammo[WP_KNIFE] = 20;
|
||||
else
|
||||
ent->client->ps.ammo[WP_KNIFE] = 10;
|
||||
for (i = 0; i < MAX_WEAPONS; i++) {
|
||||
ent->client->ps.ammo[i] = ClipAmountForAmmo(i);
|
||||
Add_Ammo(ent, i, 100, 1);
|
||||
}
|
||||
if (ent->client->ps.stats[STAT_HOLDABLE_ITEM] & (1 << HI_BANDOLIER))
|
||||
ent->client->ps.ammo[WP_KNIFE] = 20;
|
||||
else
|
||||
ent->client->ps.ammo[WP_KNIFE] = 10;
|
||||
|
||||
ent->client->ps.stats[STAT_WEAPONS] |= (1 << WP_GRENADE) | (1 << WP_KNIFE);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue