Posts
235
Respect
56Add +1
Forum Rank
Mr. Elemental
Primary Group
Member
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. | |
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 |
Easy enough, one thing though could you add "tp points" for each player you want or do you want it to be random?
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 |
Yeah I was hoping for randomness, maybe so you could get lucky and end up with another person, but if it's too difficult I can settle for a non random order
Alright another thing are they going to be in the same room? Or will it always be random and players can't spawn in same room (/spawn point).
What I mean is having 1-4 spawn points per room and then it'll be randomly selected, then it'll be filtered out.
I could also make it teleport random players (randomize player array).
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 |
Here's a mockup of what I have now.
Pseudocode
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 |
This isn't complete it's just a mockup of the code.
Another thing I wanted to bring up do you want a chance for a player to spawn in the same room again? Because that's how it can be now, if you don't we'll have to go through some more checks.
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 |
Start moving players before round is incremented/restarted.
Grab players then randomize.
Grab teleport points then randomize.
For each player, if we're not reusing same spawn point from prev player (first player in array will always move) then generate new point, have a chance to remove the spawn point from the tp array but make sure not to remove it if we're using same point, have a chance to reuse same tp point for the next player, and finally make sure the teleport point is real then move the player while setting a black overlay.
mods/mapname/maps/_zombiemode.gsc
mmmmk give this a try
Pseudocode
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 |
Yeah you can put any number you want but 4 would be a good number as there might be a chance for all 4 players to be in same room.
Edit: Give the struct a targetname of player_teleport_point and then copy it for each new point
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 |
when launching the game it says "round_think" already defined
Overwrite the original function with my code (it's in the same GSC).