The Massassi Temple: Forums  

Go Back   The Massassi Temple: Forums > Editing Forums > Cog Forum

Reply
 
Thread Tools Rate Thread
Title: Gravity SUx0rz
Electro is offline Electro
Registered User
Gravity SUx0rz | Old Posted: 01-20-2001, 12:41 PM #1
Reply With Quote

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!
 
Fernando_the_Hunn is offline Fernando_the_Hunn
Registered User
Old Posted: 01-20-2001, 02:04 PM #2
Reply With Quote

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...

mailto:no_oneatall@hotmail.comno_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))
 
Detty is offline Detty
Britlandish Banninator
Old Posted: 01-20-2001, 03:34 PM #3
Reply With Quote

either the first or second mlp has a couple of levels with grav switches
____________
Detty. Professional Expert.
Flickr Twitter Readernaut
 
Aglar is offline Aglar
Aglaristrator
Old Posted: 01-20-2001, 04:08 PM #4
Reply With Quote

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.
 
Electro is offline Electro
Registered User
Old Posted: 01-22-2001, 02:29 PM #5
Reply With Quote

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!
 
Aglar is offline Aglar
Aglaristrator
Old Posted: 01-23-2001, 04:37 AM #6
Reply With Quote

I would, but I have never written a C/S cog

------------------
Together we stand.
Divided we fall.
 
Electro is offline Electro
Registered User
Old Posted: 01-23-2001, 09:12 AM #7
Reply With Quote

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!
 
Electro is offline Electro
Registered User
Old Posted: 01-24-2001, 07:44 AM #8
Reply With Quote

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!
 
Hideki is offline Hideki
"My...date's starting to look aged."
Old Posted: 01-25-2001, 08:08 AM #9
Reply With Quote

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
 
Electro is offline Electro
Registered User
Old Posted: 01-25-2001, 10:14 AM #10
Reply With Quote

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!
 
Electro is offline Electro
Registered User
Old Posted: 01-26-2001, 07:41 AM #11
Reply With Quote

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!
 
Hideki is offline Hideki
"My...date's starting to look aged."
Old Posted: 01-27-2001, 06:59 AM #12
Reply With Quote

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
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:10 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.