Dayz Explorer 1.29.162510
Loading...
Searching...
No Matches
EntityAI Class Reference
Inheritance diagram for EntityAI:
Building ScriptedEntity AnniversarySpotLight BuildingBase DynamicArea_Flare SpookyPlayerStalker TriggerEvents UndergroundTriggerCarrierBase House Land_Underground_WaterReservoir_Water Trigger UndergroundTriggerCarrier Land_Bilboard_Base Land_Underground_EntranceBase Land_WarheadStorage_Bunker_Facility Land_WarheadStorage_Main Land_WarheadStorage_PowerStation StaticObj_Roadblock_Wood_Small BarbedWireTrigger CylinderTrigger ManTrigger SphereTrigger TrapTrigger

Protected Member Functions

void InitImpactSoundData ()
AbstractWave PlaySound (SoundObject so, SoundObjectBuilder sob)
void PlaySoundByAnimEvent (EAnimSoundEventID id)
string GetImpactSurfaceType (IEntity other, Contact impact)
string GetImpactSurfaceTypeEx (IEntity other, Contact impact, out int liquid)
string GetRuinedMeleeAmmoType ()
 returns ammo (projectile) used in melee if the item is destroyed. Override higher for specific use
float ProcessImpactSound (IEntity other, Contact extra, float weight, out int surfaceHash)
float ProcessImpactSoundEx (IEntity other, Contact extra, float weight, out int surfaceHash, out int liquidType)
override bool CanDropEntity (notnull EntityAI item)
void OnItemInHandsChanged ()
bool NeedInventoryJunctureFromServer (notnull EntityAI item, EntityAI currParent, EntityAI newParent)
void LocalDestroyEntityInHands ()
void PredictiveMoveItemFromHandsToInventory ()
 ToDo: Old system method. Might should be adjusted to new system at some point.
void JunctureDeleteItem (EntityAI item)
override bool CanBeSkinned ()
override bool DisableVicinityIcon ()
void UpdateInventoryMenu ()
CachedEquipmentStorageBase GetCachedEquipment ()
bool IsInventorySoftLocked ()
void SetInventorySoftLock (bool status)
bool IsInTransport ()
 returns true if man is in transport, false otherwise
void StopDeathDarkeningEffect ()
bool PhysicalPredictiveDropItem (EntityAI entity, bool heavy_item_only=true)
void SetProcessUIWarning (bool state)
void OnGameplayDataHandlerSync ()
bool CanPlaceItem (EntityAI item)
array< InventoryItemOnDrawOptics2D ()
void Transport ()
override void EEHitBy (TotalDamageResult damageResult, int damageType, EntityAI source, int component, string dmgZone, string ammo, vector modelPos, float speedCoef)
override int GetMeleeTargetType ()
override event GetOwnerStateType ()
override event GetMoveType ()
proto native void Synchronize ()
 Synchronizes car's state in case the simulation is not running.
proto native int CrewSize ()
 Returns crew capacity of this vehicle.
proto native int CrewPositionIndex (int componentIdx)
proto native int CrewMemberIndex (Human player)
proto native Human CrewMember (int posIdx)
proto native Human CrewDriver ()
proto void CrewEntry (int posIdx, out vector pos, out vector dir)
 Reads entry point and direction into vehicle on given position in model space.
proto void CrewEntryWS (int posIdx, out vector pos, out vector dir)
 Reads entry point and direction into vehicle on given position in world space.
proto void CrewTransform (int posIdx, out vector mat[4])
 Returns crew transformation indside vehicle in model space.
proto void CrewTransformWS (int posIdx, out vector mat[4])
 Returns crew transformation indside vehicle in world space.
proto native void CrewGetIn (Human player, int posIdx)
 Performs transfer of player from world into vehicle on given position.
proto native Human CrewGetOut (int posIdx)
 Performs transfer of player from vehicle into world from given position.
proto native void CrewDeath (int posIdx)
 Handles death of player in vehicle and awakes its physics if needed.
void OnDriverEnter (Human player)
void OnDriverExit (Human player)
proto native bool LightIsOn ()
 Returns true when lights are on, false otherwise.
proto native void LightOn ()
 Signals for LightIsOn to return true.
proto native void LightOff ()
 Signals for LightIsOn to return false.
proto native void LightToggle ()
 Calls LightOn/LightOff depending on current light state.
bool OnBeforeLightOn ()
void OnUpdateLight ()
proto void ApplyForce (vector force)
 -------------— deterministic physics ---------------------—
proto void ApplyTorque (vector force)
 Applies constant torque on the physics body.
proto void ApplyForceAt (vector pos, vector force)
 Applies constant force on the physics body at a position (world space coordinates).
proto void ApplyCentralImpulse (vector centralImpulse)
 Applies impulse on the physics body (at origin).
proto void ApplyTorqueImpulse (vector torqueImpulse)
 Applies impulse torque on the physics body.
proto void ApplyImpulseAt (vector pos, vector force)
 Applies impulse on the physics body at a position (world space coordinates).
proto native int Random ()
 -------------— deterministic random numbers ---------------------—
proto native float RandomRange (int pRange)
 Random number in range of <0,pRange-1> - !!! use this only during deterministic simulation (EOnSimulate/EOnPostSimulate).
proto native float Random01 ()
 Random number in range of <0,1> - !!! use this only during deterministic simulation (EOnSimulate/EOnPostSimulate).
float RandomFloat (float min, float max)
 Random number in range of <min,max> - !!! use this only during deterministic simulation (EOnSimulate/EOnPostSimulate).
void OnContact (string zoneName, vector localPos, IEntity other, Contact data)
void OnInput (float dt)
void OnUpdate (float dt)
void UpdateLights (int new_gear=-1)
override bool IsTransport ()
override bool IsIgnoredByConstruction ()
override bool IsHealthVisible ()
override bool ShowZonesHealth ()
override int GetHideIconMask ()
float GetMomentum ()
bool IsVitalSparkPlug ()
string GetVehicleType ()
string GetActionCompNameFuel ()
float GetActionDistanceFuel ()
vector GetRefillPointPosWS ()
VehicleFlippedContext GetFlipContext ()
bool DetectFlippedUsingSurface (VehicleFlippedContext ctx, float angleTolerance)
bool DetectFlipped (VehicleFlippedContext ctx)
 Override based on vehicle implementation (Car, Boat, modded, etc.).
bool IsFlipped ()
 Don't override, may change to native for caching 'DetectFlipped' in the future based on active-ness (i.e. only updated when vehicle changes active state).
bool IsActionFlipped (Man player)
 Don't override, may change to native for caching 'DetectFlipped' in the future based on active-ness (i.e. only updated when vehicle changes active state).
bool IsAnyCrewPresent ()
float GetTransportCameraDistance ()
void MarkCrewMemberUnconscious (int crewMemberIndex)
void MarkCrewMemberDead (int crewMemberIndex)
vector GetTransportCameraOffset ()
int GetAnimInstance ()
int GetSeatAnimationType (int posIdx)
int Get3rdPersonCameraType ()
bool CrewCanGetThrough (int posIdx)
bool CanReachSeatFromSeat (int currentSeat, int nextSeat)
bool CanReachSeatFromDoors (string pSeatSelection, vector pFromPos, float pDistance=1.0)
bool CanReachDoorsFromSeat (string pDoorsSelection, int pCurrentSeat)
int GetSeatIndexFromDoor (string pDoorSelection)
bool IsIgnoredObject (Object o)
void SetEngineZoneReceivedHit (bool pState)
bool HasEngineZoneReceivedHit ()
override void GetDebugActions (out TSelectableActionInfoArrayEx outputList)
override bool OnAction (int action_id, Man player, ParamsReadContext ctx)
bool IsAreaAtDoorFree (int currentSeat, float maxAllowedObjHeight, inout vector extents, out vector transform[4])
bool IsAreaAtDoorFree (int currentSeat, float maxAllowedObjHeight=0.5, float horizontalExtents=0.5, float playerHeight=1.7)
Shape DebugFreeAreaAtDoor (int currentSeat, float maxAllowedObjHeight=0.5, float horizontalExtents=0.5, float playerHeight=1.7)
void JunctureTakeEntityToHands (notnull EntityAI item)
 hand juncture
void PredictiveTakeEntityToHands (EntityAI item)
void LocalTakeEntityToHands (EntityAI item)
void ServerTakeEntityToHands (EntityAI item)
void TakeEntityToHandsImpl (InventoryMode mode, EntityAI item)
bool ReplaceItemWithNewImpl (InventoryMode mode, ReplaceItemWithNewLambdaBase lambda)
 !hand -> !hand replace
bool LocalReplaceItemWithNew (ReplaceItemWithNewLambdaBase lambda)
bool ServerReplaceItemWithNew (ReplaceItemWithNewLambdaBase lambda)
bool ReplaceItemElsewhereWithNewInHandsImpl (InventoryMode mode, ReplaceItemWithNewLambdaBase lambda)
 !hand replace -> hand
bool LocalReplaceItemElsewhereWithNewInHands (ReplaceItemWithNewLambdaBase lambda)
bool ServerReplaceItemElsewhereWithNewInHands (ReplaceItemWithNewLambdaBase lambda)
bool ReplaceItemInHandsWithNewImpl (InventoryMode mode, ReplaceItemWithNewLambdaBase lambda)
 hand replace
bool LocalReplaceItemInHandsWithNew (ReplaceItemWithNewLambdaBase lambda)
bool ServerReplaceItemInHandsWithNew (ReplaceItemWithNewLambdaBase lambda)
bool ReplaceItemInHandsWithNewElsewhereImpl (InventoryMode mode, ReplaceItemWithNewLambdaBase lambda)
 hand replace2
bool LocalReplaceItemInHandsWithNewElsewhere (ReplaceItemWithNewLambdaBase lambda)
bool ServerReplaceItemInHandsWithNewElsewhere (ReplaceItemWithNewLambdaBase lambda)
bool JunctureTakeEntityToInventory (FindInventoryLocationType flags, notnull EntityAI item)
 to inv juncture
override bool PredictiveTakeEntityToInventory (FindInventoryLocationType flags, notnull EntityAI item)
override bool LocalTakeEntityToInventory (FindInventoryLocationType flags, notnull EntityAI item)
override bool ServerTakeEntityToInventory (FindInventoryLocationType flags, notnull EntityAI item)
bool TakeEntityToInventoryImpl (InventoryMode mode, FindInventoryLocationType flags, notnull EntityAI item)
bool JunctureTakeEntityToCargo (notnull EntityAI item)
 to cgo juncture
override bool PredictiveTakeEntityToCargo (notnull EntityAI item)
override bool LocalTakeEntityToCargo (notnull EntityAI item)
override bool ServerTakeEntityToCargo (notnull EntityAI item)
bool TakeEntityToCargoImpl (InventoryMode mode, notnull EntityAI item)
bool JunctureTakeEntityAsAttachment (notnull EntityAI item)
 as att juncture
override bool PredictiveTakeEntityAsAttachment (notnull EntityAI item)
override bool LocalTakeEntityAsAttachment (notnull EntityAI item)
override bool ServerTakeEntityAsAttachment (notnull EntityAI item)
bool TakeEntityAsAttachmentImpl (InventoryMode mode, notnull EntityAI item)
bool JunctureTakeEntityAsAttachmentEx (notnull EntityAI item, int slot)
 as att ex juncture
override bool PredictiveTakeEntityAsAttachmentEx (notnull EntityAI item, int slot)
override bool LocalTakeEntityAsAttachmentEx (notnull EntityAI item, int slot)
override bool ServerTakeEntityAsAttachmentEx (notnull EntityAI item, int slot)
bool TakeEntityAsAttachmentExImpl (InventoryMode mode, notnull EntityAI item, int slot)
bool JunctureSwapEntities (notnull EntityAI item1, notnull EntityAI item2)
 swap juncture
bool PredictiveSwapEntities (notnull EntityAI item1, notnull EntityAI item2)
bool LocalSwapEntities (notnull EntityAI item1, notnull EntityAI item2)
bool ServerSwapEntities (notnull EntityAI item1, notnull EntityAI item2)
bool SwapEntitiesImpl (InventoryMode mode, notnull EntityAI item1, notnull EntityAI item2)
bool JunctureForceSwapEntities (notnull EntityAI item1, notnull EntityAI item2, notnull InventoryLocation item2_dst)
 ForceSwap juncture.
bool PredictiveForceSwapEntities (notnull EntityAI item1, notnull EntityAI item2, notnull InventoryLocation item2_dst)
bool LocalForceSwapEntities (notnull EntityAI item1, notnull EntityAI item2, notnull InventoryLocation item2_dst)
bool ServerForceSwapEntities (notnull EntityAI item1, notnull EntityAI item2, notnull InventoryLocation item2_dst)
bool ForceSwapEntitiesImpl (InventoryMode mode, notnull EntityAI item1, notnull EntityAI item2, notnull InventoryLocation item2_dst)
bool JunctureTakeEntityToTargetInventory (notnull EntityAI target, FindInventoryLocationType flags, notnull EntityAI item)
 to target inv juncture
override bool PredictiveTakeEntityToTargetInventory (notnull EntityAI target, FindInventoryLocationType flags, notnull EntityAI item)
bool PredictiveTakeOrSwapAttachment (notnull EntityAI item)
override bool LocalTakeEntityToTargetInventory (notnull EntityAI target, FindInventoryLocationType flags, notnull EntityAI item)
bool TakeEntityToTargetInventoryImpl (InventoryMode mode, notnull EntityAI target, FindInventoryLocationType flags, notnull EntityAI item)
bool JunctureTakeEntityToTargetCargoEx (notnull CargoBase cargo, notnull EntityAI item, int row, int col)
 to target cgo ex juncture
override bool PredictiveTakeEntityToTargetCargoEx (notnull CargoBase cargo, notnull EntityAI item, int row, int col)
override bool LocalTakeEntityToTargetCargoEx (notnull CargoBase cargo, notnull EntityAI item, int row, int col)
override bool ServerTakeEntityToTargetCargoEx (notnull CargoBase cargo, notnull EntityAI item, int row, int col)
bool TakeEntityToTargetCargoExImpl (InventoryMode mode, notnull CargoBase cargo, notnull EntityAI item, int row, int col)
bool JunctureTakeEntityToTargetCargo (notnull EntityAI target, notnull EntityAI item)
 to target cgo juncture
override bool PredictiveTakeEntityToTargetCargo (notnull EntityAI target, notnull EntityAI item)
override bool LocalTakeEntityToTargetCargo (notnull EntityAI target, notnull EntityAI item)
override bool ServerTakeEntityToTargetCargo (notnull EntityAI target, notnull EntityAI item)
bool TakeEntityToTargetCargoImpl (InventoryMode mode, notnull EntityAI target, notnull EntityAI item)
bool JunctureTakeEntityToTargetAttachmentEx (notnull EntityAI target, notnull EntityAI item, int slot)
 to target att ex juncture
override bool PredictiveTakeEntityToTargetAttachmentEx (notnull EntityAI target, notnull EntityAI item, int slot)
override bool LocalTakeEntityToTargetAttachmentEx (notnull EntityAI target, notnull EntityAI item, int slot)
override bool ServerTakeEntityToTargetAttachmentEx (notnull EntityAI target, notnull EntityAI item, int slot)
bool TakeEntityToTargetAttachmentExImpl (InventoryMode mode, notnull EntityAI target, notnull EntityAI item, int slot)
bool JunctureTakeEntityToTargetAttachment (notnull EntityAI target, notnull EntityAI item)
 to target att juncture
override bool PredictiveTakeEntityToTargetAttachment (notnull EntityAI target, notnull EntityAI item)
override bool LocalTakeEntityToTargetAttachment (notnull EntityAI target, notnull EntityAI item)
override bool ServerTakeEntityToTargetAttachment (notnull EntityAI target, notnull EntityAI item)
bool TakeEntityToTargetAttachmentImpl (InventoryMode mode, notnull EntityAI target, notnull EntityAI item)
bool JunctureTakeToDst (notnull InventoryLocation src, notnull InventoryLocation dst)
 to dst juncture
override bool PredictiveTakeToDst (notnull InventoryLocation src, notnull InventoryLocation dst)
override bool LocalTakeToDst (notnull InventoryLocation src, notnull InventoryLocation dst)
override bool ServerTakeToDst (notnull InventoryLocation src, notnull InventoryLocation dst)
bool TakeToDstImpl (InventoryMode mode, notnull InventoryLocation src, notnull InventoryLocation dst)
proto native bool StatRegister (string name)
proto native float StatGet (string name)
 Gets counter value of the specified stat type.
proto void StatGetCounter (string name, out string value)
 Gets counter value as string of the specified stat type.
proto void StatGetAsTime (string name, out string value)
 Gets counter value as formatted time string of the specified stat type.
proto native void StatUpdate (string name, float value)
 Updates stat counter with given value.
proto native void StatUpdateByTime (string name)
 Updates stat counter by time.
proto native void StatUpdateByPosition (string name)
 Updates stat counter by player's actual position.
proto native void StatUpdateByGivenPos (string name, vector pos)
 Updates stat counter by given position.
proto native void StatInvokeUpdate ()
proto native void StatSyncToClient ()

Protected Attributes

bool m_EngineZoneReceivedHit
vector m_fuelPos
ref set< intm_UnconsciousCrewMemberIndices
ref set< intm_DeadCrewMemberIndices
ref ScriptInvoker m_OnItemAddedToHands
ref ScriptInvoker m_OnItemRemovedFromHands
ref CachedEquipmentStorageBase m_CachedEquipmentStorage
ScriptInvoker GetOnItemAddedToHands ()
ScriptInvoker GetOnItemRemovedFromHands ()
void EEItemIntoHands (EntityAI item)
void EEItemOutOfHands (EntityAI item)
bool JunctureDropEntity (notnull EntityAI item)
 drop juncture
override bool PredictiveDropEntity (notnull EntityAI item)
override bool LocalDropEntity (notnull EntityAI item)
override bool ServerDropEntity (notnull EntityAI item)
bool DropEntityImpl (InventoryMode mode, notnull EntityAI owner, notnull EntityAI item)

Detailed Description

Definition at line 1 of file inventoryitem.c.

Member Function Documentation

◆ ApplyCentralImpulse()

proto void EntityAI::ApplyCentralImpulse ( vector centralImpulse)
protected

Applies impulse on the physics body (at origin).

◆ ApplyForce()

proto void EntityAI::ApplyForce ( vector force)
protected

-------------— deterministic physics ---------------------—

Applies constant force on the physics body (at origin).

◆ ApplyForceAt()

proto void EntityAI::ApplyForceAt ( vector pos,
vector force )
protected

Applies constant force on the physics body at a position (world space coordinates).

◆ ApplyImpulseAt()

proto void EntityAI::ApplyImpulseAt ( vector pos,
vector force )
protected

Applies impulse on the physics body at a position (world space coordinates).

◆ ApplyTorque()

proto void EntityAI::ApplyTorque ( vector force)
protected

Applies constant torque on the physics body.

◆ ApplyTorqueImpulse()

proto void EntityAI::ApplyTorqueImpulse ( vector torqueImpulse)
protected

Applies impulse torque on the physics body.

◆ CanBeSkinned()

override bool EntityAI::CanBeSkinned ( )
protected

Definition at line 883 of file man.c.

◆ CanDropEntity()

override bool EntityAI::CanDropEntity ( notnull EntityAI item)
protected

Definition at line 159 of file man.c.

◆ CanPlaceItem()

bool EntityAI::CanPlaceItem ( EntityAI item)
protected

◆ CanReachDoorsFromSeat()

bool EntityAI::CanReachDoorsFromSeat ( string pDoorsSelection,
int pCurrentSeat )
protected

Definition at line 520 of file transport.c.

◆ CanReachSeatFromDoors()

bool EntityAI::CanReachSeatFromDoors ( string pSeatSelection,
vector pFromPos,
float pDistance = 1.0 )
protected

Definition at line 511 of file transport.c.

◆ CanReachSeatFromSeat()

bool EntityAI::CanReachSeatFromSeat ( int currentSeat,
int nextSeat )
protected

Definition at line 502 of file transport.c.

◆ CrewCanGetThrough()

bool EntityAI::CrewCanGetThrough ( int posIdx)
protected

Definition at line 493 of file transport.c.

◆ CrewDeath()

proto native void EntityAI::CrewDeath ( int posIdx)
protected

Handles death of player in vehicle and awakes its physics if needed.

◆ CrewDriver()

proto native Human EntityAI::CrewDriver ( )
protected

Returns the driver Null can be returned if no Human is present.

◆ CrewEntry()

proto void EntityAI::CrewEntry ( int posIdx,
out vector pos,
out vector dir )
protected

Reads entry point and direction into vehicle on given position in model space.

◆ CrewEntryWS()

proto void EntityAI::CrewEntryWS ( int posIdx,
out vector pos,
out vector dir )
protected

Reads entry point and direction into vehicle on given position in world space.

◆ CrewGetIn()

proto native void EntityAI::CrewGetIn ( Human player,
int posIdx )
protected

Performs transfer of player from world into vehicle on given position.

◆ CrewGetOut()

proto native Human EntityAI::CrewGetOut ( int posIdx)
protected

Performs transfer of player from vehicle into world from given position.

◆ CrewMember()

proto native Human EntityAI::CrewMember ( int posIdx)
protected

Returns crew member based on position index. Null can be returned if no Human is present on the given position.

◆ CrewMemberIndex()

proto native int EntityAI::CrewMemberIndex ( Human player)
protected

Returns crew member index based on player's instance. -1 is returned when the player is not isnide.

◆ CrewPositionIndex()

proto native int EntityAI::CrewPositionIndex ( int componentIdx)
protected

Returns crew member index based on action component index. -1 is returned when no crew position corresponds to given component index.

◆ CrewSize()

proto native int EntityAI::CrewSize ( )
protected

Returns crew capacity of this vehicle.

◆ CrewTransform()

proto void EntityAI::CrewTransform ( int posIdx,
out vector mat[4] )
protected

Returns crew transformation indside vehicle in model space.

◆ CrewTransformWS()

proto void EntityAI::CrewTransformWS ( int posIdx,
out vector mat[4] )
protected

Returns crew transformation indside vehicle in world space.

◆ DebugFreeAreaAtDoor()

Shape EntityAI::DebugFreeAreaAtDoor ( int currentSeat,
float maxAllowedObjHeight = 0.5,
float horizontalExtents = 0.5,
float playerHeight = 1.7 )
protected

Definition at line 691 of file transport.c.

◆ DetectFlipped()

bool EntityAI::DetectFlipped ( VehicleFlippedContext ctx)
protected

Override based on vehicle implementation (Car, Boat, modded, etc.).

Definition at line 418 of file transport.c.

◆ DetectFlippedUsingSurface()

bool EntityAI::DetectFlippedUsingSurface ( VehicleFlippedContext ctx,
float angleTolerance )
protected

Definition at line 342 of file transport.c.

◆ DisableVicinityIcon()

override bool EntityAI::DisableVicinityIcon ( )
protected

Definition at line 888 of file man.c.

◆ DropEntityImpl()

bool EntityAI::DropEntityImpl ( InventoryMode mode,
notnull EntityAI owner,
notnull EntityAI item )
protected

Definition at line 150 of file man.c.

◆ EEHitBy()

override void EntityAI::EEHitBy ( TotalDamageResult damageResult,
int damageType,
EntityAI source,
int component,
string dmgZone,
string ammo,
vector modelPos,
float speedCoef )
protected

Definition at line 84 of file transport.c.

◆ EEItemIntoHands()

void EntityAI::EEItemIntoHands ( EntityAI item)
protected

Definition at line 106 of file man.c.

◆ EEItemOutOfHands()

void EntityAI::EEItemOutOfHands ( EntityAI item)
protected

Definition at line 113 of file man.c.

◆ ForceSwapEntitiesImpl()

bool EntityAI::ForceSwapEntitiesImpl ( InventoryMode mode,
notnull EntityAI item1,
notnull EntityAI item2,
notnull InventoryLocation item2_dst )
protected

Definition at line 606 of file man.c.

◆ Get3rdPersonCameraType()

int EntityAI::Get3rdPersonCameraType ( )
protected

Definition at line 483 of file transport.c.

◆ GetActionCompNameFuel()

string EntityAI::GetActionCompNameFuel ( )
protected

Definition at line 313 of file transport.c.

◆ GetActionDistanceFuel()

float EntityAI::GetActionDistanceFuel ( )
protected

Definition at line 318 of file transport.c.

◆ GetAnimInstance()

int EntityAI::GetAnimInstance ( )
protected

Definition at line 465 of file transport.c.

◆ GetCachedEquipment()

CachedEquipmentStorageBase EntityAI::GetCachedEquipment ( )
protected

Definition at line 895 of file man.c.

◆ GetDebugActions()

override void EntityAI::GetDebugActions ( out TSelectableActionInfoArrayEx outputList)
protected

Definition at line 590 of file transport.c.

◆ GetFlipContext()

VehicleFlippedContext EntityAI::GetFlipContext ( )
protected

Definition at line 328 of file transport.c.

◆ GetHideIconMask()

override int EntityAI::GetHideIconMask ( )
protected

Definition at line 293 of file transport.c.

◆ GetImpactSurfaceType()

string EntityAI::GetImpactSurfaceType ( IEntity other,
Contact impact )
protected

Definition at line 152 of file inventoryitem.c.

◆ GetImpactSurfaceTypeEx()

string EntityAI::GetImpactSurfaceTypeEx ( IEntity other,
Contact impact,
out int liquid )
protected

Definition at line 160 of file inventoryitem.c.

◆ GetMeleeTargetType()

override int EntityAI::GetMeleeTargetType ( )
protected

Definition at line 91 of file transport.c.

◆ GetMomentum()

float EntityAI::GetMomentum ( )
protected

Definition at line 298 of file transport.c.

◆ GetMoveType()

override event EntityAI::GetMoveType ( )
protected

Definition at line 103 of file transport.c.

◆ GetOnItemAddedToHands()

ScriptInvoker EntityAI::GetOnItemAddedToHands ( )
protected

Definition at line 89 of file man.c.

◆ GetOnItemRemovedFromHands()

ScriptInvoker EntityAI::GetOnItemRemovedFromHands ( )
protected

Definition at line 98 of file man.c.

◆ GetOwnerStateType()

override event EntityAI::GetOwnerStateType ( )
protected

Definition at line 97 of file transport.c.

◆ GetRefillPointPosWS()

vector EntityAI::GetRefillPointPosWS ( )
protected

Definition at line 323 of file transport.c.

◆ GetRuinedMeleeAmmoType()

string EntityAI::GetRuinedMeleeAmmoType ( )
protected

returns ammo (projectile) used in melee if the item is destroyed. Override higher for specific use

Definition at line 184 of file inventoryitem.c.

◆ GetSeatAnimationType()

int EntityAI::GetSeatAnimationType ( int posIdx)
protected

Definition at line 475 of file transport.c.

◆ GetSeatIndexFromDoor()

int EntityAI::GetSeatIndexFromDoor ( string pDoorSelection)
protected

Definition at line 529 of file transport.c.

◆ GetTransportCameraDistance()

float EntityAI::GetTransportCameraDistance ( )
protected

Definition at line 452 of file transport.c.

◆ GetTransportCameraOffset()

vector EntityAI::GetTransportCameraOffset ( )
protected

Definition at line 460 of file transport.c.

◆ GetVehicleType()

string EntityAI::GetVehicleType ( )
protected

Definition at line 308 of file transport.c.

◆ HasEngineZoneReceivedHit()

bool EntityAI::HasEngineZoneReceivedHit ( )
protected

Definition at line 585 of file transport.c.

◆ InitImpactSoundData()

void EntityAI::InitImpactSoundData ( )
protected

Definition at line 114 of file inventoryitem.c.

◆ IsActionFlipped()

bool EntityAI::IsActionFlipped ( Man player)
protected

Don't override, may change to native for caching 'DetectFlipped' in the future based on active-ness (i.e. only updated when vehicle changes active state).

Definition at line 433 of file transport.c.

◆ IsAnyCrewPresent()

bool EntityAI::IsAnyCrewPresent ( )
protected

Definition at line 441 of file transport.c.

◆ IsAreaAtDoorFree() [1/2]

bool EntityAI::IsAreaAtDoorFree ( int currentSeat,
float maxAllowedObjHeight,
inout vector extents,
out vector transform[4] )
protected

Definition at line 634 of file transport.c.

◆ IsAreaAtDoorFree() [2/2]

bool EntityAI::IsAreaAtDoorFree ( int currentSeat,
float maxAllowedObjHeight = 0.5,
float horizontalExtents = 0.5,
float playerHeight = 1.7 )
protected

Definition at line 679 of file transport.c.

◆ IsFlipped()

bool EntityAI::IsFlipped ( )
protected

Don't override, may change to native for caching 'DetectFlipped' in the future based on active-ness (i.e. only updated when vehicle changes active state).

Definition at line 424 of file transport.c.

◆ IsHealthVisible()

override bool EntityAI::IsHealthVisible ( )
protected

Definition at line 283 of file transport.c.

◆ IsIgnoredByConstruction()

override bool EntityAI::IsIgnoredByConstruction ( )
protected

Definition at line 278 of file transport.c.

◆ IsIgnoredObject()

bool EntityAI::IsIgnoredObject ( Object o)
protected

If the player can't interact (hint: collide) with the object, then it is ignored

Ignore any player that is currently in this vehicle

Definition at line 550 of file transport.c.

◆ IsInTransport()

bool EntityAI::IsInTransport ( )
protected

returns true if man is in transport, false otherwise

Definition at line 965 of file man.c.

◆ IsInventorySoftLocked()

bool EntityAI::IsInventorySoftLocked ( )
protected

Definition at line 957 of file man.c.

◆ IsTransport()

override bool EntityAI::IsTransport ( )
protected

Definition at line 273 of file transport.c.

◆ IsVitalSparkPlug()

bool EntityAI::IsVitalSparkPlug ( )
protected

Definition at line 303 of file transport.c.

◆ JunctureDeleteItem()

void EntityAI::JunctureDeleteItem ( EntityAI item)
protected

Definition at line 878 of file man.c.

◆ JunctureDropEntity()

bool EntityAI::JunctureDropEntity ( notnull EntityAI item)
protected

drop juncture

Definition at line 121 of file man.c.

◆ JunctureForceSwapEntities()

bool EntityAI::JunctureForceSwapEntities ( notnull EntityAI item1,
notnull EntityAI item2,
notnull InventoryLocation item2_dst )
protected

ForceSwap juncture.

Definition at line 573 of file man.c.

◆ JunctureSwapEntities()

bool EntityAI::JunctureSwapEntities ( notnull EntityAI item1,
notnull EntityAI item2 )
protected

swap juncture

Definition at line 523 of file man.c.

◆ JunctureTakeEntityAsAttachment()

bool EntityAI::JunctureTakeEntityAsAttachment ( notnull EntityAI item)
protected

as att juncture

Definition at line 445 of file man.c.

◆ JunctureTakeEntityAsAttachmentEx()

bool EntityAI::JunctureTakeEntityAsAttachmentEx ( notnull EntityAI item,
int slot )
protected

as att ex juncture

Definition at line 484 of file man.c.

◆ JunctureTakeEntityToCargo()

bool EntityAI::JunctureTakeEntityToCargo ( notnull EntityAI item)
protected

to cgo juncture

Definition at line 406 of file man.c.

◆ JunctureTakeEntityToHands()

void EntityAI::JunctureTakeEntityToHands ( notnull EntityAI item)
protected

hand juncture

Definition at line 166 of file man.c.

◆ JunctureTakeEntityToInventory()

bool EntityAI::JunctureTakeEntityToInventory ( FindInventoryLocationType flags,
notnull EntityAI item )
protected

to inv juncture

Definition at line 367 of file man.c.

◆ JunctureTakeEntityToTargetAttachment()

bool EntityAI::JunctureTakeEntityToTargetAttachment ( notnull EntityAI target,
notnull EntityAI item )
protected

to target att juncture

Definition at line 798 of file man.c.

◆ JunctureTakeEntityToTargetAttachmentEx()

bool EntityAI::JunctureTakeEntityToTargetAttachmentEx ( notnull EntityAI target,
notnull EntityAI item,
int slot )
protected

to target att ex juncture

Definition at line 759 of file man.c.

◆ JunctureTakeEntityToTargetCargo()

bool EntityAI::JunctureTakeEntityToTargetCargo ( notnull EntityAI target,
notnull EntityAI item )
protected

to target cgo juncture

Definition at line 716 of file man.c.

◆ JunctureTakeEntityToTargetCargoEx()

bool EntityAI::JunctureTakeEntityToTargetCargoEx ( notnull CargoBase cargo,
notnull EntityAI item,
int row,
int col )
protected

to target cgo ex juncture

Definition at line 677 of file man.c.

◆ JunctureTakeEntityToTargetInventory()

bool EntityAI::JunctureTakeEntityToTargetInventory ( notnull EntityAI target,
FindInventoryLocationType flags,
notnull EntityAI item )
protected

to target inv juncture

Definition at line 620 of file man.c.

◆ JunctureTakeToDst()

bool EntityAI::JunctureTakeToDst ( notnull InventoryLocation src,
notnull InventoryLocation dst )
protected

to dst juncture

Definition at line 839 of file man.c.

◆ LightIsOn()

proto native bool EntityAI::LightIsOn ( )
protected

Returns true when lights are on, false otherwise.

◆ LightOff()

proto native void EntityAI::LightOff ( )
protected

Signals for LightIsOn to return false.

◆ LightOn()

proto native void EntityAI::LightOn ( )
protected

Signals for LightIsOn to return true.

◆ LightToggle()

proto native void EntityAI::LightToggle ( )
protected

Calls LightOn/LightOff depending on current light state.

◆ LocalDestroyEntityInHands()

void EntityAI::LocalDestroyEntityInHands ( )
protected

Definition at line 223 of file man.c.

◆ LocalDropEntity()

override bool EntityAI::LocalDropEntity ( notnull EntityAI item)
protected

Definition at line 140 of file man.c.

◆ LocalForceSwapEntities()

bool EntityAI::LocalForceSwapEntities ( notnull EntityAI item1,
notnull EntityAI item2,
notnull InventoryLocation item2_dst )
protected

Definition at line 596 of file man.c.

◆ LocalReplaceItemElsewhereWithNewInHands()

bool EntityAI::LocalReplaceItemElsewhereWithNewInHands ( ReplaceItemWithNewLambdaBase lambda)
protected

Definition at line 315 of file man.c.

◆ LocalReplaceItemInHandsWithNew()

bool EntityAI::LocalReplaceItemInHandsWithNew ( ReplaceItemWithNewLambdaBase lambda)
protected

Definition at line 335 of file man.c.

◆ LocalReplaceItemInHandsWithNewElsewhere()

bool EntityAI::LocalReplaceItemInHandsWithNewElsewhere ( ReplaceItemWithNewLambdaBase lambda)
protected

Definition at line 355 of file man.c.

◆ LocalReplaceItemWithNew()

bool EntityAI::LocalReplaceItemWithNew ( ReplaceItemWithNewLambdaBase lambda)
protected

Definition at line 295 of file man.c.

◆ LocalSwapEntities()

bool EntityAI::LocalSwapEntities ( notnull EntityAI item1,
notnull EntityAI item2 )
protected

Definition at line 546 of file man.c.

◆ LocalTakeEntityAsAttachment()

override bool EntityAI::LocalTakeEntityAsAttachment ( notnull EntityAI item)
protected

Definition at line 464 of file man.c.

◆ LocalTakeEntityAsAttachmentEx()

override bool EntityAI::LocalTakeEntityAsAttachmentEx ( notnull EntityAI item,
int slot )
protected

Definition at line 503 of file man.c.

◆ LocalTakeEntityToCargo()

override bool EntityAI::LocalTakeEntityToCargo ( notnull EntityAI item)
protected

Definition at line 425 of file man.c.

◆ LocalTakeEntityToHands()

void EntityAI::LocalTakeEntityToHands ( EntityAI item)
protected

Definition at line 185 of file man.c.

◆ LocalTakeEntityToInventory()

override bool EntityAI::LocalTakeEntityToInventory ( FindInventoryLocationType flags,
notnull EntityAI item )
protected

Definition at line 386 of file man.c.

◆ LocalTakeEntityToTargetAttachment()

override bool EntityAI::LocalTakeEntityToTargetAttachment ( notnull EntityAI target,
notnull EntityAI item )
protected

Definition at line 817 of file man.c.

◆ LocalTakeEntityToTargetAttachmentEx()

override bool EntityAI::LocalTakeEntityToTargetAttachmentEx ( notnull EntityAI target,
notnull EntityAI item,
int slot )
protected

Definition at line 778 of file man.c.

◆ LocalTakeEntityToTargetCargo()

override bool EntityAI::LocalTakeEntityToTargetCargo ( notnull EntityAI target,
notnull EntityAI item )
protected

Definition at line 735 of file man.c.

◆ LocalTakeEntityToTargetCargoEx()

override bool EntityAI::LocalTakeEntityToTargetCargoEx ( notnull CargoBase cargo,
notnull EntityAI item,
int row,
int col )
protected

Definition at line 696 of file man.c.

◆ LocalTakeEntityToTargetInventory()

override bool EntityAI::LocalTakeEntityToTargetInventory ( notnull EntityAI target,
FindInventoryLocationType flags,
notnull EntityAI item )
protected

Definition at line 662 of file man.c.

◆ LocalTakeToDst()

override bool EntityAI::LocalTakeToDst ( notnull InventoryLocation src,
notnull InventoryLocation dst )
protected

Definition at line 858 of file man.c.

◆ MarkCrewMemberDead()

void EntityAI::MarkCrewMemberDead ( int crewMemberIndex)
protected

◆ MarkCrewMemberUnconscious()

void EntityAI::MarkCrewMemberUnconscious ( int crewMemberIndex)
protected

◆ NeedInventoryJunctureFromServer()

bool EntityAI::NeedInventoryJunctureFromServer ( notnull EntityAI item,
EntityAI currParent,
EntityAI newParent )
protected

Definition at line 163 of file man.c.

◆ OnAction()

override bool EntityAI::OnAction ( int action_id,
Man player,
ParamsReadContext ctx )
protected

Definition at line 601 of file transport.c.

◆ OnBeforeLightOn()

bool EntityAI::OnBeforeLightOn ( )
protected

Is called by native every time the game wants to turn on the light

Returns
true if the light can turn on, false otherwise.

Definition at line 180 of file transport.c.

◆ OnContact()

void EntityAI::OnContact ( string zoneName,
vector localPos,
IEntity other,
Contact data )
protected

Is called every time when vehicle collides with other object.

Parameters
[in]zoneNameconfigured vehicle's zone that was hit
[in]localPosposition where the vehicle was hit in vehicle's space
[in]otherobject with which the vehicle is colliding
[in]datacontact properties

Definition at line 252 of file transport.c.

◆ OnDrawOptics2D()

array< InventoryItem > EntityAI::OnDrawOptics2D ( )
protected

Called when 2D optics are about to be drawn.

Returns
Collection of optics to be drawn. Draws the provided optics when of ItemOptics type. Draws optic of current muzzle when of Weapon_Base type.

Definition at line 982 of file man.c.

◆ OnDriverEnter()

void EntityAI::OnDriverEnter ( Human player)
protected

Is called when the crew member enters the driver seat

Parameters
[in]playerThe player that entered the driver seat

Definition at line 155 of file transport.c.

◆ OnDriverExit()

void EntityAI::OnDriverExit ( Human player)
protected

Is called when the crew member leaves the driver seat

Parameters
[in]playerThe player that left the driver seat

Definition at line 161 of file transport.c.

◆ OnGameplayDataHandlerSync()

void EntityAI::OnGameplayDataHandlerSync ( )
protected

◆ OnInput()

void EntityAI::OnInput ( float dt)
protected

Called after every input simulation step.

Note that the player character and other systems can always change the internal state. It is highly recommended to store state of custom inputs elsewhere and call Setters here.

Parameters
[in]dtdelta time since last called in seconds

Definition at line 262 of file transport.c.

◆ OnItemInHandsChanged()

void EntityAI::OnItemInHandsChanged ( )
protected

Definition at line 161 of file man.c.

◆ OnUpdate()

void EntityAI::OnUpdate ( float dt)
protected

Is called every game frame on client, fixed rate on server

Parameters
[in]dtdelta time since last called in seconds

Definition at line 268 of file transport.c.

◆ OnUpdateLight()

void EntityAI::OnUpdateLight ( )
protected

Is called by native every time the game wants to update the light

Definition at line 189 of file transport.c.

◆ PhysicalPredictiveDropItem()

bool EntityAI::PhysicalPredictiveDropItem ( EntityAI entity,
bool heavy_item_only = true )
protected

◆ PlaySound()

AbstractWave EntityAI::PlaySound ( SoundObject so,
SoundObjectBuilder sob )
protected

Definition at line 126 of file inventoryitem.c.

◆ PlaySoundByAnimEvent()

void EntityAI::PlaySoundByAnimEvent ( EAnimSoundEventID id)
protected

Definition at line 138 of file inventoryitem.c.

◆ PredictiveDropEntity()

override bool EntityAI::PredictiveDropEntity ( notnull EntityAI item)
protected

Definition at line 126 of file man.c.

◆ PredictiveForceSwapEntities()

bool EntityAI::PredictiveForceSwapEntities ( notnull EntityAI item1,
notnull EntityAI item2,
notnull InventoryLocation item2_dst )
protected

Definition at line 578 of file man.c.

◆ PredictiveMoveItemFromHandsToInventory()

void EntityAI::PredictiveMoveItemFromHandsToInventory ( )
protected

ToDo: Old system method. Might should be adjusted to new system at some point.

returns item to previous location, if available

Check if old strored location is somewhere on this player

This should not happen after clearing inventory reservation but just in case handle also getting a new location if the old location is obscured by an item.

Definition at line 231 of file man.c.

◆ PredictiveSwapEntities()

bool EntityAI::PredictiveSwapEntities ( notnull EntityAI item1,
notnull EntityAI item2 )
protected

Definition at line 528 of file man.c.

◆ PredictiveTakeEntityAsAttachment()

override bool EntityAI::PredictiveTakeEntityAsAttachment ( notnull EntityAI item)
protected

Definition at line 450 of file man.c.

◆ PredictiveTakeEntityAsAttachmentEx()

override bool EntityAI::PredictiveTakeEntityAsAttachmentEx ( notnull EntityAI item,
int slot )
protected

Definition at line 489 of file man.c.

◆ PredictiveTakeEntityToCargo()

override bool EntityAI::PredictiveTakeEntityToCargo ( notnull EntityAI item)
protected

Definition at line 411 of file man.c.

◆ PredictiveTakeEntityToHands()

void EntityAI::PredictiveTakeEntityToHands ( EntityAI item)
protected

Definition at line 171 of file man.c.

◆ PredictiveTakeEntityToInventory()

override bool EntityAI::PredictiveTakeEntityToInventory ( FindInventoryLocationType flags,
notnull EntityAI item )
protected

Definition at line 372 of file man.c.

◆ PredictiveTakeEntityToTargetAttachment()

override bool EntityAI::PredictiveTakeEntityToTargetAttachment ( notnull EntityAI target,
notnull EntityAI item )
protected

Definition at line 803 of file man.c.

◆ PredictiveTakeEntityToTargetAttachmentEx()

override bool EntityAI::PredictiveTakeEntityToTargetAttachmentEx ( notnull EntityAI target,
notnull EntityAI item,
int slot )
protected

Definition at line 764 of file man.c.

◆ PredictiveTakeEntityToTargetCargo()

override bool EntityAI::PredictiveTakeEntityToTargetCargo ( notnull EntityAI target,
notnull EntityAI item )
protected

Definition at line 721 of file man.c.

◆ PredictiveTakeEntityToTargetCargoEx()

override bool EntityAI::PredictiveTakeEntityToTargetCargoEx ( notnull CargoBase cargo,
notnull EntityAI item,
int row,
int col )
protected

Definition at line 682 of file man.c.

◆ PredictiveTakeEntityToTargetInventory()

override bool EntityAI::PredictiveTakeEntityToTargetInventory ( notnull EntityAI target,
FindInventoryLocationType flags,
notnull EntityAI item )
protected

Definition at line 625 of file man.c.

◆ PredictiveTakeOrSwapAttachment()

bool EntityAI::PredictiveTakeOrSwapAttachment ( notnull EntityAI item)
protected

Definition at line 639 of file man.c.

◆ PredictiveTakeToDst()

override bool EntityAI::PredictiveTakeToDst ( notnull InventoryLocation src,
notnull InventoryLocation dst )
protected

Definition at line 844 of file man.c.

◆ ProcessImpactSound()

float EntityAI::ProcessImpactSound ( IEntity other,
Contact extra,
float weight,
out int surfaceHash )
protected

Definition at line 190 of file inventoryitem.c.

◆ ProcessImpactSoundEx()

float EntityAI::ProcessImpactSoundEx ( IEntity other,
Contact extra,
float weight,
out int surfaceHash,
out int liquidType )
protected

Definition at line 198 of file inventoryitem.c.

◆ Random()

proto native int EntityAI::Random ( )
protected

-------------— deterministic random numbers ---------------------—

Random number in range of <0,0xffffffff> - !!! use this only during deterministic simulation (EOnSimulate/EOnPostSimulate)

Returns
int value in range of <0,0xffffffff>

◆ Random01()

proto native float EntityAI::Random01 ( )
protected

Random number in range of <0,1> - !!! use this only during deterministic simulation (EOnSimulate/EOnPostSimulate).

Returns
float value in range of <0,1>

◆ RandomFloat()

float EntityAI::RandomFloat ( float min,
float max )
protected

Random number in range of <min,max> - !!! use this only during deterministic simulation (EOnSimulate/EOnPostSimulate).

Returns
float value in range of <min,max>

Definition at line 239 of file transport.c.

◆ RandomRange()

proto native float EntityAI::RandomRange ( int pRange)
protected

Random number in range of <0,pRange-1> - !!! use this only during deterministic simulation (EOnSimulate/EOnPostSimulate).

Parameters
pRangeupper bounds of random number
Returns
int value in range of <0,pRange-1>

◆ ReplaceItemElsewhereWithNewInHandsImpl()

bool EntityAI::ReplaceItemElsewhereWithNewInHandsImpl ( InventoryMode mode,
ReplaceItemWithNewLambdaBase lambda )
protected

!hand replace -> hand

Definition at line 307 of file man.c.

◆ ReplaceItemInHandsWithNewElsewhereImpl()

bool EntityAI::ReplaceItemInHandsWithNewElsewhereImpl ( InventoryMode mode,
ReplaceItemWithNewLambdaBase lambda )
protected

hand replace2

Definition at line 347 of file man.c.

◆ ReplaceItemInHandsWithNewImpl()

bool EntityAI::ReplaceItemInHandsWithNewImpl ( InventoryMode mode,
ReplaceItemWithNewLambdaBase lambda )
protected

hand replace

Definition at line 327 of file man.c.

◆ ReplaceItemWithNewImpl()

bool EntityAI::ReplaceItemWithNewImpl ( InventoryMode mode,
ReplaceItemWithNewLambdaBase lambda )
protected

!hand -> !hand replace

Definition at line 287 of file man.c.

◆ ServerDropEntity()

override bool EntityAI::ServerDropEntity ( notnull EntityAI item)
protected

Definition at line 145 of file man.c.

◆ ServerForceSwapEntities()

bool EntityAI::ServerForceSwapEntities ( notnull EntityAI item1,
notnull EntityAI item2,
notnull InventoryLocation item2_dst )
protected

Definition at line 601 of file man.c.

◆ ServerReplaceItemElsewhereWithNewInHands()

bool EntityAI::ServerReplaceItemElsewhereWithNewInHands ( ReplaceItemWithNewLambdaBase lambda)
protected

Definition at line 320 of file man.c.

◆ ServerReplaceItemInHandsWithNew()

bool EntityAI::ServerReplaceItemInHandsWithNew ( ReplaceItemWithNewLambdaBase lambda)
protected

Definition at line 340 of file man.c.

◆ ServerReplaceItemInHandsWithNewElsewhere()

bool EntityAI::ServerReplaceItemInHandsWithNewElsewhere ( ReplaceItemWithNewLambdaBase lambda)
protected

Definition at line 360 of file man.c.

◆ ServerReplaceItemWithNew()

bool EntityAI::ServerReplaceItemWithNew ( ReplaceItemWithNewLambdaBase lambda)
protected

Definition at line 300 of file man.c.

◆ ServerSwapEntities()

bool EntityAI::ServerSwapEntities ( notnull EntityAI item1,
notnull EntityAI item2 )
protected

Definition at line 551 of file man.c.

◆ ServerTakeEntityAsAttachment()

override bool EntityAI::ServerTakeEntityAsAttachment ( notnull EntityAI item)
protected

Definition at line 469 of file man.c.

◆ ServerTakeEntityAsAttachmentEx()

override bool EntityAI::ServerTakeEntityAsAttachmentEx ( notnull EntityAI item,
int slot )
protected

Definition at line 508 of file man.c.

◆ ServerTakeEntityToCargo()

override bool EntityAI::ServerTakeEntityToCargo ( notnull EntityAI item)
protected

Definition at line 430 of file man.c.

◆ ServerTakeEntityToHands()

void EntityAI::ServerTakeEntityToHands ( EntityAI item)
protected

Definition at line 190 of file man.c.

◆ ServerTakeEntityToInventory()

override bool EntityAI::ServerTakeEntityToInventory ( FindInventoryLocationType flags,
notnull EntityAI item )
protected

Definition at line 391 of file man.c.

◆ ServerTakeEntityToTargetAttachment()

override bool EntityAI::ServerTakeEntityToTargetAttachment ( notnull EntityAI target,
notnull EntityAI item )
protected

Definition at line 822 of file man.c.

◆ ServerTakeEntityToTargetAttachmentEx()

override bool EntityAI::ServerTakeEntityToTargetAttachmentEx ( notnull EntityAI target,
notnull EntityAI item,
int slot )
protected

Definition at line 783 of file man.c.

◆ ServerTakeEntityToTargetCargo()

override bool EntityAI::ServerTakeEntityToTargetCargo ( notnull EntityAI target,
notnull EntityAI item )
protected

Definition at line 740 of file man.c.

◆ ServerTakeEntityToTargetCargoEx()

override bool EntityAI::ServerTakeEntityToTargetCargoEx ( notnull CargoBase cargo,
notnull EntityAI item,
int row,
int col )
protected

Definition at line 701 of file man.c.

◆ ServerTakeToDst()

override bool EntityAI::ServerTakeToDst ( notnull InventoryLocation src,
notnull InventoryLocation dst )
protected

Definition at line 863 of file man.c.

◆ SetEngineZoneReceivedHit()

void EntityAI::SetEngineZoneReceivedHit ( bool pState)
protected

Definition at line 579 of file transport.c.

◆ SetInventorySoftLock()

void EntityAI::SetInventorySoftLock ( bool status)
protected

◆ SetProcessUIWarning()

void EntityAI::SetProcessUIWarning ( bool state)
protected

◆ ShowZonesHealth()

override bool EntityAI::ShowZonesHealth ( )
protected

Definition at line 288 of file transport.c.

◆ StatGet()

proto native float EntityAI::StatGet ( string name)
protected

Gets counter value of the specified stat type.

Parameters
[in]nameThe name of the stat type.

◆ StatGetAsTime()

proto void EntityAI::StatGetAsTime ( string name,
out string value )
protected

Gets counter value as formatted time string of the specified stat type.

Parameters
[in]nameThe name of the stat type.
[out]valueA formatted string containing stat value.

◆ StatGetCounter()

proto void EntityAI::StatGetCounter ( string name,
out string value )
protected

Gets counter value as string of the specified stat type.

Parameters
[in]nameThe name of the stat type.
[out]valueA formatted string containing stat value.

◆ StatInvokeUpdate()

proto native void EntityAI::StatInvokeUpdate ( )
protected

Invokes read stats from server to client.

Note
Call this on client when you need update stats.

◆ StatRegister()

proto native bool EntityAI::StatRegister ( string name)
protected

Stats Registers new stat type for this player.

Parameters
[in]nameThe name of the stat type.

◆ StatSyncToClient()

proto native void EntityAI::StatSyncToClient ( )
protected

Invokes save stats from server to client.

Note
Call this on server when you need update stats.

◆ StatUpdate()

proto native void EntityAI::StatUpdate ( string name,
float value )
protected

Updates stat counter with given value.

Parameters
[in]nameThe name of the stat type.
[in]valueThe specified value.

◆ StatUpdateByGivenPos()

proto native void EntityAI::StatUpdateByGivenPos ( string name,
vector pos )
protected

Updates stat counter by given position.

Parameters
[in]nameThe name of the stat type.
[in]posThe specified position.

◆ StatUpdateByPosition()

proto native void EntityAI::StatUpdateByPosition ( string name)
protected

Updates stat counter by player's actual position.

Use this to measure player's travelling distance.

Parameters
[in]nameThe name of the stat type.

◆ StatUpdateByTime()

proto native void EntityAI::StatUpdateByTime ( string name)
protected

Updates stat counter by time.

Use this to measure play time.

Parameters
[in]nameThe name of the stat type.

◆ StopDeathDarkeningEffect()

void EntityAI::StopDeathDarkeningEffect ( )
protected

◆ SwapEntitiesImpl()

bool EntityAI::SwapEntitiesImpl ( InventoryMode mode,
notnull EntityAI item1,
notnull EntityAI item2 )
protected

Definition at line 556 of file man.c.

◆ Synchronize()

proto native void EntityAI::Synchronize ( )
protected

Synchronizes car's state in case the simulation is not running.

◆ TakeEntityAsAttachmentExImpl()

bool EntityAI::TakeEntityAsAttachmentExImpl ( InventoryMode mode,
notnull EntityAI item,
int slot )
protected

Definition at line 513 of file man.c.

◆ TakeEntityAsAttachmentImpl()

bool EntityAI::TakeEntityAsAttachmentImpl ( InventoryMode mode,
notnull EntityAI item )
protected

Definition at line 474 of file man.c.

◆ TakeEntityToCargoImpl()

bool EntityAI::TakeEntityToCargoImpl ( InventoryMode mode,
notnull EntityAI item )
protected

Definition at line 435 of file man.c.

◆ TakeEntityToHandsImpl()

void EntityAI::TakeEntityToHandsImpl ( InventoryMode mode,
EntityAI item )
protected

Definition at line 195 of file man.c.

◆ TakeEntityToInventoryImpl()

bool EntityAI::TakeEntityToInventoryImpl ( InventoryMode mode,
FindInventoryLocationType flags,
notnull EntityAI item )
protected

Definition at line 396 of file man.c.

◆ TakeEntityToTargetAttachmentExImpl()

bool EntityAI::TakeEntityToTargetAttachmentExImpl ( InventoryMode mode,
notnull EntityAI target,
notnull EntityAI item,
int slot )
protected

Definition at line 788 of file man.c.

◆ TakeEntityToTargetAttachmentImpl()

bool EntityAI::TakeEntityToTargetAttachmentImpl ( InventoryMode mode,
notnull EntityAI target,
notnull EntityAI item )
protected

Definition at line 827 of file man.c.

◆ TakeEntityToTargetCargoExImpl()

bool EntityAI::TakeEntityToTargetCargoExImpl ( InventoryMode mode,
notnull CargoBase cargo,
notnull EntityAI item,
int row,
int col )
protected

Definition at line 706 of file man.c.

◆ TakeEntityToTargetCargoImpl()

bool EntityAI::TakeEntityToTargetCargoImpl ( InventoryMode mode,
notnull EntityAI target,
notnull EntityAI item )
protected

Definition at line 748 of file man.c.

◆ TakeEntityToTargetInventoryImpl()

bool EntityAI::TakeEntityToTargetInventoryImpl ( InventoryMode mode,
notnull EntityAI target,
FindInventoryLocationType flags,
notnull EntityAI item )
protected

Definition at line 667 of file man.c.

◆ TakeToDstImpl()

bool EntityAI::TakeToDstImpl ( InventoryMode mode,
notnull InventoryLocation src,
notnull InventoryLocation dst )
protected

Definition at line 868 of file man.c.

◆ Transport()

void EntityAI::Transport ( )
protected

Definition at line 71 of file transport.c.

◆ UpdateInventoryMenu()

void EntityAI::UpdateInventoryMenu ( )
protected

◆ UpdateLights()

void EntityAI::UpdateLights ( int new_gear = -1)
protected

Definition at line 271 of file transport.c.

Member Data Documentation

◆ m_CachedEquipmentStorage

ref CachedEquipmentStorageBase EntityAI::m_CachedEquipmentStorage
protected

Definition at line 87 of file man.c.

◆ m_DeadCrewMemberIndices

ref set<int> EntityAI::m_DeadCrewMemberIndices
protected

Definition at line 69 of file transport.c.

◆ m_EngineZoneReceivedHit

bool EntityAI::m_EngineZoneReceivedHit
protected

Definition at line 65 of file transport.c.

◆ m_fuelPos

vector EntityAI::m_fuelPos
protected

Definition at line 66 of file transport.c.

◆ m_OnItemAddedToHands

ref ScriptInvoker EntityAI::m_OnItemAddedToHands
protected

Definition at line 83 of file man.c.

◆ m_OnItemRemovedFromHands

ref ScriptInvoker EntityAI::m_OnItemRemovedFromHands
protected

Definition at line 85 of file man.c.

◆ m_UnconsciousCrewMemberIndices

ref set<int> EntityAI::m_UnconsciousCrewMemberIndices
protected

Definition at line 68 of file transport.c.


The documentation for this class was generated from the following files: