Giant Styled Random Perk Locations

NOTE

Tutorial by Madgaz, all credits goes to him.


Giant Styled means that at the beginning of the game, all perk locations are randomized and do not get affected by any other action. If you want Shi No Numa Styled Random Perk Locations, click HERE.




RADIANT

Open the ENTITY_BROWSER and place a SCRIPT_STRUCT in your map. This struct is going to be the NEW location for your perks.


The origin of this struct is going to be the exact position of the new perk, so place it halfway into the floor, and the GREEN Y AXIS ARROW is the backside of the machine.


We are now giving this struct a new KVP:

targetname - perk_random_machine_location

OPTIONAL - If you want to visualize the perk location, add this KVP, but remember to remove it when done placing your struct:

model - p7_zm_vending_sleight

Next, go over to your Perk Machine Prefab and add this new KVP:

script_notify - random_perk_machine


SCRIPT

Open your mapname.gsc and find the following line:

zm_usermap::main();

Anywhere above that line but still within function main(), insert the following line:

level.randomize_perk_machine_location = true;

That's it!


Related Posts

See All

Multiple Power Switches

This guide will show you how to implement multiple power switches, such as in Shangri-La, where there are two power switches that must be both flipped in order to turn on the power. This will not cove

ZM Stats

NOTE This is a comprehensive list of all stats that are tracked in zombies. These are the variables that go within the quotations when using self.pers[""] in script. Example: deaths = player.pers["de

Avoiding Power Lag

NOTE Using these in your maps will avoid the lag players experience for a few seconds after turning on the power. The lag is caused because the game is trying to load in all of the hintstrings from al