Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Apex.AI.Components;
- using Apex.AI.Serialization;
- using Rust.Ai;
- using System;
- using UnityEngine;
- public class NPCPlayerApex : NPCPlayer
- {
- public int agentTypeIndex;
- public float AggroRangeScore = 5f;
- public float CloseRangeScore = 10f;
- public GameObjectRef DeathEffect;
- [Header("NPC Player Senses")]
- public int ForgetUnseenEntityTime = 10;
- public bool IsMountableAgent;
- public float LongRangeScore = 1f;
- [NonSerialized]
- public Transform[] LookAtInterestPointsStationary;
- public float MaxDistanceToCover = 15f;
- public float MediumRangeScore = 5f;
- public float MinDistanceToRetreatCover = 6f;
- public bool NeverMove;
- public bool NewAI;
- [Tooltip("Only care about sensations from our active enemy target, and nobody else."), Header("Sensory")]
- public bool OnlyTargetSensations;
- public GameObjectRef RadioEffect;
- public Vector2 RadioEffectRepeatRange = new Vector2(10f, 15f);
- public AIStorage SelectCoverTargetsUtility;
- public AIStorage SelectEnemyHideoutUtility;
- public AIStorage SelectEntityTargetsUtility;
- public AIStorage SelectPlayerTargetMountedUtility;
- [Header("Sensory System")]
- public AIStorage SelectPlayerTargetUtility;
- public float SensesTickRate = 0.5f;
- public BaseNpc.AiStatistics Stats;
- public float ToolSwitchFrequency = 5f;
- [SerializeField]
- private UtilityAIComponent utilityAiComponent;
- [Header("NPC Player Senses Target Scoring")]
- public float VisionRangeScore = 1f;
- public Rust.Ai.WaypointSet WaypointSet;
- public float WeaponSwitchFrequency = 5f;
- public override string Categorize()
- {
- return "scientist";
- }
- public enum EnemyEngagementRangeEnum : byte
- {
- AggroRange = 0,
- DeaggroRange = 1,
- NeutralRange = 2
- }
- public enum EnemyRangeEnum : byte
- {
- CloseAttackRange = 0,
- LongAttackRange = 2,
- MediumAttackRange = 1,
- OutOfRange = 3
- }
- public enum ToolTypeEnum : byte
- {
- Lightsource = 2,
- None = 0,
- Research = 1
- }
- public enum WeaponTypeEnum : byte
- {
- CloseRange = 1,
- LongRange = 3,
- MediumRange = 2,
- None = 0
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement