Static Tier 3 Weapon Spawning "Delayed Drop-Spawn"

SoSomething CEsarFeb 24 201622.1K12
    Halo and Forge Discussion

A few weeks ago I made a thread about static weapons and how there are many problems when trying to implement this spawning system into Halo 5. You can check that out here.

I'm not going to type that all up again, so this doesn't seem like a 40 minute stealth advertisement that leads no where.. I will re-explain drop spawning however, since that is what this method I came up with is based on.

Halo 5 "delayed drop-spawning" method (CE-like weapon timer) in detail:

In Halo 5, objects placed in forge reset their origin if they naturally move (due to gravity for example) from where you placed them to where they end up at an equilibrium. This means you can't implement drop spawning in the traditional way where you fix the weapon mid air, then without touching or selecting the actual weapon, you either delete the object below it or you change the objects physical properties to normal from fixed.

The way it is done in H5G is by placing a block (of any kind, preferably small and visible) that is levitated above the apparent set spawn location of your the weapon and is set to not be included in any gamemode (under "game mode labels"). Once you set up your invisible block, place the weapon with normal physics on the block. Make sure you remove any script on the weapon, then set it to start its respawn timer "on disturbance," your respawn time can be set to anything you want. I recommend setting the despawn time equal to the respawn time, which you could do in the form of a script, however I'm not sure if that messes with the system, so just use the regular despawn setting.

Now you have your static drop spawn weapon, but it doesn't match the game/match timer because the match timer doesn't start until after the cinematic, which is about 13 seconds long... To fix this, you want to delay the initial disturbance of the weapon by ~13 seconds somehow. For this, think about how drop spawning works. You know the spawn timer starts when the weapon is disturbed, and the weapon is disturbed when the weapon falls, which is the instant the map loads up.

To correct the weapon spawn timer so it is in synchronization with the match timer, you simply have to delay fall. To do this, duplicate the block you currently have, and make sure you set the new block to where it APPEARS in ALL game modes, by removing all game mode labels. Now vertically align the height so that its z-value is equal to that of the original block (this must be perfect, so use magnets or coordinates). The two blocks don't need to be aligned on the horizontal plane however, so I recommend turning on object movement (RT + Down on D-pad), and offsetting the new block in the x or y direction making it easier to grab each one. Make sure that the weapon is still balanced on the new block without the support of the old one and vise versa. Also since you don't ever see either of these blocks in game, you can distinguish them with two different colors for example: pink and blue or green and red, etc.

Now for the new block, you want to add two scripts. Attach one of the scripts to a switch through channel Alpha for example. Set it to where the new object "resets position/rotation" on "message received." Now place your switch out side of the map (to where it can only be accessed in forge), and create a script that causes the switch to "Send Signal" when activated (I forget the in-game terms or labels). Now the new object will reset to its origin when the external switch is toggled. The purpose of this is to make forging this object much easier, when playing around with the movement scripting of this object or block. This will make more sense later.

Add another script to the new block, this one is actually important to delaying the drop spawn. Set the script to run on a "Timer" with an initial delay of ~13.00 and a repeat timer of 0.00 (this is so the object performs the action only once at about the same time the match timer starts). Then set the action to "Move Position" where the "Time" will be set to 0.10 (which is the smallest possible amount), the change in X will be left at 0.00, the change in Y will also stay 0.00, the Z (vertical) must be set to a variable of a negative value that depends on how high the system is above ground. Assuming that your sniper isn't 30 meters up in the air set the Z (vertical) value to < [-20.00]. If the system is above multiple levels on the map you may have to set that value much lower (the whole point is that the "new block" moves out of the map in the direction of gravity as fast as possible, which is why you set the movement time to 0.10).

Now you should understand that this method is basically a drop spawn system that is delayed until the match or game timer starts. You also probably figured that the 1st script is to make it easier to mess around with the movement script without having to constantly re-align the block with the old one. The variables here are things such as how high the weapon is being dropped from, the exact duration of the intro cinematic, etc. This leads to having to play around with values such as your weapon respawn time (might need to be changed between 2 to -2 seconds), the initial delay (what I said to be around ~13.00) might need to be adjusted by no more than plus/minus 2 seconds, and depending on the distance between the system and the base of the map, you may also need to change the Z (verticle) movement. Since the forge timer is not delayed by the time of the cinematic and that you can only test this in custom games, you will need to constantly switch between custom game and forge mode to find your exact values, which involve you waiting through a couple of spawn cycles to find a good consistency (just simple trial and error, science, etc.).

You might have wondered why you don't just set the new block to despawn at the match start (and set the switch to make it respawn when toggled). This doesn't work because if a structural object is removed (despawned) from the map for a certain amount of time (which can vary), it will be permanently deleted (you will also notice your object budget go back up). I also recommend not setting the object to move too low (as to where it ends up under the canvas or the immovable terrain) because that might result in the object also permanently being removed from the map.

I know this sounds more complicated than the idea of this system actually is, so ask questions. I'm not sure if drop spawning has been done this way in H5G, since not many people are interested in static spawning, but I thought I'd post it anyways to follow up on my old post. You can also check out how I did it on my Downrush remake in my fileshare. GT: "whats a CEsar"