Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
EntityAI Class Reference

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 ()
 
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 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)
 
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
 
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

Base native class of all vehicles in game.

Definition at line 5 of file building.c.

Member Function Documentation

◆ CanBeSkinned()

override bool EntityAI::CanBeSkinned ( )
protected

Definition at line 867 of file man.c.

◆ CanDropEntity()

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

Definition at line 151 of file man.c.

◆ CanPlaceItem()

bool EntityAI::CanPlaceItem ( EntityAI item)
protected

◆ CanReachDoorsFromSeat()

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

Definition at line 461 of file transport.c.

◆ CanReachSeatFromDoors()

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

Definition at line 452 of file transport.c.

◆ CanReachSeatFromSeat()

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

Definition at line 443 of file transport.c.

◆ CrewCanGetThrough()

bool EntityAI::CrewCanGetThrough ( int posIdx)
protected

Definition at line 434 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 630 of file transport.c.

◆ DetectFlipped()

bool EntityAI::DetectFlipped ( VehicleFlippedContext ctx)
protected

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

Definition at line 359 of file transport.c.

◆ DetectFlippedUsingSurface()

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

Definition at line 283 of file transport.c.

◆ DisableVicinityIcon()

override bool EntityAI::DisableVicinityIcon ( )
protected

Definition at line 872 of file man.c.

◆ DropEntityImpl()

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

Definition at line 142 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 79 of file transport.c.

◆ EEItemIntoHands()

void EntityAI::EEItemIntoHands ( EntityAI item)
protected

Definition at line 98 of file man.c.

◆ EEItemOutOfHands()

void EntityAI::EEItemOutOfHands ( EntityAI item)
protected

Definition at line 105 of file man.c.

◆ ForceSwapEntitiesImpl()

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

Definition at line 592 of file man.c.

◆ Get3rdPersonCameraType()

int EntityAI::Get3rdPersonCameraType ( )
protected

Definition at line 424 of file transport.c.

◆ GetActionCompNameFuel()

string EntityAI::GetActionCompNameFuel ( )
protected

Definition at line 254 of file transport.c.

◆ GetActionDistanceFuel()

float EntityAI::GetActionDistanceFuel ( )
protected

Definition at line 259 of file transport.c.

◆ GetAnimInstance()

int EntityAI::GetAnimInstance ( )
protected

Definition at line 406 of file transport.c.

◆ GetDebugActions()

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

Definition at line 531 of file transport.c.

◆ GetFlipContext()

VehicleFlippedContext EntityAI::GetFlipContext ( )
protected

Definition at line 269 of file transport.c.

◆ GetHideIconMask()

override int EntityAI::GetHideIconMask ( )
protected

Definition at line 234 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 86 of file transport.c.

◆ GetMomentum()

float EntityAI::GetMomentum ( )
protected

Definition at line 239 of file transport.c.

◆ GetMoveType()

override event EntityAI::GetMoveType ( )
protected

Definition at line 98 of file transport.c.

◆ GetOnItemAddedToHands()

ScriptInvoker EntityAI::GetOnItemAddedToHands ( )
protected

Definition at line 81 of file man.c.

◆ GetOnItemRemovedFromHands()

ScriptInvoker EntityAI::GetOnItemRemovedFromHands ( )
protected

Definition at line 90 of file man.c.

◆ GetOwnerStateType()

override event EntityAI::GetOwnerStateType ( )
protected

Definition at line 92 of file transport.c.

◆ GetRefillPointPosWS()

vector EntityAI::GetRefillPointPosWS ( )
protected

Definition at line 264 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 416 of file transport.c.

◆ GetSeatIndexFromDoor()

int EntityAI::GetSeatIndexFromDoor ( string pDoorSelection)
protected

Definition at line 470 of file transport.c.

◆ GetTransportCameraDistance()

float EntityAI::GetTransportCameraDistance ( )
protected

Definition at line 393 of file transport.c.

◆ GetTransportCameraOffset()

vector EntityAI::GetTransportCameraOffset ( )
protected

Definition at line 401 of file transport.c.

◆ GetVehicleType()

string EntityAI::GetVehicleType ( )
protected

Definition at line 249 of file transport.c.

◆ HasEngineZoneReceivedHit()

bool EntityAI::HasEngineZoneReceivedHit ( )
protected

Definition at line 526 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 374 of file transport.c.

◆ IsAnyCrewPresent()

bool EntityAI::IsAnyCrewPresent ( )
protected

Definition at line 382 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 573 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 618 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 365 of file transport.c.

◆ IsHealthVisible()

override bool EntityAI::IsHealthVisible ( )
protected

Definition at line 224 of file transport.c.

◆ IsIgnoredByConstruction()

override bool EntityAI::IsIgnoredByConstruction ( )
protected

Definition at line 219 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 491 of file transport.c.

◆ IsInTransport()

bool EntityAI::IsInTransport ( )
protected

returns true if man is in transport, false otherwise

Definition at line 944 of file man.c.

◆ IsInventorySoftLocked()

bool EntityAI::IsInventorySoftLocked ( )
protected

Definition at line 936 of file man.c.

◆ IsTransport()

override bool EntityAI::IsTransport ( )
protected

Definition at line 214 of file transport.c.

◆ IsVitalSparkPlug()

bool EntityAI::IsVitalSparkPlug ( )
protected

Definition at line 244 of file transport.c.

◆ JunctureDeleteItem()

void EntityAI::JunctureDeleteItem ( EntityAI item)
protected

Definition at line 862 of file man.c.

◆ JunctureDropEntity()

bool EntityAI::JunctureDropEntity ( notnull EntityAI item)
protected

drop juncture

Definition at line 113 of file man.c.

◆ JunctureForceSwapEntities()

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

ForceSwap juncture.

Definition at line 561 of file man.c.

◆ JunctureSwapEntities()

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

swap juncture

Definition at line 513 of file man.c.

◆ JunctureTakeEntityAsAttachment()

bool EntityAI::JunctureTakeEntityAsAttachment ( notnull EntityAI item)
protected

as att juncture

Definition at line 435 of file man.c.

◆ JunctureTakeEntityAsAttachmentEx()

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

as att ex juncture

Definition at line 474 of file man.c.

◆ JunctureTakeEntityToCargo()

bool EntityAI::JunctureTakeEntityToCargo ( notnull EntityAI item)
protected

to cgo juncture

Definition at line 396 of file man.c.

◆ JunctureTakeEntityToHands()

void EntityAI::JunctureTakeEntityToHands ( notnull EntityAI item)
protected

hand juncture

Definition at line 158 of file man.c.

◆ JunctureTakeEntityToInventory()

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

to inv juncture

Definition at line 357 of file man.c.

◆ JunctureTakeEntityToTargetAttachment()

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

to target att juncture

Definition at line 782 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 743 of file man.c.

◆ JunctureTakeEntityToTargetCargo()

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

to target cgo juncture

Definition at line 700 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 661 of file man.c.

◆ JunctureTakeEntityToTargetInventory()

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

to target inv juncture

Definition at line 606 of file man.c.

◆ JunctureTakeToDst()

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

to dst juncture

Definition at line 823 of file man.c.

◆ LocalDestroyEntityInHands()

void EntityAI::LocalDestroyEntityInHands ( )
protected

Definition at line 215 of file man.c.

◆ LocalDropEntity()

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

Definition at line 132 of file man.c.

◆ LocalForceSwapEntities()

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

Definition at line 582 of file man.c.

◆ LocalReplaceItemElsewhereWithNewInHands()

bool EntityAI::LocalReplaceItemElsewhereWithNewInHands ( ReplaceItemWithNewLambdaBase lambda)
protected

Definition at line 305 of file man.c.

◆ LocalReplaceItemInHandsWithNew()

bool EntityAI::LocalReplaceItemInHandsWithNew ( ReplaceItemWithNewLambdaBase lambda)
protected

Definition at line 325 of file man.c.

◆ LocalReplaceItemInHandsWithNewElsewhere()

bool EntityAI::LocalReplaceItemInHandsWithNewElsewhere ( ReplaceItemWithNewLambdaBase lambda)
protected

Definition at line 345 of file man.c.

◆ LocalReplaceItemWithNew()

bool EntityAI::LocalReplaceItemWithNew ( ReplaceItemWithNewLambdaBase lambda)
protected

Definition at line 285 of file man.c.

◆ LocalSwapEntities()

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

Definition at line 534 of file man.c.

◆ LocalTakeEntityAsAttachment()

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

Definition at line 454 of file man.c.

◆ LocalTakeEntityAsAttachmentEx()

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

Definition at line 493 of file man.c.

◆ LocalTakeEntityToCargo()

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

Definition at line 415 of file man.c.

◆ LocalTakeEntityToHands()

void EntityAI::LocalTakeEntityToHands ( EntityAI item)
protected

Definition at line 177 of file man.c.

◆ LocalTakeEntityToInventory()

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

Definition at line 376 of file man.c.

◆ LocalTakeEntityToTargetAttachment()

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

Definition at line 801 of file man.c.

◆ LocalTakeEntityToTargetAttachmentEx()

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

Definition at line 762 of file man.c.

◆ LocalTakeEntityToTargetCargo()

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

Definition at line 719 of file man.c.

◆ LocalTakeEntityToTargetCargoEx()

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

Definition at line 680 of file man.c.

◆ LocalTakeEntityToTargetInventory()

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

Definition at line 646 of file man.c.

◆ LocalTakeToDst()

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

Definition at line 842 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 155 of file man.c.

◆ OnAction()

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

Definition at line 542 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 196 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 961 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 150 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 156 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 206 of file transport.c.

◆ OnItemInHandsChanged()

void EntityAI::OnItemInHandsChanged ( )
protected

Definition at line 153 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 212 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 118 of file man.c.

◆ PredictiveForceSwapEntities()

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

Definition at line 566 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 223 of file man.c.

◆ PredictiveSwapEntities()

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

Definition at line 518 of file man.c.

◆ PredictiveTakeEntityAsAttachment()

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

Definition at line 440 of file man.c.

◆ PredictiveTakeEntityAsAttachmentEx()

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

Definition at line 479 of file man.c.

◆ PredictiveTakeEntityToCargo()

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

Definition at line 401 of file man.c.

◆ PredictiveTakeEntityToHands()

void EntityAI::PredictiveTakeEntityToHands ( EntityAI item)
protected

Definition at line 163 of file man.c.

◆ PredictiveTakeEntityToInventory()

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

Definition at line 362 of file man.c.

◆ PredictiveTakeEntityToTargetAttachment()

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

Definition at line 787 of file man.c.

◆ PredictiveTakeEntityToTargetAttachmentEx()

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

Definition at line 748 of file man.c.

◆ PredictiveTakeEntityToTargetCargo()

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

Definition at line 705 of file man.c.

◆ PredictiveTakeEntityToTargetCargoEx()

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

Definition at line 666 of file man.c.

◆ PredictiveTakeEntityToTargetInventory()

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

Definition at line 611 of file man.c.

◆ PredictiveTakeOrSwapAttachment()

bool EntityAI::PredictiveTakeOrSwapAttachment ( notnull EntityAI item)
protected

Definition at line 625 of file man.c.

◆ PredictiveTakeToDst()

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

Definition at line 828 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 183 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 297 of file man.c.

◆ ReplaceItemInHandsWithNewElsewhereImpl()

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

hand replace2

Definition at line 337 of file man.c.

◆ ReplaceItemInHandsWithNewImpl()

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

hand replace

Definition at line 317 of file man.c.

◆ ReplaceItemWithNewImpl()

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

!hand -> !hand replace

Definition at line 277 of file man.c.

◆ ServerDropEntity()

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

Definition at line 137 of file man.c.

◆ ServerForceSwapEntities()

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

Definition at line 587 of file man.c.

◆ ServerReplaceItemElsewhereWithNewInHands()

bool EntityAI::ServerReplaceItemElsewhereWithNewInHands ( ReplaceItemWithNewLambdaBase lambda)
protected

Definition at line 310 of file man.c.

◆ ServerReplaceItemInHandsWithNew()

bool EntityAI::ServerReplaceItemInHandsWithNew ( ReplaceItemWithNewLambdaBase lambda)
protected

Definition at line 330 of file man.c.

◆ ServerReplaceItemInHandsWithNewElsewhere()

bool EntityAI::ServerReplaceItemInHandsWithNewElsewhere ( ReplaceItemWithNewLambdaBase lambda)
protected

Definition at line 350 of file man.c.

◆ ServerReplaceItemWithNew()

bool EntityAI::ServerReplaceItemWithNew ( ReplaceItemWithNewLambdaBase lambda)
protected

Definition at line 290 of file man.c.

◆ ServerSwapEntities()

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

Definition at line 539 of file man.c.

◆ ServerTakeEntityAsAttachment()

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

Definition at line 459 of file man.c.

◆ ServerTakeEntityAsAttachmentEx()

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

Definition at line 498 of file man.c.

◆ ServerTakeEntityToCargo()

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

Definition at line 420 of file man.c.

◆ ServerTakeEntityToHands()

void EntityAI::ServerTakeEntityToHands ( EntityAI item)
protected

Definition at line 182 of file man.c.

◆ ServerTakeEntityToInventory()

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

Definition at line 381 of file man.c.

◆ ServerTakeEntityToTargetAttachment()

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

Definition at line 806 of file man.c.

◆ ServerTakeEntityToTargetAttachmentEx()

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

Definition at line 767 of file man.c.

◆ ServerTakeEntityToTargetCargo()

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

Definition at line 724 of file man.c.

◆ ServerTakeEntityToTargetCargoEx()

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

Definition at line 685 of file man.c.

◆ ServerTakeToDst()

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

Definition at line 847 of file man.c.

◆ SetEngineZoneReceivedHit()

void EntityAI::SetEngineZoneReceivedHit ( bool pState)
protected

Definition at line 520 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 229 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 544 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 503 of file man.c.

◆ TakeEntityAsAttachmentImpl()

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

Definition at line 464 of file man.c.

◆ TakeEntityToCargoImpl()

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

Definition at line 425 of file man.c.

◆ TakeEntityToHandsImpl()

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

Definition at line 187 of file man.c.

◆ TakeEntityToInventoryImpl()

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

Definition at line 386 of file man.c.

◆ TakeEntityToTargetAttachmentExImpl()

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

Definition at line 772 of file man.c.

◆ TakeEntityToTargetAttachmentImpl()

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

Definition at line 811 of file man.c.

◆ TakeEntityToTargetCargoExImpl()

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

Definition at line 690 of file man.c.

◆ TakeEntityToTargetCargoImpl()

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

Definition at line 732 of file man.c.

◆ TakeEntityToTargetInventoryImpl()

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

Definition at line 651 of file man.c.

◆ TakeToDstImpl()

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

Definition at line 852 of file man.c.

◆ Transport()

void EntityAI::Transport ( )
protected

Definition at line 66 of file transport.c.

◆ UpdateInventoryMenu()

void EntityAI::UpdateInventoryMenu ( )
protected

Member Data Documentation

◆ m_DeadCrewMemberIndices

ref set<int> EntityAI::m_DeadCrewMemberIndices
protected

Definition at line 64 of file transport.c.

◆ m_EngineZoneReceivedHit

bool EntityAI::m_EngineZoneReceivedHit
protected

Definition at line 60 of file transport.c.

◆ m_fuelPos

vector EntityAI::m_fuelPos
protected

Definition at line 61 of file transport.c.

◆ m_OnItemAddedToHands

ref ScriptInvoker EntityAI::m_OnItemAddedToHands
protected

Definition at line 77 of file man.c.

◆ m_OnItemRemovedFromHands

ref ScriptInvoker EntityAI::m_OnItemRemovedFromHands
protected

Definition at line 79 of file man.c.

◆ m_UnconsciousCrewMemberIndices

ref set<int> EntityAI::m_UnconsciousCrewMemberIndices
protected

Definition at line 63 of file transport.c.


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