Posted by Red on February 07, 1998 at 10:23:20:
Hola, I am working on a Hoth level and made full sized bacta tanks. NEways they work in SP and only for the host in MP. Is there anyway to fix this?
Thanks
~Red
# Jedi Knight Cog Script
# ========================================================================================
symbols
message startup
message pulse
sector damageSector # the deadly sector.
flex damageInterval=1.0 # how often damage is applied in seconds.
flex damage=4.0 # how much damage is applied
thing victim local # actors and players affected.
int type local
end
# ========================================================================================
code
# ........................................................................................
startup:
if(damageSector > -1) SetPulse(damageInterval);
return;
# ........................................................................................
pulse:
victim = FirstThingInSector(damageSector);
while (victim != -1)
{
type = GetThingType(victim);
// If we have an actor (2) or a player (10)
if ((type==2) || (type==10))
{
// Do the damage or healing.
if (damage > 0)
{
DamageThing(victim, damage, 0x8, victim);
}
else
{
HealThing(victim, -damage);
}
}
victim = NextThingInSector(victim);
}
return;
# ........................................................................................
end