Posts
2,148
Respect
352Add +1
Forum Rank
King of the Zombies
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. | |
Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. | |
Oil Rig Beta Access |
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
dont think you can tbh. You can check for some buttons like meleebuttonpressed() and attackbuttonpressed() and then there's the action-slots you can assign, but since you said it's not a weapon that might not be usefull.
Other then that i think you can only check for a few controller-inputs ( seen PWN and Harry mention that in some post i think ), and buttons pressed by the host.
I've been looking at this a few time's b4, and couldn't find any other ways of doing this..
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 |
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
guess you could make a weaponfile that represents the powerup, and when 'fired' you trigger the powerup. Should work, just a bit more scripting maybe, but dont we all love scripting
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 |
I was also thinking doing what Quizz did in TMG castle with the skip break, but that only works when the host presses it so that wouldnt really be ideal.
If I was going to do what you suggested, how would I go about doing it?
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
Kinda depends on how you stored the powerup to the player maybe. But something like this could work:
-make the weaponfile, and find / make some anims that dont look weird / go with your idea.
-assign it to a actionslot etc
- make a script that checks if the player is holding that weapon ( could just use getcurrentweapon in a loop prob )
-as soon as he does take it away and activate the stored powerup
so basicly you dont really use the weaponfile, just check for it in the script, and take it away ( if you do that quick enough you prob dont even need anims to go with it )
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 |
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. | |
Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. | |
Oil Rig Beta Access |
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
Try this, not really sure why you're checking all players? Can they all use it?
This example only checks the player that you gave the powerup-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 |
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
Think you need to set inventorytype to item in the weaponfile, forgot to mention that. srry
also make sure you load that weapon-file like any other, so in mod.csv / zombiemode_weapons and dlc3_code etc..
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. | |
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. |