No, I really do sometimes. Why won't the killed message be called in this one. I've tried both with flags and without.
------------------
The Sniper Missions. Current project, The Sniper Missions
The Magician Saber System.
Code:
Stupid MP cogs, making post a cog question on the cog forums and listening to the whines of GBK.# Jedi Knight Cog Script
#
# AQUA_FOG.COG
#
# Creates a fog/mist like effect when it rains hard
# For CTF_Aquatic
#
# [DP]
#
flags=0x240
symbols
message startup
message newplayer
message entered
message killed
sector on
sector off
sector off2
int fog local
int infog local
int mainfogr=100
int mainfogg=100
int mainfogb=100
flex tinger=0.25
flex tingeg=0.25
flex tingeb=0.25
end
# ========================================================================================
code
Startup:
player = GetLocalPlayerThing();
Newplayer:
If(GetThingSector(player) == on)
{
infog = 1;
fog = newColorEffect(0, 0, 0, 0, 0, 0, mainfogr, mainfogg, mainfogb, 1);
AddDynamicAdd(player, tinger, tingeg, tingeb);
}
Return;
# ........................................................................................
Entered:
If(GetSenderRef() == on)
{
If(infog) Return;
infog = 1;
fog = newColorEffect(0, 0, 0, 0, 0, 0, mainfogr, mainfogg, mainfogb, 1);
AddDynamicAdd(player, tinger, tingeg, tingeb);
}
Else
{
infog = 0;
FreeColorEffect(fog);
AddDynamicAdd(player, 0, 0, 0);
}
Return;
# ........................................................................................
Killed:
If(!infog) Return;
infog = 0;
FreeColorEffect(fog);
AddDynamicAdd(player, 0, 0, 0);
Return;
end------------------
The Sniper Missions. Current project, The Sniper Missions
The Magician Saber System.
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms
Completed
Judgement Day (HLP), My level pack
SATNRT, JK Pistol Mod, Aliens TC, Firearms
Completed
Judgement Day (HLP), My level pack
