SpatialFear.SFHealthTrigger

00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
//=============================================================================
// Spatial Fear
// Class: SFHealthTrigger
// Descripton: Subclasses of SFTrigger, sets the SFPlayers health, without
//					applying damage to it. No damage sound. Defaults to 
//					TriggersOnlyOnce
//
// Author: Markus Nuebel
//=============================================================================

class SFHealthTrigger extends SFTrigger;


var (SpatialFear) int	 NewHealth;	// New health value to assigne the SFPlayer to, during impact. Default: 100


// Overwritten, to add the special health setting here
function Touch( actor Other )
{
	if( IsRelevant( Other ) )
	{
		if(Other.IsA('SFPlayer'))
			SFPlayer(Other).SFHealth(NewHealth);
	}
	// Call to base class
	Super.Touch(Other);
}

defaultproperties
{
     NewHealth=100
     bTriggerOnceOnly=True
}

class file time: 12/7/2003 3:58:24 PM - creation time: 12/7/2003 4:03:44 PM
Created with UnCodeX