Posts
200
Respect
54Add +1
Forum Rank
Mr. Elemental
Primary Group
Donator ♥
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
If you buy them on the wall, as a normal wall weapon, you need to include your weapon inside the if where it takes the player's weapon (_zombiemode_weapons, weapon_give( weapon, is_upgrade ) ):
Then you have to take the player's grenades, checking if the player has them and that you're giving the new grenades to take his normal grenades.
If they appear in the box the code is very similar but in treasure_chest_give_weapon( weapon_string ) and if you're not using the original script for this, you'll have to find where the script for buying wall weapons is.
And for the round part, with the name you gave to grenades is really simple. Go to award_grenades_for_survivors() and you have to add this inside the first if statement:
And every time it says "stielhandgranate" inside this function, put this:
Not tested, though.
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
UGX V.I.P. | |
Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
Uninitialized variable "weapon"
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. | |
Oil Rig Beta Access |
Change these:
to be current_weapon instead of weapon
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
UGX V.I.P. | |
Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
That'll mess things up, this is the function:Spoiler: click to open...[close]
The weapon var should be passed on from the function that called it.
Did you put it in the correct function, and not in the function for the box? ( treasure_cheast_give_weapon )
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. | |
Oil Rig Beta Access |
Right, I didnt check the actual script, so I went with what was shown in his comment
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
UGX V.I.P. | |
Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
Did you put it in the correct function, and not in the function for the box? ( treasure_cheast_give_weapon )
I dont believe so Where in the function would it go?
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
You must have put it in other function because weapon is initialized since it's an argument of the function.
The function is the one Blunt copied in the Hidden text.
You only have to find this line inside that function:
and add:
And you have to do something similar for the box if the grenade appears in the box.
Okay now I have uninitialized variable "new_grenades"