@LabelIndex 101375
@StringIndex 11671
class 0 keep_damage_trap : default_trap {
parameter:
	string	AreaName = "keep_damage_trap_default";
	int	IsDetected = 0;
	int	IsDefused = 0;

handler:
	EventHandler CREATED() {
		if( AreaName != "" ) {
			myself::AddTimerEx(2001,( timer * 1000 ));
		}
		super;
	}

	EventHandler TIMER_FIRED_EX(timer_id) {
		if( timer_id == 2001 ) {
			gg::Area_SetOnOff(AreaName,1);
			myself::AddTimerEx(2002,( ( timer * 1000 ) + ( gg::Rand(60) * 1000 ) ));
		} else if( timer_id == 2002 ) {
			gg::Area_SetOnOff(AreaName,0);
			myself::AddTimerEx(2001,( ( timer * 1000 ) + ( gg::Rand(60) * 1000 ) ));
		}
		super;
	}

}
