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 issue.
Grav issue.
2004-03-09, 4:44 PM #1
Herm.. I decided about making a grav cog, for my level.. ^_^..

Problem have occured.. I cant use SetGravity command, for that will set the gravity for the entire level, so, I need to use SetSectorFlags.. I set the flags 0x1.. BUT, after the gravity is taken off, when you jump, you just go up, til you stop, then you hit the ceiling, and then stop.. You can go down, you can only go back and forth..

I will post the cog here later, but could anyone help?
"Greetings young Padawan."
2004-03-09, 4:48 PM #2
Don't set that flag. Then have a small upwards thrust in those sectors. Instant moon gravity [http://forums.massassi.net/html/biggrin.gif]. See LEC's thrust cogs for more info.

------------------
I am Darth Slaw.
The Dark Lord of the Sith,
And part of the Nightfire mod team

[This message has been edited by Darth Slaw (edited March 09, 2004).]
May the mass times acceleration be with you.
2004-03-09, 4:50 PM #3
Quote:
<font face="Verdana, Arial" size="2">Originally posted by Darth Slaw:
Have a small upwards thrust in those sectors. Instant moon gravity [http://forums.massassi.net/html/biggrin.gif]. See LEC's thrust cogs for more info.

</font>


Erm..... But, then could you step back down to the ground? And, what about the people that come in a little while after the switch was activated?

o_O
"Greetings young Padawan."
2004-03-09, 11:10 PM #4
Yeah, the sectorthrust would work well. It just can't be too strong, or you will never hit the ground again. And the thrust is a constant/repeating thing, so it doesn't matter when you enter the game/room.

------------------
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2004-03-10, 5:13 AM #5
Thanks, but, all the sector thrust does is make less gravity like. I need there to be NO gravity.. The only way to do that, is to set the flags, but it doesnt seem to wrok correctly. o_o
"Greetings young Padawan."
2004-03-10, 8:46 AM #6
Do you want to be able to fly around?

------------------
The future is here, and all bets are off.
And when the moment is right, I'm gonna fly a kite.
2004-03-10, 8:50 AM #7
I want there to be no gravity in a certian sector, and, after gravity is off, I want it to be off for Everyone in the game.
"Greetings young Padawan."
2004-03-10, 8:58 AM #8
So yes, I want people to be able to fly in that sector**
"Greetings young Padawan."
2004-03-10, 10:13 AM #9
Off the top of my head, you might want something like this as a level cog. Have no clue if it'll work right or even at all.

There is also "SetGravity(flex_gravity);" which affects the whole level's gravity.

Code:
# Cog to make no gravity in a sector.
#-------------------
symbols
     sector sec=-1
     message entered
     message exited
end
#-------------------
code

Entered:
     if(getSenderRef() != sec) return;
     clearPhysicsFlags(getSourceRef(), 0x1);
return;
#...................
Exited:
     if(getSenderRef() != sec) return;
     setPhysicsFlags(getSourceRef(), 0x1);
return;
end


[edit] Fixed; forgot "entered" and "exited" messages in "symbols" section

------------------
I am Darth Slaw.
The Dark Lord of the Sith,
And part of the Nightfire mod team

[This message has been edited by Darth Slaw (edited March 11, 2004).]
May the mass times acceleration be with you.
2004-03-11, 7:19 AM #10
Darth . . uhh . . you forgot something... "Message Entered" and "Message Exited" in the symbols section...

------------------
The future is here, and all bets are off.
And when the moment is right, I'm gonna fly a kite.
2004-03-11, 4:03 PM #11
Crud, I thought I was forgetting something; that symbols section looked WAY too small. [http://forums.massassi.net/html/redface.gif]

[edit] All fixed! [http://forums.massassi.net/html/biggrin.gif]

------------------
I am Darth Slaw.
The Dark Lord of the Sith,
And part of the Nightfire mod team

[This message has been edited by Darth Slaw (edited March 11, 2004).]
May the mass times acceleration be with you.
2004-03-11, 4:17 PM #12
The MOTS cog s4|1_fly.cog performs this function, but I willnot post it in case you dont have mots (its from the escortship level with the dead floating rebel soldiers)
Only it uses adjoin surfaces to control the action (entered/exited)

------------------
nil nip nada zip zero naught lip zil
This is retarded, and I mean drooling at the mouth

↑ Up to the top!