Posts
1,895
Respect
907Add +1
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
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!Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. | |
BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
Aye mate you don't know me so y don't you shut tf up ok buddy
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Box Mappers Elite | |
Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
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 |
This tut will help you make your players randomize in solo and coop, and give you options for different starting weapons, viewarms, and laststand pistols.NOTEThis tut assumes you already know how to get weapons or viewarms into your map, via raw folders or csvs.
1. Copy _loadout.gsc from your root/raw/maps folder to your root/mods/mapname/maps folder, if you haven't already
2. Open _loadout.gsc in your mods folder in a text editor, i.e. Sublime Text 2, Notepad, and Notepad++
3. Under level.gaveweapons = []; in the init_loadout() function put this:
Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. | |
BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
i dont have level.gaveweapons in my loadout script and i just got it from mod tools: http://gyazo.com/fdec6b1744e750d96df64f2d668786aa
Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. | |
BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. | |
BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
my character keeps getting 4 guns on solo
I added 4 weapon variants to my map and I want each player to have a different type of starting weapon. I tested the weapons themselves and they work as they should but when I start the game my character has the default weapon and the 4 I added (the default weapon is 1 of the 4 variants)
I triple checked my code and everything is how the tutorial says it should be but I cant get my character to only have 1 weapon. or even the defaut and 1 random gun. can someone plz help me Ive been stuck on this for days.
P.S. Im only doing the weapons part not the viewarms
I'm sorry, I never get notifications from new members on this site. I don't know if that is a setting or on purpose or what. I'm not sure about the prob you are having. If you have definitely isolated it to this tut, then I can take a look. If you put this script back and it still does it, then of course it is something else.
The only place I giveweapon is in the setup. If you are one player it should only run once for that player because of the switch. I use this exact setup, without the viewarms, just like you, with a slight modification with a randomized array to give each player a randomized starting and laststand weapon each time, which doesn't change anything, so it should work, unless I missed something else.
I updated the tut with my weapon randomizer option.
Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. | |
BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
thanks for responding quickly ppl usually take a bit longer to do so.
I did find out tge exact problem and it is definitely not with your tut. I decided to make my own simple script to randomize just the starting gun and I was getting the same error.
anyways the problem is when putting more than 1 add_weapon(weapon);
for example if I do add_weapon 4 times because I want diff guns, my character will get as many weapons as I did add_weapon
I did a quick fix by modifying your SetUp_weapons funtion to remove the default starting gun then run add_weapon and then do all the stuff your function already had. so this works and my character gets only 1 gun and its random every game but I have no way of testing this in Co-Op and im afraid that I will run into the same problem if more than 1 player is in the game.
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
Oil Rig Beta Access |
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
Getting an issue that makes the player model of a character change every time they respawn, this can cause more than one of the same character to be on the map at a time. There are also a load of random Dempsey quotes even if the player is not Dempsey and then these are followed by the wuotes of the actual players character.
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
Oil Rig Beta Access |
itll be the intro quote that is sometimes wrong, not sure why, think it must get set up before the characters - tends to be correct after a esc - restart
its called in dlc3_code.gsc ( the one i found in zombiemode.gsc is irrelevent )
Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. | |
BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
Getting an issue that makes the player model of a character change every time they respawn, this can cause more than one of the same character to be on the map at a time. There are also a load of random Dempsey quotes even if the player is not Dempsey and then these are followed by the wuotes of the actual players character.
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
I've heard the random dempsy quotes but I also hear each players quotes too. Think I saw somewhere it happens with takeo, but I don't really remember. I may have seen the same player spawn on my old version of this tut, but don't remember. I don't currently have that issue, so I will look at my scripts later and update this then if there is a difference. Just looking at the script I would comment this line out and see what it does.
Edit: After further review, that shouldn't matter if self.entity_num is defined. So that not being defined could be causing multiple people to spawn at the same time.
Edit 2: And I now see that you are saying after they die and respawn they are changing, which is bizarre, but I'll have to look at mine then later, and test that.