SpatialFear.SFDistinctCounter

Spatial Fear
Class: SFDistinctCounter
Description: Counter subclass that counts only events from distinct
triggers. If the counter is configured to reset on success
it again accepts events from triggers, that were already seen during the
first count sequence.
This is achieved by saving a reference to a trigger and only counting
it's events once in a count sequence. Event order doesn't matter.

Author: Markus Nuebel

Extends:
Modifiers:
Source code

SpatialFear.SFDistinctCounter
%%

Constants

%function_comment%
TRIGGER_COUNT=10

Variables

%function_comment%
ActorarTriggers[10]
%function_comment%
boolbFreeze
%function_comment%
floatfFreezeTimeAfterReset
%function_comment%
intnCount
%function_comment%
boolResetOnSucces

Functions

boolCheckTrigger (Actor oTrigger)
ClearTriggerList ()
boolInList (Actor oTrigger)
boolRememberTrigger (Actor oTrigger)
Reset ()
timer ()
Trigger (actor Other, pawn EventInstigator)

Default properties

{
     fFreezeTimeAfterReset=2.000000
}


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