Electro
01-20-2001, 12:41 PM
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:
# 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 (http://electroprose.clanpages.com)
here is the cog:
# 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 (http://electroprose.clanpages.com)