Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Grav tubes
Grav tubes
2004-06-15, 11:33 AM #1
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."
<SalvadorChicka> i wasn't all "omg canadians have sex with each other!"
2004-06-15, 11:48 AM #2
'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
Edward's Cognative Hazards
2004-06-15, 12:29 PM #3
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).]
ORJ / My Level: ORJ Temple Tournament I
2004-06-15, 6:18 PM #4
This will work, I even tested it because I had nothing to do.

Code:
# 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~
Spoting an error in post will result in a $100 reward.
Offer expires on 6/6/06. Valid one per customer, per day.

Rangi

↑ Up to the top!