I need to set it, so only one player can have wonderweapon, but Im not sure where I would go with it. I know there is something in treasure_chest_weapon_spawn( chest, player ) in _zombiemode_weapons, but not sure, if its everything
In the init_weapons() function where all the weapons are added, you can add a line like this:
Code Snippet
Plaintext
add_limited_weapon( "scavenger", 1);
You still are required to have the original add_zombie_weapon() function for that weapon, but this will limit the box to only containing 1 of that weapon (you can change the 1 to however many you want).
In the init_weapons() function where all the weapons are added, you can add a line like this:
Code Snippet
Plaintext
add_limited_weapon( "scavenger", 1);
You still are required to have the original add_zombie_weapon() function for that weapon, but this will limit the box to only containing 1 of that weapon (you can change the 1 to however many you want).
Just that? I thought there would be more to it than just one function?