As Jk is about to be history, i think its time to release this cog which can be used in any custom level as long as its listed in the level itself (open JED, open a level, add the cog ...). What the cog does is basically force the host to show his stats and inventory to the other players. I had been thinking of doing a version working on any player but i'll leave that up to the one's who may need it.
# Jedi Knight Cog Script
#
# Filename.COG
#
# Description
#
#
# This Cog is Not supported by LucasArts Entertainment Co
symbols
cog this_cog local
thing player local
int sector local
int output local
int health local
int shields local
int mana local
int power local
int energy local
int rails local
int speed local
int jump local
int seeing local
int pull local
int heal local
int persu local
int blind local
int absorb local
int grip local
int destruct local
int protect local
int sight local
int goggles local
int keyimp local
int wrench local
int datadisk local
int keyred local
int keyblue local
int keyyellow local
int wrchblue local
int wrchyellow local
int keygreen local
message startup
message trigger
message pulse
end
# ========================================================================================
code
# ........................................................................................
startup:
player = GetLocalPlayerThing();
Return;
# .......................................................................................
trigger:
if(GetSourceRef() == 32100)
{
SendTrigger(-1, 32110, GetParam(0), GetParam(1), 0, 0);
SendTrigger(-1, 32110, GetParam(0), GetParam(1), 0, 0);
}
if(GetSourceRef() == 32110)
{
sector = GetParam(0);
if(sector == GetThingSector(player))
{
output = GetParam(1);
SetPulse(0.33);
}
}
Return;
# .......................................................................................
pulse:
health = GetThingHealth(player);
shields = GetInv(player, 60);
mana = GetInv(player, 14);
power = GetInv(player, 12);
energy = GetInv(player, 11);
rails = GetInv(player, 15);
speed = GetInv(player, 22);
jump = GetInv(player, 21);
seeing = GetInv(player, 23);
pull = GetInv(player, 24);
heal = GetInv(player, 25);
persu = GetInv(player, 26);
blind = GetInv(player, 27);
absorb = GetInv(player, 28);
grip = GetInv(player, 31);
destruct = GetInv(player, 33);
protect = GetInv(player, 29);
sight = GetInv(player, 34);
goggles = GetInv(player, 41);
keyimp = GetInv(player, 43);
wrench = GetInv(player, 44);
datadisk = GetInv(player, 45);
keyred = GetInv(player, 46);
keyblue = GetInv(player, 47);
keyyellow = GetInv(player, 48);
wrchblue = GetInv(player, 49);
wrchyellow = GetInv(player, 50);
keygreen = GetInv(player, 51);
SetPulse(0);
jkStringConcatPlayerName(player);
jkStringConcatAsciiString(" HAS ");
jkStringConcatAsciiString(" HEALTH: ");
jkStringConcatInt(health);
jkStringConcatAsciiString(" SHIELDS: ");
jkStringConcatInt(shields);
jkStringConcatAsciiString(" MANA: ");
jkStringConcatInt(mana);
jkStringConcatAsciiString(" POWER: ");
jkStringConcatInt(power);
jkStringConcatAsciiString(" ENERGY: ");
jkStringConcatInt(energy);
jkStringConcatAsciiString(" RAILS: ");
jkStringConcatInt(rails);
jkStringOutput(output, -1);
jkStringClear();
jkStringConcatAsciiString(" SPEED: ");
jkStringConcatInt(speed);
jkStringConcatAsciiString(" JUMP: ");
jkStringConcatInt(jump);
jkStringConcatAsciiString(" SEEING: ");
jkStringConcatInt(seeing);
jkStringConcatAsciiString(" PULL: ");
jkStringConcatInt(pull);
jkStringConcatAsciiString(" HEAL: ");
jkStringConcatInt(heal);
jkStringConcatAsciiString(" PERSU: ");
jkStringConcatInt(persu);
jkStringConcatAsciiString(" BLIND: ");
jkStringConcatInt(blind);
jkStringConcatAsciiString(" ABSORB: ");
jkStringConcatInt(absorb);
jkStringConcatAsciiString(" GRIP: ");
jkStringConcatInt(grip);
jkStringConcatAsciiString(" DESTRUCT: ");
jkStringConcatInt(destruct);
jkStringConcatAsciiString(" PROTECT: ");
jkStringConcatInt(protect);
jkStringConcatAsciiString(" SIGHT: ");
jkStringConcatInt(sight);
jkStringOutput(output, -1);
jkStringClear();
jkStringConcatAsciiString(" GOGGLES: ");
jkStringConcatInt(goggles);
jkStringConcatAsciiString(" KEYIMP: ");
jkStringConcatInt(keyimp);
jkStringConcatAsciiString(" WRENCH: ");
jkStringConcatInt(wrench);
jkStringConcatAsciiString(" DATADISK: ");
jkStringConcatInt(datadisk);
jkStringConcatAsciiString(" KEYRED: ");
jkStringConcatInt(keyred);
jkStringConcatAsciiString(" KEYBLUE: ");
jkStringConcatInt(keyblue);
jkStringConcatAsciiString(" KEYYELLOW: ");
jkStringConcatInt(keyyellow);
jkStringConcatAsciiString(" WRENCHBLUE: ");
jkStringConcatInt(wrchblue);
jkStringConcatAsciiString(" WRENCHYELLOW: ");
jkStringConcatInt(wrchyellow);
jkStringConcatAsciiString(" KEYGREEN: ");
jkStringConcatInt(keygreen);
jkStringOutput(output, -1);
jkStringClear();
Return;
# .......................................................................................
end
Ok,now you will ask how to send the trigger.
I thought this would be a good puzzle for you to solve and if u really want to know you'll have to e-mail me. Sorry but even i release it i still dont feel like let it in anyone's hands. For the one's who find themselves a way, congratulations you're worth it![http://forums.massassi.net/html/smile.gif [http://forums.massassi.net/html/smile.gif]](http://forums.massassi.net/html/smile.gif)
# Jedi Knight Cog Script
#
# Filename.COG
#
# Description
#
#
# This Cog is Not supported by LucasArts Entertainment Co
symbols
cog this_cog local
thing player local
int sector local
int output local
int health local
int shields local
int mana local
int power local
int energy local
int rails local
int speed local
int jump local
int seeing local
int pull local
int heal local
int persu local
int blind local
int absorb local
int grip local
int destruct local
int protect local
int sight local
int goggles local
int keyimp local
int wrench local
int datadisk local
int keyred local
int keyblue local
int keyyellow local
int wrchblue local
int wrchyellow local
int keygreen local
message startup
message trigger
message pulse
end
# ========================================================================================
code
# ........................................................................................
startup:
player = GetLocalPlayerThing();
Return;
# .......................................................................................
trigger:
if(GetSourceRef() == 32100)
{
SendTrigger(-1, 32110, GetParam(0), GetParam(1), 0, 0);
SendTrigger(-1, 32110, GetParam(0), GetParam(1), 0, 0);
}
if(GetSourceRef() == 32110)
{
sector = GetParam(0);
if(sector == GetThingSector(player))
{
output = GetParam(1);
SetPulse(0.33);
}
}
Return;
# .......................................................................................
pulse:
health = GetThingHealth(player);
shields = GetInv(player, 60);
mana = GetInv(player, 14);
power = GetInv(player, 12);
energy = GetInv(player, 11);
rails = GetInv(player, 15);
speed = GetInv(player, 22);
jump = GetInv(player, 21);
seeing = GetInv(player, 23);
pull = GetInv(player, 24);
heal = GetInv(player, 25);
persu = GetInv(player, 26);
blind = GetInv(player, 27);
absorb = GetInv(player, 28);
grip = GetInv(player, 31);
destruct = GetInv(player, 33);
protect = GetInv(player, 29);
sight = GetInv(player, 34);
goggles = GetInv(player, 41);
keyimp = GetInv(player, 43);
wrench = GetInv(player, 44);
datadisk = GetInv(player, 45);
keyred = GetInv(player, 46);
keyblue = GetInv(player, 47);
keyyellow = GetInv(player, 48);
wrchblue = GetInv(player, 49);
wrchyellow = GetInv(player, 50);
keygreen = GetInv(player, 51);
SetPulse(0);
jkStringConcatPlayerName(player);
jkStringConcatAsciiString(" HAS ");
jkStringConcatAsciiString(" HEALTH: ");
jkStringConcatInt(health);
jkStringConcatAsciiString(" SHIELDS: ");
jkStringConcatInt(shields);
jkStringConcatAsciiString(" MANA: ");
jkStringConcatInt(mana);
jkStringConcatAsciiString(" POWER: ");
jkStringConcatInt(power);
jkStringConcatAsciiString(" ENERGY: ");
jkStringConcatInt(energy);
jkStringConcatAsciiString(" RAILS: ");
jkStringConcatInt(rails);
jkStringOutput(output, -1);
jkStringClear();
jkStringConcatAsciiString(" SPEED: ");
jkStringConcatInt(speed);
jkStringConcatAsciiString(" JUMP: ");
jkStringConcatInt(jump);
jkStringConcatAsciiString(" SEEING: ");
jkStringConcatInt(seeing);
jkStringConcatAsciiString(" PULL: ");
jkStringConcatInt(pull);
jkStringConcatAsciiString(" HEAL: ");
jkStringConcatInt(heal);
jkStringConcatAsciiString(" PERSU: ");
jkStringConcatInt(persu);
jkStringConcatAsciiString(" BLIND: ");
jkStringConcatInt(blind);
jkStringConcatAsciiString(" ABSORB: ");
jkStringConcatInt(absorb);
jkStringConcatAsciiString(" GRIP: ");
jkStringConcatInt(grip);
jkStringConcatAsciiString(" DESTRUCT: ");
jkStringConcatInt(destruct);
jkStringConcatAsciiString(" PROTECT: ");
jkStringConcatInt(protect);
jkStringConcatAsciiString(" SIGHT: ");
jkStringConcatInt(sight);
jkStringOutput(output, -1);
jkStringClear();
jkStringConcatAsciiString(" GOGGLES: ");
jkStringConcatInt(goggles);
jkStringConcatAsciiString(" KEYIMP: ");
jkStringConcatInt(keyimp);
jkStringConcatAsciiString(" WRENCH: ");
jkStringConcatInt(wrench);
jkStringConcatAsciiString(" DATADISK: ");
jkStringConcatInt(datadisk);
jkStringConcatAsciiString(" KEYRED: ");
jkStringConcatInt(keyred);
jkStringConcatAsciiString(" KEYBLUE: ");
jkStringConcatInt(keyblue);
jkStringConcatAsciiString(" KEYYELLOW: ");
jkStringConcatInt(keyyellow);
jkStringConcatAsciiString(" WRENCHBLUE: ");
jkStringConcatInt(wrchblue);
jkStringConcatAsciiString(" WRENCHYELLOW: ");
jkStringConcatInt(wrchyellow);
jkStringConcatAsciiString(" KEYGREEN: ");
jkStringConcatInt(keygreen);
jkStringOutput(output, -1);
jkStringClear();
Return;
# .......................................................................................
end
Ok,now you will ask how to send the trigger.
I thought this would be a good puzzle for you to solve and if u really want to know you'll have to e-mail me. Sorry but even i release it i still dont feel like let it in anyone's hands. For the one's who find themselves a way, congratulations you're worth it
![http://forums.massassi.net/html/smile.gif [http://forums.massassi.net/html/smile.gif]](http://forums.massassi.net/html/smile.gif)