Looking for Some Scripting tips for a zero gravity map

PaPat SoundsMar 28 201611.2K8
    Halo and Forge Discussion

Hey guys! I'm certainly revealing my noob status by posting this, but who cares...I've been working on a space themed BTB map that incorporates zero gravity into some custom mini games. The game started out as a single base strongholds concept, but has evolved into a mode for every gametype. I've posted a WIP thread here for general feedback, etc:

http://www.forgehub.com/threads/wip-battle-of-orion-btb-space-battle-mini-game.151085/#post-1633531

Here's a somewhat outdated video of some early play tests. I've alterted a lot about the map, especially the starting weapons, pickups, kill balls, etc. - but this video probably gives the best idea of how zero g movement plays out:

https://www.youtube.com/watch?v=le9bpfMaOSs

I'm making this a new thread because I have a few specific scripting questions, and I'd like to cast a wider net for feedback / tips. I'm new to Forge and I don't have any previous experience in if / then programming or anything like that. I understand the basic concepts, but that's about it. Here's where I'm at and what I want to do. It's important to know that I'm getting pretty high up there in terms of object count, so a lot of this has to be done without creating tons of new objects:

-The current version is titled Ambush at Orion. I'm still open to name suggestions. You can find it in my bookmarks if you'd like to poke around.

- I've set up a zero-g variation of most of the main game modes. They can also be found in my bookmarks if you'd like to try them out - Squadrons (Slayer), Ambush (Assault), Boarding Party (CTF), Spaceholds (Strongholds). I'll be setting up Oddball next, as that seems like a good match for the physics.

- The map is based around three ships floating in space (two that are red / blue bases and one that's a neutral center target), as well as a couple floating asteroids that house power weapons.

- Every player has access to a banshee, but the custom gametypes I've built make it so there is no gravity in space and spartans can fly using infinite jetpack / ground pounds

- Since making the video above, I've added gravity volumes to the ships themselves to keep spartans tethered to the floor and give the effect of artificial gravity. This has become key to making objective gametypes work, since it's difficult to land in a stronghold or defend one of the 'motherships' while you are floating around.

-The center ship currently has a switch that despawns the gravity volumes on it, as well as the lights. They respawn about 25 seconds later....However, no one has really picked up that gravity has been deactivated because regardless of the gravity volumes, spartans will just stay on the floor until they jump. You have to turn off the gravity volumes and then jump in order to realize that you can float. People are just not picking up on the function of the switch yet. As far as I can tell, most players think it is just a light switch.

Part 1
-Instead of despawning the gravity volumes and having them respawn later, I'd like to make them flip upside down for 25 seconds, then return to their normal position. This way, spartans float upwards and the effect on gameplay is more dramatic / obvious. It might even be cool if the gravity volumes rotated individually in different directions, thus making the flow of gravity harder to deal with...

- Instead of using a switch, I'd like to have this activated by a target. The idea being that you can destroy some sort of power core to the ship, causing the gravity to malfunction and put the players inside the ship itself at a disadvantage. This would likely be most useful in the Strongholds mode - if you hit the target, the gravity volumes change and it scatters players away from the the capture zone somewhat...If this was working properly, I'd include this feature on all three ships, not just the one in the center.

Part 2 (this is probably REALLY easy)

-If you look at the map, you can see several asteroids and pieces of space debris floating around. They're still at the moment, but it'd be sweet if these had some movement to make them look like they are floating in space. I've tried to set them on a really slow rotation at match start, but at slow speeds they stutter and don't look good. I can get them to rotate faster, but I'm not sure how to make them rotate over and over again once they reach the end of the script....How to I make them continuously rotate? I've seen this done, and the solution is probably right under my nose.

So far this map has morphed into something really fun and I'm growing somewhat proud of it. It's been played several times in Max Extra's Forged Friday playtests, and it seems to be well liked for the most part, so I'd like to add these features to it to take it up an extra notch and make it really great. I'd also like to make at least one (if not more) sequels to the map that use these zero G gametypes, so you could play a few in a row without revisiting the same space (pun intended?). I just need a hand from some more experienced Forgers to take it to that next level. Also, if anyone has any non-scripting ideas of how to improve my map, feel free to drop me a line in the WIP thread above. Let's keep this thread focused on scripting if possible.

P.S. At the moment I'm in New Zealand and will be there until the end of the week, so I won't be able to act on any advice until then. In the meantime I'd appreciate any feedback or tips you guys have. Feel free to download and try the map out for yourself, or poke around there and mess with it to show me what I need to do. Unfortunately, you can't turn on the custom game physic while in forge, so you need to start a match in order to see how the gravity works.

Thanks in advance, and apologies for the lengthy post!