Code: Select all
parm.other waitill deathCode: Select all
if (parm.other.health == 0)
or
while (parm.other.health == 0)any suggestions?
Moderator: Moderators
Code: Select all
parm.other waitill deathCode: Select all
if (parm.other.health == 0)
or
while (parm.other.health == 0)Code: Select all
for (local.i=1; local.i<=$player.size; local.i++)
{
if !(isAlive $player[local.i])
{
remove the stuff
}
}Code: Select all
for (local.i=1; local.i<=$player.size; local.i++)
{
if !(isAlive $player[local.i])
{
setcvar "cg_3rd_person" "0"
level.allieshasspy--
}
}
}
}// the extra two are for my above script ;)Code: Select all
//---------------------------------------------------------------------------
monitor_axis_object:
//---------------------------------------------------------------------------
$axtrig waittill trigger
local.player = parm.other
if ((local.player.dmteam==allies) && (level.axisobj_stolen == 0) && (isAlive local.player))
{
local.player iprint "You must get the Captains Statue back to your stronghold as quickly as you can!"
$axtrig delete
$axisent delete
level.axisobj_stolen = 1
level.axisobj_carried = 1
local.player light 0 0 1 100 // = blue
local.player lighton
iprintlnbold_noloc "The Allied Captains Statue has been stolen back!"
waitthread al_checkloop local.player
}
//rest of routine etc etc...
end
//---------------------------------------------------------------------------
al_checkloop local.player:
//---------------------------------------------------------------------------
while(! level.axisobj_stolen==0)
{
if (! isAlive local.player )
{
// player died or dropped it
waitthread axisobject local.player.origin
level.axisobj_carried = 0
iprintlnbold_noloc "The Captains Statue has been dropped somewhere"
local.player lightoff
break
}
if (local.player isTouching $axisjailbox)
{
waitthread axisobject local.player.origin
level.axisobj_carried = 0
iprintlnbold_noloc "Allies have their Captains Statue back in their stronghold.."
local.player lightoff
level.axisobj_stolen = 0
wait 2
teamwin allies
end
}
wait 1
}
end Code: Select all
airborne:
if (level.axishasspy != 3)
{
println "Be the otherteam... BE the other team :) "
local.lt = parm.other
if (local.pvt.dmteam == "axis" )
{
level.axishasspy++
setcvar "cg_3rd_person" "1" //debug
local.lt takeall
local.lt model "player/allied_airborne.tik"
local.lt item weapons/colt45.tik
local.lt item weapons/BAR.tik
local.lt ammo mg 60
local.lt ammo pistol 4
local.lt useweaponclass mg
while(level.axishasspy>0)
{
if (! isAlive local.lt )
{
setcvar "cg_3rd_person" "0"
level.axishasspy--
break
}
}
}
}
end