Fixed weapons bug for what.. the 4th time? Finally figured out the cause, reproduced, made fix, no more bug.
Zombies no longer pick up weapons after the round. Fixed bug where disabling restrict/weapons module allowed zombies to get weapons.
This commit is contained in:
@ -35,6 +35,15 @@
|
||||
*/
|
||||
#define WEAPONS_SLOTS_MAX 5
|
||||
|
||||
/**
|
||||
* @section CS:S start weapons.
|
||||
*/
|
||||
#define WEAPONS_SPAWN_T_WEAPON "weapon_glock"
|
||||
#define WEAPONS_SPAWN_CT_WEAPON "weapon_usp"
|
||||
/**
|
||||
* @endsection
|
||||
*/
|
||||
|
||||
/**
|
||||
* Weapon config data indexes.
|
||||
*/
|
||||
@ -325,6 +334,15 @@ WeaponsOnClientSpawnPost(client)
|
||||
ZMarketOnClientSpawnPost(client);
|
||||
}
|
||||
|
||||
/**
|
||||
* The round is ending.
|
||||
*/
|
||||
WeaponsOnRoundEnd()
|
||||
{
|
||||
// Forward event to sub-modules.
|
||||
RestrictOnRoundEnd();
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when a client picks up an item.
|
||||
*
|
||||
|
Reference in New Issue
Block a user