DayZ 1.24
Loading...
Searching...
No Matches
Backpack_Base Class Reference
Inheritance diagram for Backpack_Base:
[legend]
Collaboration diagram for Backpack_Base:
[legend]

Protected Member Functions

void LargeTentBackPack ()
 
void ~LargeTentBackPack ()
 
override void OnRPC (PlayerIdentity sender, int rpc_type, ParamsReadContext ctx)
 
void PlayRepackingLoopSound ()
 
void StopRepackingLoopSound ()
 
override void SetActions ()
 

Protected Attributes

EffectSound m_RepackingLoopSound
 

Private Member Functions

override bool IsClothing ()
 
- Private Member Functions inherited from Clothing
void InitGlobalExclusionValues ()
 
void CheckParent ()
 
override void OnWorkStart ()
 
override void OnWorkStop ()
 
override void OnWork (float consumed_energy)
 
void OnLightCreated ()
 
void CreateHeadtorchLight ()
 
void AttachLightOnHead (EntityAI person)
 
override void OnWasAttached (EntityAI parent, int slot_id)
 
override void OnWasDetached (EntityAI parent, int slot_id)
 
override void SetActions ()
 
override bool IsLightSource ()
 
override ItemBase GetLightSourceItem ()
 
override void OnInvisibleSet (bool invisible)
 

Detailed Description

Definition at line 1 of file AliceBag_ColorBase.c.

Constructor & Destructor Documentation

◆ ~LargeTentBackPack()

void Backpack_Base::~LargeTentBackPack ( )
inlineprotected

Definition at line 10 of file LargeTentBackPack.c.

11 {
13 }
EffectSound m_RepackingLoopSound
Manager class for managing Effect (EffectParticle, EffectSound)
static void DestroyEffect(Effect effect)
Unregisters, stops and frees the Effect.

References SEffectManager::DestroyEffect(), and m_RepackingLoopSound.

Member Function Documentation

◆ IsClothing()

override bool Backpack_Base::IsClothing ( )
inlineprivate

Definition at line 3 of file LeatherSack_ColorBase.c.

4 {
5 return true;
6 }

◆ LargeTentBackPack()

void Backpack_Base::LargeTentBackPack ( )
inlineprotected

Definition at line 5 of file LargeTentBackPack.c.

6 {
8 }
Wrapper class for managing sound through SEffectManager.
Definition EffectSound.c:5

References m_RepackingLoopSound.

◆ OnRPC()

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

Definition at line 15 of file LargeTentBackPack.c.

16 {
17 super.OnRPC(sender, rpc_type, ctx);
18
19 Param1<bool> p = new Param1<bool>(false);
20
21 if (!ctx.Read(p))
22 return;
23
24 bool play = p.param1;
25
26 switch (rpc_type)
27 {
28 case SoundTypeTent.REPACK:
29
30 if (play)
32 else
34
35 break;
36 }
37 }
SoundTypeTent
Definition LargeTent.c:2
void StopRepackingLoopSound()
void PlayRepackingLoopSound()

References PlayRepackingLoopSound(), and StopRepackingLoopSound().

◆ PlayRepackingLoopSound()

void Backpack_Base::PlayRepackingLoopSound ( )
inlineprotected

Definition at line 39 of file LargeTentBackPack.c.

40 {
42 m_RepackingLoopSound = SEffectManager.PlaySound("largetent_deploy_SoundSet", GetPosition(), 0.5, 0.5);
43 }
class JsonUndergroundAreaTriggerData GetPosition
bool IsSoundPlaying()
Get whether EffectSound is currently playing.
static EffectSound PlaySound(string sound_set, vector position, float play_fade_in=0, float stop_fade_out=0, bool loop=false)
Create and play an EffectSound.

References GetPosition, m_RepackingLoopSound, and SEffectManager::PlaySound().

Referenced by OnRPC().

◆ SetActions()

override void Backpack_Base::SetActions ( )
inlineprotected

Definition at line 51 of file LargeTentBackPack.c.

52 {
53 super.SetActions();
54
55 //AddAction(ActionRepackTent);
56 }

◆ StopRepackingLoopSound()

void Backpack_Base::StopRepackingLoopSound ( )
inlineprotected

Definition at line 45 of file LargeTentBackPack.c.

46 {
49 }
void SetSoundFadeOut(float fade_out)
Set the sound fade out duration.
void SoundStop()
Stops sound.

References m_RepackingLoopSound.

Referenced by OnRPC().

Member Data Documentation

◆ m_RepackingLoopSound

EffectSound Backpack_Base::m_RepackingLoopSound
protected

Definition at line 3 of file LargeTentBackPack.c.


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