code:
#include "zcommon.acs"
script 1 OPEN
{
ACS_Execute (2, 0, 0, 0, 0); //Starts Script 2 when player enters level
ACS_Execute (3, 0, 0, 0, 0); //Starts Script 3 when player enters level
}
//////////////////////////////////////////////////////////////
// Script 2: Restores player's health to 100 if required //
//////////////////////////////////////////////////////////////
script 2 ENTER
{
if(GetActorProperty (0, APROP_Health) < 100)
HealThing (100);
}
//////////////////////////////////////////////////////////////
// Script 3: Strips player's weapons & ammo //
//////////////////////////////////////////////////////////////
script 3 (void)
{
TakeInventory ("Chainsaw", 1);
TakeInventory ("Shotgun", 1);
TakeInventory ("SuperShotgun", 1);
TakeInventory ("Chaingun", 1);
TakeInventory ("RocketLauncher", 1);
TakeInventory ("PlasmaRifle", 1);
TakeInventory ("BFG9000", 1);
TakeInventory ("Backpack", 1);
TakeInventory ("Clip", 999);
TakeInventory ("Shell", 999);
TakeInventory ("RocketAmmo", 999);
TakeInventory ("Cell", 999);
TakeInventory ("Armor", 999);
GiveInventory ("Pistol", 1);
GiveInventory ("Clip", 30);
print (s:"WARNING!!");
Delay(70);
print (s:"\cc Your weapons, ammo, and armor have been removed!");
Delay(70);
}