I have this cog, it changes the gravity in a level, but when i use it in a multiplayer level, it only changes the gravity for the host, how can i change it so it effects everyone? I think i might have to add the 0x100 flag somewhere, but i dont know where.
Here is the code:
------------------
"It's been, one week since we got the scene, cheating lovers and cousians that marry,
5 days since they had the show with the hermaphrodite, the slut and the crack ho,
3 days since we heard the tale about the guy who learned his woman was a shemale,
yesterday it occured to me, that i've been watching a bit too much jerry springer!"
Here is the code:
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, and high. Each activation changes the # setting. Low gravity makes multiplayer games very...interesting. # 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. symbols message activated flex number1 local thing console sound gravalarm end # ======================================================================================== code activated: number1 = GetGravity(); PlaySoundGlobal(gravalarm, 1.0, 0.0, 0x10000); if(number1 == 1) { print("Gravity Level: normal"); SetGravity(4.0); number1 == 4; return; } if(number1 == 4) { print("Gravity Level: high"); SetGravity(7.0); number1 == 7; return; } if(number1 == 7) { print("Gravity Level: low"); SetGravity(1.0); number1 == 1; return; } return; end
------------------
"It's been, one week since we got the scene, cheating lovers and cousians that marry,
5 days since they had the show with the hermaphrodite, the slut and the crack ho,
3 days since we heard the tale about the guy who learned his woman was a shemale,
yesterday it occured to me, that i've been watching a bit too much jerry springer!"