|
| Title: Gravity SUx0rz | |
|
Registered User
|
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! |
|
Registered User
|
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)) |
|
Registered User
|
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* <EL3CTRO> EXCAUSE ME MISTAR CAERV BUT I LIEK MY PHORUMPHS! |
|
Registered User
|
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* <EL3CTRO> EXCAUSE ME MISTAR CAERV BUT I LIEK MY PHORUMPHS! |
|
Registered User
|
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* <EL3CTRO> EXCAUSE ME MISTAR CAERV BUT I LIEK MY PHORUMPHS! |
|
"My...date's starting to look aged."
|
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 |
|
Registered User
|
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* <EL3CTRO> EXCAUSE ME MISTAR CAERV BUT I LIEK MY PHORUMPHS! |
|
Registered User
|
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* <EL3CTRO> EXCAUSE ME MISTAR CAERV BUT I LIEK MY PHORUMPHS! |
|
"My...date's starting to look aged."
|
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 |
![]() |
| Thread Tools | |
| Rate This Thread | |
|
|