3.1 Config Updates Continued

This commit is contained in:
AconiteGodOfSWG
2021-03-30 03:02:28 -04:00
parent 355796dd48
commit dc9e2432ac
94 changed files with 338 additions and 311 deletions
@@ -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);
}