mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-10-16 07:13:29 -04:00
3.1 Config Updates Continued
This commit is contained in:
@@ -2,6 +2,7 @@ package script.ai;
|
||||
|
||||
import script.library.ai_lib;
|
||||
import script.library.attrib;
|
||||
import script.library.utils;
|
||||
import script.obj_id;
|
||||
|
||||
public class hunter extends script.base_script
|
||||
@@ -10,11 +11,13 @@ public class hunter extends script.base_script
|
||||
{
|
||||
}
|
||||
public static final String ALERT_VOLUME_NAME = "alertTriggerVolume";
|
||||
private static final boolean AI_TRIGGER_VOLUMES_DISABLED = utils.checkConfigFlag("GameServer", "disableAITriggerVolumes");
|
||||
|
||||
public int OnAttach(obj_id self) throws InterruptedException
|
||||
{
|
||||
setAttributeInterested(self, attrib.HERBIVORE);
|
||||
setAttributeInterested(self, attrib.CARNIVORE);
|
||||
if (!ai.AI_TRIGGER_VOLUMES_DISABLED)
|
||||
if (!AI_TRIGGER_VOLUMES_DISABLED)
|
||||
{
|
||||
createTriggerVolume(ALERT_VOLUME_NAME, ai_lib.aiGetApproachTriggerRange(self), true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user