DIFF

class WatchtowerSource

Watchtower BaseBuildingBase ItemBase InventoryItem EntityAI Entity ObjectTyped Object IEntity Managed

All members, including inherited

Constructors 1

void Watchtower()

Constants 8

const float MAX_FLOOR_VERTICAL_DISTANCE = 0.5
const float MIN_ACTION_DETECTION_ANGLE_RAD = 0.35

0.35 RAD = 20 DEG

Referenced by IsFacingPlayer()
const float MAX_ACTION_DETECTION_DISTANCE = 2.0

meters

Referenced by HasProperDistance()
static const string BASE_VIEW_NAME = "level_"
static const string BASE_WALL_NAME = "_wall_"
static const string BASE_ROOF_NAME = "_roof"
Referenced by UpdateVisuals()
static const int MAX_WATCHTOWER_FLOORS = 3
static const int MAX_WATCHTOWER_WALLS = 3

Members 2

typename ATTACHMENT_BARBED_WIRE = BarbedWire
typename ATTACHMENT_CAMONET = CamoNet

Methods 23

override string GetConstructionKitType()
override int GetMeleeTargetType()
override bool CanPutIntoHands(EntityAI parent)
override bool CanBeRepairedToPristine()
override bool CheckMemoryPointVerticalDistance(float max_dist, string selection, PlayerBase player)
override bool CheckLevelVerticalDistance(float max_dist, string selection, PlayerBase player)
Referenced by IsPlayerInside()
override void AfterStoreLoad()
override void OnPartBuiltServer(notnull Man player, string part_name, int action_id)
override void OnPartDismantledServer(notnull Man player, string part_name, int action_id)
override void OnPartDestroyedServer(Man player, string part_name, int action_id, bool destroyed_by_connected_part = false)
override void SetActions()
override array<string> OnDebugSpawnBuildExcludes()

Excludes certain parts from being built by OnDebugSpawn, uses Contains to compare