Call of Duty 5: World at War => Tutorial Desk => Scripting => Topic started by: MakeCents on June 21, 2014, 02:38:20 am
Title: Communal Box
Post by: MakeCents on June 21, 2014, 02:38:20 am
This will make the box weapon take-able for all players, not just the person that hit the box.
All changes will be in your _zombiemode_weapons.gsc, treasure_chest_think() function.
I have provided two options, the few steps necessary for this, or at the bottom of the page you can select and replace the entire function.
Step-by-step Locate the treasure_chest_think() function. Replace the following: with Replace the following: with Replace the following: with Then add the following function after the treasure_chest_think() function function or, if it is easier for you, just replace your whole treasure_chest_think() function with this:
Title: Re: Communal Box
Post by: Dust on June 21, 2014, 02:53:23 am
NICE! Been waiting for this tutorial forever. One question, does this make it so the players can automatically take other players weapons or does it wait about 5-6 seconds before giving other players the option. If its the first way then can you show me how to make it so the player who spins the box can take it before it will let other players take it. That way no one can steal other peoples box weapons.
Title: Re: Communal Box
Post by: MakeCents on June 21, 2014, 03:01:32 am
NICE! Been waiting for this tutorial forever. One question, does this make it so the players can automatically take other players weapons or does it wait about 5-6 seconds before giving other players the option. If its the first way then can you show me how to make it so the player who spins the box can take it before it will let other players take it. That way no one can steal other peoples box weapons.
You could change: to and add this after the treasure_chest_think() function
Edit: I updated the tut to include this. Good idea.
Title: Re: Communal Box
Post by: Dust on June 21, 2014, 03:44:31 am