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 → Gravity SUx0rz
Gravity SUx0rz
2001-01-20, 9:41 AM #1
Got this cog, it changes the gravty level in erm... a level by activating a switch in sp, now the problem is, i want it for multiplayer, so i put it in, but when you use it, only the gravity is changed for the host, and i want it to change for all players, can anyone point out the the changes i need to make?

here is the cog:
Code:
# Jedi Knight Cog Script
#
# 00_gravswitch.cog
#
# This COG will change the gravity of the entire level when activated.
# Has three settings: low, medium, high, and off. Each activation changes the
# setting. Low gravity makes multiplayer games very...interesting. :P
# Make the switch a thing - one of those consoles would be nice.
# Also plays a sound when used. :-)
#
# 
# This file is not supported by LucasArts Entertainment Company
# Scripted 1998 by Zero.
flags=0x100
symbols

message     activated

flex		number1    local

thing		console

sound		gravalarm

end

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

code

activated:
	number1 = GetGravity();

	PlaySoundGlobal(gravalarm, 1.0, 0.0, 0x10000);

	if(number1 == 0)
	{
		print("Station Gravity Level At: 1.0 *Normal*");
		SetGravity(4.0);
		number1 == 4;
		return;
	}
	if(number1 == 4)
	{
		print("Station Gravity Level At: 7.0 *Caution Recomended*");
		SetGravity(7.0);
		number1 == 7;
		return;
	}
	if(number1 == 7)
	{
		print("Station Gravity Level At: 1.0 Low *Some Caution Recomended*");
		SetGravity(1.0);
		number1 == 1;
		return;
	}
	if(number1 == 1)
	{
		print("***WARNING STATION GRAVITY SYSTEMS OFFLINE: If You Jump... You Will Not Come Down***");
		SetGravity(0.0);
		number1 == 0;
		return;
	}
	return;
end


------------------
Generating Electro Vibes™ for the masses on Massassi
Go To: HERE
Generating Electro Vibes™ for the masses on Massassi
Go To: BiTsToRm Forums or L3CY's Topsites
Boba Jules: You ever read the bible TK-421?
TK-421: No?
Boba Jules: Oh, ok...
*BLAM BLAM BLAM BLAM*
<EL3CTRO> EXCAUSE ME MISTAR CAERV BUT I LIEK MY PHORUMPHS!
2001-01-20, 11:04 AM #2
I think it has something to do with the flags=0x100 at the top. I think if you delete that, it might work. or maybe you have to set it to something else. If all else fails, use a trigger with local ( flags=0x240 ) cogs.

------------------
cogs dont kill people. people kill people...

[url="mailto:no_oneatall@hotmail.com"]mailto:no_oneatall@hotmail.com[/url]no_oneatall@hotmail.com</A>
ICQ 81116825
==============================================
((Evil Cog Master))
cogs dont kill people. people kill people...

mailto:no_oneatall@hotmail.comno_oneatall@hotmail.com</A>
ICQ 81116825
==============================================
((Evil Cog Master))
2001-01-20, 12:34 PM #3
either the first or second mlp has a couple of levels with grav switches
Detty. Professional Expert.
Flickr Twitter
2001-01-20, 1:08 PM #4
Those were host-only too.
I think if you use flags=0x240 it makes it work on all machines.

------------------
Together we stand.
Divided we fall.
2001-01-22, 11:29 AM #5
Ok, i've tried flags: 0x40 0x140 0x240 etc. etc. every combination i can think of, and it still dont work for everyone, the only progress i've made is with the 0x140 flags, they allow whoever uses the console low gravity, but it only effects the person who used it. aglar said about a c/s cog that would fix this, but i cant program in cog, would anyone be nice enough to write me a c/s cog that changes the gravity in a level like this cog PLLLEEEAAAASSSEEEEEE???? I would be very grateful and put ur name at the top of the credits!

------------------
Generating Electro Vibes™ for the masses on Massassi
Go To: HERE
Generating Electro Vibes™ for the masses on Massassi
Go To: BiTsToRm Forums or L3CY's Topsites
Boba Jules: You ever read the bible TK-421?
TK-421: No?
Boba Jules: Oh, ok...
*BLAM BLAM BLAM BLAM*
&lt;EL3CTRO&gt; EXCAUSE ME MISTAR CAERV BUT I LIEK MY PHORUMPHS!
2001-01-23, 1:37 AM #6
I would, but I have never written a C/S cog [http://216.105.160.32/html/frown.gif]

------------------
Together we stand.
Divided we fall.
2001-01-23, 6:12 AM #7
Well, it doesnt have to be c/s, as long as it can change the gravity level, for the whole level, for everyone, when pushed by anyone, and can switch between high, normal, low and off (see cog above).

------------------
Generating Electro Vibes™ for the masses on Massassi
Go To: HERE
Generating Electro Vibes™ for the masses on Massassi
Go To: BiTsToRm Forums or L3CY's Topsites
Boba Jules: You ever read the bible TK-421?
TK-421: No?
Boba Jules: Oh, ok...
*BLAM BLAM BLAM BLAM*
&lt;EL3CTRO&gt; EXCAUSE ME MISTAR CAERV BUT I LIEK MY PHORUMPHS!
2001-01-24, 4:44 AM #8
cant anyone write one that works?
Generating Electro Vibes™ for the masses on Massassi
Go To: BiTsToRm Forums or L3CY's Topsites
Boba Jules: You ever read the bible TK-421?
TK-421: No?
Boba Jules: Oh, ok...
*BLAM BLAM BLAM BLAM*
&lt;EL3CTRO&gt; EXCAUSE ME MISTAR CAERV BUT I LIEK MY PHORUMPHS!
2001-01-25, 5:08 AM #9
the switch cog :

activated:

SendTrigger(-1, 123, 0, 0, 0, 0);

return;

in a client cog flaged 0x240(I thought this was the flag for a local cog, maybe not, check it) :

trigger:

if(GetSourceRef() == 123)
{
//Change gravity here, look jkspec for the verb
}

return;

------------------
http://millennium.massassi.net/ - Millennium
2001-01-25, 7:14 AM #10
I'm kinda not very good wit cogs, i understande that this is a C/s piece of code due to the triggers, but i have to idea on where to start the cog, would you be ever so find as to make it?
Generating Electro Vibes™ for the masses on Massassi
Go To: BiTsToRm Forums or L3CY's Topsites
Boba Jules: You ever read the bible TK-421?
TK-421: No?
Boba Jules: Oh, ok...
*BLAM BLAM BLAM BLAM*
&lt;EL3CTRO&gt; EXCAUSE ME MISTAR CAERV BUT I LIEK MY PHORUMPHS!
2001-01-26, 4:41 AM #11
and as the rememnts of the thread, sink to the bottom of the list, a lone person comes along, and pushes it back to the top

[This message has been edited by Electro (edited January 26, 2001).]
Generating Electro Vibes™ for the masses on Massassi
Go To: BiTsToRm Forums or L3CY's Topsites
Boba Jules: You ever read the bible TK-421?
TK-421: No?
Boba Jules: Oh, ok...
*BLAM BLAM BLAM BLAM*
&lt;EL3CTRO&gt; EXCAUSE ME MISTAR CAERV BUT I LIEK MY PHORUMPHS!
2001-01-27, 3:59 AM #12
As for the switch cog, you put it inside the switch cog you use.

As for the trigger, it still works if you put it in the same cog, otherwise, make a new cog and place them in with symbols and make JED recognize it by assigning it to the switch or something.

------------------
http://millennium.massassi.net/ - Millennium

↑ Up to the top!