Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
InventoryItemSuper Class Reference
Inheritance diagram for InventoryItemSuper:
ItemOptics ACOGOptic ACOGOptic_6x AugOptic BUISOptic Binoculars FNP45_MRDSOptic GrozaOptic KashtanOptic KobraOptic LongrangeOptic M68Optic PistolOptic SSG82Optic SportingOptic StarlightOptic

Protected Member Functions

override bool DescriptionOverride (out string output)
override bool DisplayNameRuinAttach ()
override void EEHealthLevelChanged (int oldLevel, int newLevel, string zone)
bool GetMapStateAnimation ()
array< ref MapMarkerGetMarkerArray ()
override int GetMeleeTargetType ()
proto native float GetRadius ()
 Returns current wheel radius.
string GetRuinedReplacement ()
proto native float GetWidth ()
 Returns wheel width.
void InitMapState ()
void InsertMarker (vector pos, string text, int color, int idx)
void ItemMap ()
override bool NameOverride (out string output)
override void OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner)
override void OnRPC (PlayerIdentity sender, int rpc_type, ParamsReadContext ctx)
override bool OnStoreLoad (ParamsReadContext ctx, int version)
override void OnStoreSave (ParamsWriteContext ctx)
override void OnWasAttached (EntityAI parent, int slot_id)
override void OnWasDetached (EntityAI parent, int slot_id)
override void SetActions ()
void SetMapStateOpen (bool state, PlayerBase player)
 displays open/closed selections; 1 == opened
override bool ShowZonesHealth ()
void SyncMapMarkers ()

Protected Attributes

string m_AttachSound = "Offroad_Wheel_Attach_SoundSet"
string m_Description
string m_DetachSound = "Offroad_Wheel_Remove_SoundSet"
string m_DisplayName
ref array< ref MapMarkerm_MapMarkerArray
string m_TextureClosed
string m_TextureLegend
string m_TextureOpened

Private Member Functions

proto native bool AttachMagazine (int muzzleIndex, Magazine mag)
proto native bool CanAttachMagazine (int muzzleIndex, Magazine mag)
override bool CanBeIgnitedBy (EntityAI igniter=NULL)
proto native bool CanChamberFromMag (int muzzleIndex, Magazine mag)
override bool CanDetachAttachment (EntityAI parent)
proto native bool CanFire (int muzzleIndex)
override bool CanIgniteItem (EntityAI ignite_target=NULL)
proto native bool CanSpeak ()
proto native bool CreateRound (int muzzleIndex)
override bool DisplayNameRuinAttach ()
override bool DisplayNameRuinAttach ()
proto native bool DryDryFire (int muzzleIndex)
proto native bool DryFire (int muzzleIndex)
override void EEHealthLevelChanged (int oldLevel, int newLevel, string zone)
override void EEKilled (Object killer)
proto native void EffectBulletHide (int muzzleIndex)
proto native void EffectBulletShow (int muzzleIndex, float dmg, string type)
proto native bool EjectCasing (int muzzleIndex)
proto native void EnableBroadcast (bool state)
proto native void EnableReceive (bool state)
proto native bool EnterOptics ()
 switches to optics mode if possible
proto native bool ExitOptics ()
 switches out of optics mode (if possible)
proto native bool Fire (int muzzleIndex, vector pos, vector dir, vector speed)
proto native bool FlashlightOff ()
 attempt to turn off flashlight
proto native bool FlashlightOn ()
 attempt to turn on flashlight
proto native UnderSlugLauncher GetAttachedLauncher ()
proto native ItemOptics GetAttachedOptics ()
proto native ItemSuppressor GetAttachedSuppressor ()
proto native void GetCameraPoint (int muzzleIndex, out vector pos, out vector dir)
proto bool GetCartridgeInfo (int muzzleIndex, out float ammoDamage, out string ammoTypeName)
proto native owned string GetChamberAmmoTypeName (int muzzleIndex)
proto native owned string GetChamberedCartridgeMagazineTypeName (int muzzleIndex)
proto native int GetCurrentMode (int muzzleIndex)
proto native bool GetCurrentModeAutoFire (int muzzleIndex)
proto native int GetCurrentModeBurstSize (int muzzleIndex)
proto native owned string GetCurrentModeName (int muzzleIndex)
proto native int GetCurrentMuzzle ()
proto native float GetCurrentZeroing (int muzzleIndex=0)
proto native int GetInternalMagazineCartridgeCount (int muzzleIndex)
proto bool GetInternalMagazineCartridgeInfo (int muzzleIndex, int cartridgeIndex, out float ammoDamage, out string ammoTypeName)
proto native int GetInternalMagazineMaxCartridgeCount (int muzzleIndex)
proto native Magazine GetMagazine (int muzzleIndex)
proto native int GetMagazineTypeCount (int muzzleIndex)
proto native owned string GetMaxMagazineTypeName (int muzzleIndex)
override int GetMeleeTargetType ()
proto native int GetMuzzleCount ()
proto native int GetMuzzleModeCount (int muzzleIndex)
proto native owned string GetRandomChamberableAmmoTypeName (int muzzleIndex)
proto native owned string GetRandomMagazineTypeName (int muzzleIndex)
proto native float GetReloadTime (int muzzleIndex)
proto native int GetSlotFromMuzzleIndex (int muzzleIndex)
proto native int GetStepZeroing (int muzzleIndex=0)
proto native int GetStepZoom ()
 returns position of currently used value in zoom config array
proto native int GetTotalCartridgeCount (int muzzleIndex)
proto native int GetTotalMaxCartridgeCount (int muzzleIndex)
proto native float GetTunedFrequency ()
proto native int GetTunedFrequencyIndex ()
proto native float GetZeroingClamp (int muzzleIndex=0)
proto native float GetZeroingDistanceZoomMax (int muzzleIndex)
proto native float GetZeroingDistanceZoomMin (int muzzleIndex)
proto native float GetZoom ()
 returns current percentage of zoom
proto native float GetZoomInit (int muzzleIndex)
proto native float GetZoomMax (int muzzleIndex)
proto native float GetZoomMin (int muzzleIndex)
override bool HasFlammableMaterial ()
proto native bool HasInternalMagazine (int muzzleIndex)
proto native bool IsActivated ()
proto native bool IsBroadcasting ()
proto native bool IsChamberEjectable (int muzzleIndex)
proto native bool IsChamberEmpty (int muzzleIndex)
proto native bool IsChamberFiredOut (int muzzleIndex)
proto native bool IsChamberFull (int muzzleIndex)
bool IsChamberFullEx (int muzzleIndex)
proto native bool IsChamberJammed (int muzzleIndex)
proto native bool IsFlashlightOn ()
 query state of flashlight
proto native bool IsInOptics ()
 is weapon in optics mode or not
bool IsInternalMagazineFull (int muzzleIndex)
proto native bool IsPinned ()
proto native bool IsReceiving ()
override bool IsThisIgnitionSuccessful (EntityAI item_source=NULL)
bool IsTurnedOn ()
override bool IsWeapon ()
override void OnIgnitedTarget (EntityAI target_item)
override void OnIgnitedThis (EntityAI fire_source)
override void OnInventoryEnter (Man player)
override void OnInventoryEnter (Man player)
override void OnInventoryExit (Man player)
override void OnInventoryExit (Man player)
override event bool OnUseFromInventory (Man owner)
override void OnWasAttached (EntityAI parent, int slot_id)
override void OnWasAttached (EntityAI parent, int slot_id)
override void OnWasDetached (EntityAI parent, int slot_id)
override void OnWasDetached (EntityAI parent, int slot_id)
proto bool PopCartridgeFromChamber (int muzzleIndex, out float ammoDamage, out string ammoTypeName)
proto bool PopCartridgeFromInternalMagazine (int muzzleIndex, out float ammoDamage, out string ammoTypeName)
proto native bool PushCartridgeToChamber (int muzzleIndex, float ammoDamage, string ammoTypeName)
proto native bool PushCartridgeToInternalMagazine (int muzzleIndex, float ammoDamage, string ammoTypeName)
proto native void SelectionBulletHide ()
proto native void SelectionBulletShow ()
proto native void SelectionMagazineHide ()
proto native void SelectionMagazineShow ()
override void SetActions ()
override void SetActions ()
override void SetActions ()
proto native void SetCanSpeak (bool onOff)
proto native void SetCurrentMode (int muzzleIndex, int mode)
proto native void SetCurrentMuzzle (int muzzleIndex)
proto native void SetFrequencyByIndex (int index)
proto native void SetGroundAnimFrameIndex (int groundAnimFrameIndex)
proto native bool SetIgnited ()
 sets grenade to state GR_TRIGGERED (if the state transition is possible)
proto native void SetMuzzleMode (int muzzleIndex, int modeIndex)
proto native void SetNextChannel ()
proto native void SetNextMuzzleMode (int muzzleIndex)
proto native bool SetPinned ()
 sets grenade to state GR_PINNED (if the state transition is possible)
proto native void SetPrevChannel ()
proto native bool SetStepZeroing (int muzzleIndex, int step)
proto native bool SetStepZoom (int step)
proto native bool SetUnpinned ()
 sets grenade to state GR_UNPINNED (if the state transition is possible)
proto native bool SetZoom (float percent)
override bool ShowZonesHealth ()
override bool ShowZonesHealth ()
proto native bool StepZeroingDown (int muzzleIndex=0)
void StepZeroingDownAllMuzzles ()
proto native bool StepZeroingUp (int muzzleIndex=0)
void StepZeroingUpAllMuzzles ()
proto native bool StepZoomIn ()
 sets zoom to next defined (respective to current) value in zoom fov config array
proto native bool StepZoomOut ()
 sets zoom to previous (respective to current) defined value in zoom fov config array
proto native void Synchronize ()
 Force synchronizes the weapon state from Server to Client.
proto native bool TestAttachMagazine (int muzzleIndex, Magazine mag, bool do_occupancy_test, bool do_script_check)
proto native bool ZoomIn ()
 moves current zoom by 1% up
proto native bool ZoomOut ()
 moves current zoom by 1% down

Detailed Description

Definition at line 2 of file inventoryitem.c.

Member Function Documentation

◆ AttachMagazine()

proto native bool AttachMagazine ( int muzzleIndex,
Magazine mag )
private

◆ CanAttachMagazine()

proto native bool CanAttachMagazine ( int muzzleIndex,
Magazine mag )
private

◆ CanBeIgnitedBy()

override bool CanBeIgnitedBy ( EntityAI igniter = NULL)
inlineprivate

Definition at line 16 of file itembook.c.

◆ CanChamberFromMag()

proto native bool CanChamberFromMag ( int muzzleIndex,
Magazine mag )
private

◆ CanDetachAttachment()

override bool CanDetachAttachment ( EntityAI parent)
inlineprivate

◆ CanFire()

proto native bool CanFire ( int muzzleIndex)
private

◆ CanIgniteItem()

override bool CanIgniteItem ( EntityAI ignite_target = NULL)
inlineprivate

Definition at line 23 of file itembook.c.

◆ CanSpeak()

proto native bool CanSpeak ( )
private

◆ CreateRound()

proto native bool CreateRound ( int muzzleIndex)
private

◆ DescriptionOverride()

override bool DescriptionOverride ( out string output)
inlineprotected

Definition at line 1179 of file inventoryitem.c.

References m_Description.

◆ DisplayNameRuinAttach() [1/3]

override bool DisplayNameRuinAttach ( )
inlineprivate

Definition at line 700 of file inventoryitem.c.

◆ DisplayNameRuinAttach() [2/3]

override bool DisplayNameRuinAttach ( )
inlineprivate

Definition at line 486 of file inventoryitem.c.

◆ DisplayNameRuinAttach() [3/3]

override bool DisplayNameRuinAttach ( )
inlineprotected

Definition at line 204 of file inventoryitem.c.

◆ DryDryFire()

proto native bool DryDryFire ( int muzzleIndex)
private

◆ DryFire()

proto native bool DryFire ( int muzzleIndex)
private

◆ EEHealthLevelChanged() [1/2]

override void EEHealthLevelChanged ( int oldLevel,
int newLevel,
string zone )
inlineprivate

Definition at line 470 of file inventoryitem.c.

References m_Initialized, and GameConstants::STATE_RUINED.

◆ EEHealthLevelChanged() [2/2]

override void EEHealthLevelChanged ( int oldLevel,
int newLevel,
string zone )
inlineprotected

◆ EEKilled()

override void EEKilled ( Object killer)
inlineprivate

Definition at line 710 of file inventoryitem.c.

References Class::CastTo(), g_Game, and Math::RandomFloat().

◆ EffectBulletHide()

proto native void EffectBulletHide ( int muzzleIndex)
private

◆ EffectBulletShow()

proto native void EffectBulletShow ( int muzzleIndex,
float dmg,
string type )
private

◆ EjectCasing()

proto native bool EjectCasing ( int muzzleIndex)
private

◆ EnableBroadcast()

proto native void EnableBroadcast ( bool state)
private

◆ EnableReceive()

proto native void EnableReceive ( bool state)
private

◆ EnterOptics()

proto native bool EnterOptics ( )
private

switches to optics mode if possible

Returns
true if success, false otherwise

◆ ExitOptics()

proto native bool ExitOptics ( )
private

switches out of optics mode (if possible)

Returns
true if success, false otherwise

◆ Fire()

proto native bool Fire ( int muzzleIndex,
vector pos,
vector dir,
vector speed )
private

◆ FlashlightOff()

proto native bool FlashlightOff ( )
private

attempt to turn off flashlight

Returns
true if on -> off, false otherwise (no flashlight, no power, etc, already off)

◆ FlashlightOn()

proto native bool FlashlightOn ( )
private

attempt to turn on flashlight

Returns
true if set on, false otherwise (no flashlight, no power, etc)

◆ GetAttachedLauncher()

proto native UnderSlugLauncher GetAttachedLauncher ( )
private
Returns
returns attached launcher or null

◆ GetAttachedOptics()

proto native ItemOptics GetAttachedOptics ( )
private
Returns
returns attached optics or null

◆ GetAttachedSuppressor()

proto native ItemSuppressor GetAttachedSuppressor ( )
private
Returns
returns attached suppressor or null

◆ GetCameraPoint()

proto native void GetCameraPoint ( int muzzleIndex,
out vector pos,
out vector dir )
private

◆ GetCartridgeInfo()

proto bool GetCartridgeInfo ( int muzzleIndex,
out float ammoDamage,
out string ammoTypeName )
private

◆ GetChamberAmmoTypeName()

proto native owned string GetChamberAmmoTypeName ( int muzzleIndex)
private

◆ GetChamberedCartridgeMagazineTypeName()

proto native owned string GetChamberedCartridgeMagazineTypeName ( int muzzleIndex)
private

◆ GetCurrentMode()

proto native int GetCurrentMode ( int muzzleIndex)
private

◆ GetCurrentModeAutoFire()

proto native bool GetCurrentModeAutoFire ( int muzzleIndex)
private

◆ GetCurrentModeBurstSize()

proto native int GetCurrentModeBurstSize ( int muzzleIndex)
private

◆ GetCurrentModeName()

proto native owned string GetCurrentModeName ( int muzzleIndex)
private

◆ GetCurrentMuzzle()

proto native int GetCurrentMuzzle ( )
private
Returns
returns index of current muzzle

◆ GetCurrentZeroing()

proto native float GetCurrentZeroing ( int muzzleIndex = 0)
private

◆ GetInternalMagazineCartridgeCount()

proto native int GetInternalMagazineCartridgeCount ( int muzzleIndex)
private

Referenced by IsInternalMagazineFull().

◆ GetInternalMagazineCartridgeInfo()

proto bool GetInternalMagazineCartridgeInfo ( int muzzleIndex,
int cartridgeIndex,
out float ammoDamage,
out string ammoTypeName )
private

◆ GetInternalMagazineMaxCartridgeCount()

proto native int GetInternalMagazineMaxCartridgeCount ( int muzzleIndex)
private

Referenced by IsInternalMagazineFull().

◆ GetMagazine()

proto native Magazine GetMagazine ( int muzzleIndex)
private

◆ GetMagazineTypeCount()

proto native int GetMagazineTypeCount ( int muzzleIndex)
private

◆ GetMapStateAnimation()

bool GetMapStateAnimation ( )
inlineprotected

Definition at line 1109 of file inventoryitem.c.

◆ GetMarkerArray()

array< ref MapMarker > GetMarkerArray ( )
inlineprotected

Definition at line 1192 of file inventoryitem.c.

References m_MapMarkerArray.

◆ GetMaxMagazineTypeName()

proto native owned string GetMaxMagazineTypeName ( int muzzleIndex)
private

◆ GetMeleeTargetType() [1/2]

override int GetMeleeTargetType ( )
inlineprivate

Definition at line 465 of file inventoryitem.c.

◆ GetMeleeTargetType() [2/2]

override int GetMeleeTargetType ( )
inlineprotected

Definition at line 281 of file inventoryitem.c.

◆ GetMuzzleCount()

proto native int GetMuzzleCount ( )
private
Returns
number of muzzles

Referenced by StepZeroingDownAllMuzzles(), and StepZeroingUpAllMuzzles().

◆ GetMuzzleModeCount()

proto native int GetMuzzleModeCount ( int muzzleIndex)
private

◆ GetRadius()

proto native float GetRadius ( )
protected

Returns current wheel radius.

◆ GetRandomChamberableAmmoTypeName()

proto native owned string GetRandomChamberableAmmoTypeName ( int muzzleIndex)
private

◆ GetRandomMagazineTypeName()

proto native owned string GetRandomMagazineTypeName ( int muzzleIndex)
private

◆ GetReloadTime()

proto native float GetReloadTime ( int muzzleIndex)
private

◆ GetRuinedReplacement()

string GetRuinedReplacement ( )
inlineprotected

Definition at line 214 of file inventoryitem.c.

References GetType().

Referenced by EEHealthLevelChanged().

◆ GetSlotFromMuzzleIndex()

proto native int GetSlotFromMuzzleIndex ( int muzzleIndex)
private

◆ GetStepZeroing()

proto native int GetStepZeroing ( int muzzleIndex = 0)
private

◆ GetStepZoom()

proto native int GetStepZoom ( )
private

returns position of currently used value in zoom config array

Returns
position of currently used value in zoom config array

◆ GetTotalCartridgeCount()

proto native int GetTotalCartridgeCount ( int muzzleIndex)
private

◆ GetTotalMaxCartridgeCount()

proto native int GetTotalMaxCartridgeCount ( int muzzleIndex)
private

◆ GetTunedFrequency()

proto native float GetTunedFrequency ( )
private

◆ GetTunedFrequencyIndex()

proto native int GetTunedFrequencyIndex ( )
private

◆ GetWidth()

proto native float GetWidth ( )
protected

Returns wheel width.

◆ GetZeroingClamp()

proto native float GetZeroingClamp ( int muzzleIndex = 0)
private

◆ GetZeroingDistanceZoomMax()

proto native float GetZeroingDistanceZoomMax ( int muzzleIndex)
private

◆ GetZeroingDistanceZoomMin()

proto native float GetZeroingDistanceZoomMin ( int muzzleIndex)
private

◆ GetZoom()

proto native float GetZoom ( )
private

returns current percentage of zoom

Returns
current percentage of zoom

◆ GetZoomInit()

proto native float GetZoomInit ( int muzzleIndex)
private

◆ GetZoomMax()

proto native float GetZoomMax ( int muzzleIndex)
private

◆ GetZoomMin()

proto native float GetZoomMin ( int muzzleIndex)
private

◆ HasFlammableMaterial()

override bool HasFlammableMaterial ( )
inlineprivate

Definition at line 11 of file itembook.c.

◆ HasInternalMagazine()

proto native bool HasInternalMagazine ( int muzzleIndex)
private

◆ InitMapState()

void InitMapState ( )
inlineprotected

◆ InsertMarker()

void InsertMarker ( vector pos,
string text,
int color,
int idx )
inlineprotected

Definition at line 1186 of file inventoryitem.c.

References m_MapMarkerArray.

◆ IsActivated()

proto native bool IsActivated ( )
private
Returns
true if grenade is GR_TRIGGERED or GR_EXPLODED

◆ IsBroadcasting()

proto native bool IsBroadcasting ( )
private

◆ IsChamberEjectable()

proto native bool IsChamberEjectable ( int muzzleIndex)
private

◆ IsChamberEmpty()

proto native bool IsChamberEmpty ( int muzzleIndex)
private

◆ IsChamberFiredOut()

proto native bool IsChamberFiredOut ( int muzzleIndex)
private

◆ IsChamberFull()

proto native bool IsChamberFull ( int muzzleIndex)
private

◆ IsChamberFullEx()

bool IsChamberFullEx ( int muzzleIndex)
inlineprivate

Definition at line 97 of file weapon.c.

References IsChamberFull().

◆ IsChamberJammed()

proto native bool IsChamberJammed ( int muzzleIndex)
private

◆ IsFlashlightOn()

proto native bool IsFlashlightOn ( )
private

query state of flashlight

Returns
true if set on

◆ IsInOptics()

proto native bool IsInOptics ( )
private

is weapon in optics mode or not

Returns
true if in optics mode, false otherwise

◆ IsInternalMagazineFull()

bool IsInternalMagazineFull ( int muzzleIndex)
inlineprivate

◆ IsPinned()

proto native bool IsPinned ( )
private
Returns
true if grenade is pinned

◆ IsReceiving()

proto native bool IsReceiving ( )
private

◆ IsThisIgnitionSuccessful()

override bool IsThisIgnitionSuccessful ( EntityAI item_source = NULL)
inlineprivate

Definition at line 37 of file itembook.c.

◆ IsTurnedOn()

bool IsTurnedOn ( )
inlineprivate

Definition at line 54 of file inventoryitem.c.

Referenced by OnInventoryEnter(), and OnWasAttached().

◆ IsWeapon()

override bool IsWeapon ( )
inlineprivate

Definition at line 6 of file weapon.c.

◆ ItemMap()

void ItemMap ( )
inlineprotected

Definition at line 1053 of file inventoryitem.c.

References InitMapState().

◆ NameOverride()

override bool NameOverride ( out string output)
inlineprotected

Definition at line 1172 of file inventoryitem.c.

References m_DisplayName.

◆ OnIgnitedTarget()

override void OnIgnitedTarget ( EntityAI target_item)
inlineprivate

Definition at line 28 of file itembook.c.

◆ OnIgnitedThis()

override void OnIgnitedThis ( EntityAI fire_source)
inlineprivate

Definition at line 32 of file itembook.c.

◆ OnInventoryEnter() [1/2]

override void OnInventoryEnter ( Man player)
inlineprivate

Definition at line 117 of file inventoryitem.c.

◆ OnInventoryEnter() [2/2]

override void OnInventoryEnter ( Man player)
inlineprivate

Definition at line 59 of file inventoryitem.c.

References IsTurnedOn().

◆ OnInventoryExit() [1/2]

override void OnInventoryExit ( Man player)
inlineprivate

Definition at line 133 of file inventoryitem.c.

◆ OnInventoryExit() [2/2]

override void OnInventoryExit ( Man player)
inlineprivate

Definition at line 70 of file inventoryitem.c.

◆ OnItemLocationChanged()

override void OnItemLocationChanged ( EntityAI old_owner,
EntityAI new_owner )
inlineprotected

Definition at line 1080 of file inventoryitem.c.

References SetMapStateOpen().

◆ OnRPC()

override void OnRPC ( PlayerIdentity sender,
int rpc_type,
ParamsReadContext ctx )
inlineprotected

Definition at line 1136 of file inventoryitem.c.

References m_MapMarkerArray, and Serializer::Read().

◆ OnStoreLoad()

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprotected

Definition at line 1153 of file inventoryitem.c.

References m_MapMarkerArray, and Serializer::Read().

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext ctx)
inlineprotected

Definition at line 1165 of file inventoryitem.c.

References m_MapMarkerArray, and Serializer::Write().

◆ OnUseFromInventory()

override event bool OnUseFromInventory ( Man owner)
inlineprivate

Definition at line 3 of file itembook.c.

◆ OnWasAttached() [1/3]

override void OnWasAttached ( EntityAI parent,
int slot_id )
inlineprotected

◆ OnWasAttached() [2/3]

override void OnWasAttached ( EntityAI parent,
int slot_id )
inlineprivate

Definition at line 149 of file inventoryitem.c.

◆ OnWasAttached() [3/3]

override void OnWasAttached ( EntityAI parent,
int slot_id )
inlineprivate

Definition at line 81 of file inventoryitem.c.

References IsTurnedOn().

◆ OnWasDetached() [1/3]

override void OnWasDetached ( EntityAI parent,
int slot_id )
inlineprotected

◆ OnWasDetached() [2/3]

override void OnWasDetached ( EntityAI parent,
int slot_id )
inlineprivate

Definition at line 170 of file inventoryitem.c.

◆ OnWasDetached() [3/3]

override void OnWasDetached ( EntityAI parent,
int slot_id )
inlineprivate

Definition at line 97 of file inventoryitem.c.

◆ PopCartridgeFromChamber()

proto bool PopCartridgeFromChamber ( int muzzleIndex,
out float ammoDamage,
out string ammoTypeName )
private

◆ PopCartridgeFromInternalMagazine()

proto bool PopCartridgeFromInternalMagazine ( int muzzleIndex,
out float ammoDamage,
out string ammoTypeName )
private

◆ PushCartridgeToChamber()

proto native bool PushCartridgeToChamber ( int muzzleIndex,
float ammoDamage,
string ammoTypeName )
private

◆ PushCartridgeToInternalMagazine()

proto native bool PushCartridgeToInternalMagazine ( int muzzleIndex,
float ammoDamage,
string ammoTypeName )
private

◆ SelectionBulletHide()

proto native void SelectionBulletHide ( )
private

◆ SelectionBulletShow()

proto native void SelectionBulletShow ( )
private

◆ SelectionMagazineHide()

proto native void SelectionMagazineHide ( )
private

◆ SelectionMagazineShow()

proto native void SelectionMagazineShow ( )
private

◆ SetActions() [1/4]

override void SetActions ( )
inlineprivate

Definition at line 1004 of file inventoryitem.c.

References AddAction().

◆ SetActions() [2/4]

override void SetActions ( )
inlineprivate

Definition at line 730 of file inventoryitem.c.

References ActionDetach(), and AddAction().

◆ SetActions() [3/4]

override void SetActions ( )
inlineprivate

Definition at line 496 of file inventoryitem.c.

References ActionDetach(), and AddAction().

◆ SetActions() [4/4]

override void SetActions ( )
inlineprotected

Definition at line 286 of file inventoryitem.c.

References ActionDetach(), and AddAction().

◆ SetCanSpeak()

proto native void SetCanSpeak ( bool onOff)
private

◆ SetCurrentMode()

proto native void SetCurrentMode ( int muzzleIndex,
int mode )
private

◆ SetCurrentMuzzle()

proto native void SetCurrentMuzzle ( int muzzleIndex)
private

◆ SetFrequencyByIndex()

proto native void SetFrequencyByIndex ( int index)
private

◆ SetGroundAnimFrameIndex()

proto native void SetGroundAnimFrameIndex ( int groundAnimFrameIndex)
private

◆ SetIgnited()

proto native bool SetIgnited ( )
private

sets grenade to state GR_TRIGGERED (if the state transition is possible)

Returns
true if state already set or if state transition performed, false otherwise

◆ SetMapStateOpen()

void SetMapStateOpen ( bool state,
PlayerBase player )
inlineprotected

displays open/closed selections; 1 == opened

Definition at line 1088 of file inventoryitem.c.

Referenced by OnItemLocationChanged().

◆ SetMuzzleMode()

proto native void SetMuzzleMode ( int muzzleIndex,
int modeIndex )
private

◆ SetNextChannel()

proto native void SetNextChannel ( )
private

◆ SetNextMuzzleMode()

proto native void SetNextMuzzleMode ( int muzzleIndex)
private

◆ SetPinned()

proto native bool SetPinned ( )
private

sets grenade to state GR_PINNED (if the state transition is possible)

Returns
true if state already set or if state transition performed, false otherwise

◆ SetPrevChannel()

proto native void SetPrevChannel ( )
private

◆ SetStepZeroing()

proto native bool SetStepZeroing ( int muzzleIndex,
int step )
private

◆ SetStepZoom()

proto native bool SetStepZoom ( int step)
private

◆ SetUnpinned()

proto native bool SetUnpinned ( )
private

sets grenade to state GR_UNPINNED (if the state transition is possible)

Returns
true if state already set or if state transition performed, false otherwise

◆ SetZoom()

proto native bool SetZoom ( float percent)
private

◆ ShowZonesHealth() [1/3]

override bool ShowZonesHealth ( )
inlineprivate

Definition at line 705 of file inventoryitem.c.

◆ ShowZonesHealth() [2/3]

override bool ShowZonesHealth ( )
inlineprivate

Definition at line 491 of file inventoryitem.c.

◆ ShowZonesHealth() [3/3]

override bool ShowZonesHealth ( )
inlineprotected

Definition at line 209 of file inventoryitem.c.

◆ StepZeroingDown()

proto native bool StepZeroingDown ( int muzzleIndex = 0)
private

◆ StepZeroingDownAllMuzzles()

void StepZeroingDownAllMuzzles ( )
inlineprivate

Definition at line 458 of file weapon.c.

References GetMuzzleCount(), and StepZeroingDown().

◆ StepZeroingUp()

proto native bool StepZeroingUp ( int muzzleIndex = 0)
private

Referenced by StepZeroingUpAllMuzzles().

◆ StepZeroingUpAllMuzzles()

void StepZeroingUpAllMuzzles ( )
inlineprivate

Definition at line 450 of file weapon.c.

References GetMuzzleCount(), and StepZeroingUp().

◆ StepZoomIn()

proto native bool StepZoomIn ( )
private

sets zoom to next defined (respective to current) value in zoom fov config array

Returns
true if zoom set

◆ StepZoomOut()

proto native bool StepZoomOut ( )
private

sets zoom to previous (respective to current) defined value in zoom fov config array

Returns
true if zoom set

◆ Synchronize()

proto native void Synchronize ( )
private

Force synchronizes the weapon state from Server to Client.

Use with caution.

◆ SyncMapMarkers()

void SyncMapMarkers ( )
inlineprotected

Definition at line 1116 of file inventoryitem.c.

References g_Game, and m_MapMarkerArray.

Referenced by InitMapState().

◆ TestAttachMagazine()

proto native bool TestAttachMagazine ( int muzzleIndex,
Magazine mag,
bool do_occupancy_test,
bool do_script_check )
private

◆ ZoomIn()

proto native bool ZoomIn ( )
private

moves current zoom by 1% up

Returns
true if zoom set

◆ ZoomOut()

proto native bool ZoomOut ( )
private

moves current zoom by 1% down

Returns
true if zoom set

Field Documentation

◆ m_AttachSound

string m_AttachSound = "Offroad_Wheel_Attach_SoundSet"
protected

Definition at line 195 of file inventoryitem.c.

Referenced by OnWasAttached().

◆ m_Description

string m_Description
protected

Definition at line 1051 of file inventoryitem.c.

Referenced by DescriptionOverride(), and InitMapState().

◆ m_DetachSound

string m_DetachSound = "Offroad_Wheel_Remove_SoundSet"
protected

Definition at line 196 of file inventoryitem.c.

Referenced by OnWasDetached().

◆ m_DisplayName

string m_DisplayName
protected

Definition at line 1050 of file inventoryitem.c.

Referenced by InitMapState(), and NameOverride().

◆ m_MapMarkerArray

ref array<ref MapMarker> m_MapMarkerArray
protected

◆ m_TextureClosed

string m_TextureClosed
protected

Definition at line 1047 of file inventoryitem.c.

Referenced by InitMapState().

◆ m_TextureLegend

string m_TextureLegend
protected

Definition at line 1049 of file inventoryitem.c.

Referenced by InitMapState().

◆ m_TextureOpened

string m_TextureOpened
protected

Definition at line 1048 of file inventoryitem.c.

Referenced by InitMapState().


The documentation for this class was generated from the following files:
  • F:/Games/Dayz/scripts/4_world/entities/core/inherited/inventoryitem.c
  • F:/Games/Dayz/scripts/4_world/entities/core/inherited/weapon.c
  • F:/Games/Dayz/scripts/4_world/entities/itembase/itembook.c