PDA

View Full Version : Grav tubes



COTF_Dude
06-15-2004, 02:33 PM
I was wondering if it was possible for someone to make a cog that works like the anti grav cog, but instead of going up it takes you down. Thnx

------------------
MechWarrior: "Welcome to Massassi where stealing isn't just done, it's recomended."

Edward
06-15-2004, 02:48 PM
'A Begga wha'?
Anti-grav, only going down? But, if it's going down, then it ain't anti-grav... Grav, is what makes everything come down, unless you are able to fly...

/Edward

ORJ_JoS
06-15-2004, 03:29 PM
I'd use 00_sectorthrust.cog for that. If you want to go down extra fast ('pushed down'), set the vector to (0/0/-1) and some appropriate speed, like 5 or something. Don't forget to set the landing surface to 'no damage from falling'. http://forums.massassi.net/html/wink.gif

If you want to 'float' down, set the vector to (0/0/1), and speed to 3 or something. That will make for a gentle touchdown. The thrust is now actually thrusting upwards, countering the effect of gravity. Don't set speed too high if you do this, otherwise the player will get too much upward thrust and keep floating.

------------------
ORJ_JoS
=Council Member=
+Order of Reborn Jedi+

http://www.rebornjedi.cjb.net

Long live JK! =Best Game Ever=

[This message has been edited by ORJ_JoS (edited June 15, 2004).]

a_person
06-15-2004, 09:18 PM
This will work, I even tested it because I had nothing to do.



# Jedi Knight Cog Script
#
# M5_ANTIGRAV2.COG
#
# Shoot the player upwards in the big tubes in M5
# Handles the 4 tubes in one script
#
# [YB]
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved

flags=0x240

symbols

sector antigrav1 desc=anti_grav1
sector antigrav2 desc=anti_grav2
sector antigrav3 desc=anti_grav3
sector antigrav4 desc=anti_grav4

thing player local

message startup

end

# ================================================== ======================================

code

startup:

// This is the real thruster.
// The Z value of the vector decides of the thrust.
// Be careful, high values will smash the player in the
// ceiling of the room above, possibly killing him.
SetSectorThrust(antigrav1, '0.0 0.0 1.0' , 3.5);
SetSectorThrust(antigrav2, '0.0 0.0 1.0' , 3.5);
SetSectorThrust(antigrav3, '0.0 0.0 1.0' , 3.5);
SetSectorThrust(antigrav4, '0.0 0.0 1.0' , 3.5);

Return;


end



------------------
~Nightfire Mod (http://www.nightfire.uni.cc)~