Jetpack

Version 2.0 for UT2004


Changes : version 2.0 makes the jetpack toggle keybind a press/release method, rather than pressing the toggle key twice. Also added are a pickup for the Jetpack (Jetpack.JetpackPickup), a PickupBase for the Jetpack (Jetpack.JetpackPickupBase), and a fuel pickup (Jetpack.JetpackFuelPickup) for mappers who wish to add the Jetpack to their maps as a standard pickup item.


Functionality : provides players a jetpack with which to fly around with


Compatibility : usable with any mod or mutator that properly handles interaction chaining


Installation : unzip with file structure intact into your UT2004 directory.

Use : Run UT2004 and start a game (multiplayer, instant action, doesn't matter), and either select a map that specifically supports Jetpack, or select Jetpack from the mutator list and add it to the used mutator list. Start game. During play, to activate the Jetpack (if you have one), simply press jump twice in quick sucession, just like double jumping. Holding down the second jump press will keep the Jetpack activated, while letting go shuts off the Jetpack.

Activating the Jetpack will cause it to start the only thing it does - thrust you upwards. While you have the Jetpack on, you have no standard air control (moving yourself in mid-air magically), however, you can lean with the Jetpack on. To lean, simply use your forward/backward/strafe keys. Note that with the Jetpack on, you have momentum (as well as gravity still), and while it's easy to pick up speed leaning, it's equally hard to slow yourself down from a good clip. Also note that there is no limit such as fuel - the jetpack will stay on and going for as long as you want it to. For this, it's probably not the greatest idea to use on sniper happy maps.


Mutator Notes :

The mutator allows you to configure the jetpack that will be given to players. The three options determine whether or not the Jetpack needs fuel at all, whether or not the Jetpack will auto-replenish its fuel supply (by players letting go of the activation key), and how much fuel the Jetpack can hold when full.


Notes for Mappers :

You will find two pickup classes under Object->Actor->Pickup, JetpackPickup and JetpackFuelPickup. The JetpackPickup will place a Jetpack pickup item in the level, where players can pick up a Jetpack (provided they don't already have one). The JetpackFuelPickup item will place a Jetpack Fuel Pickup (gascan) in the level, where players can add to the fuel in their Jetpack. The JetpackPickup allows you to set the properties of the jetpack picked up (akin to the mutator options), while the JetpackFuelPickup allows you to configure the kind of fuel pickup you want, either making it random within a range (range is between 0.0, no fuel, and 1.0, full tank), or setting it to a specific percentage to give to the player (between 0.0, no fuel, and 1.0, full tank).


Notes for those interested : Jetpack is not Karma. I know somebody is going to claim it is. It's not.


Credits :

	eldee - for making the fuel pickup mesh, skinning meshes, and constant testing
	Fizzy - for making the Jetpack mesh
	AlphaOne - for constant testing

	
Jetpack is solely my creation. You have every permission to export the classes to learn from it, pass it along to your friends, or stick it up your nose (for all I care). Don't be stupid; you already know not to try to sell something like Jetpack, so don't bother trying.

Also, due to the number of requests to package Jetpack up with other mods and such : I would rather you tell people that Jetpack is required/encouraged to have for your mod, since any updates I do after this would not make me obligated to send them to everybody who took the Jetpack code and used it in their projects.

If your mod does make use of the Jetpack code, I really don't mind as long as you give proper credit to where and who the code came from originally. Giving people fair credit for their work isn't just nice, it's the right thing to do.


Pfhoenix
pfhoenix@beyondunreal.com
http://mep.beyondunreal.com
