Dayz  1.11.153731
Dayz Code Explorer by Zeroy
CarTent.c
Go to the documentation of this file.
1 class CarTent extends TentBase
2 {
3  void CarTent()
4  {
5  m_ToggleAnimations.Insert( new ToggleAnimations("EntranceO", "EntranceC", OPENING_0), 0 );
6 
7  m_ShowAnimationsWhenPitched.Insert( "Body" );
8  //m_ShowAnimationsWhenPitched.Insert( "EntranceO" );
9  m_ShowAnimationsWhenPitched.Insert( "Pack" );
10 
11  m_ShowAnimationsWhenPacked.Insert( "Inventory" );
12 
13  m_HalfExtents = Vector(1.8, 0.33, 3.4);
14  }
15 
16  override void EEInit()
17  {
18  super.EEInit();
19  }
20 
21  override void OnItemLocationChanged(EntityAI old_owner, EntityAI new_owner)
22  {
23  super.OnItemLocationChanged(old_owner, new_owner);
24  }
25 
26  override string GetSoundOpen()
27  {
28  return "CarTent_Door_Open_SoundSet";
29  }
30 
31  override string GetSoundClose()
32  {
33  return "CarTent_Door_Close_SoundSet";
34  }
35 
36  override bool HasClutterCutter()
37  {
38  return false;
39  }
40 
41  //================================================================
42  // ADVANCED PLACEMENT
43  //================================================================
44 
45  override bool IsDeployable()
46  {
47  return true;
48  }
49 
50  override string GetDeploySoundset()
51  {
52  return "placeCarTent_SoundSet";
53  }
54 
55  override string GetLoopDeploySoundset()
56  {
57  return "cartent_deploy_SoundSet";
58  }
59 };
TentBase::IsDeployable
override bool IsDeployable()
Definition: CarTent.c:45
TentBase::OnItemLocationChanged
override void OnItemLocationChanged(EntityAI old_owner, EntityAI new_owner)
Definition: CarTent.c:21
TentBase::GetDeploySoundset
override string GetDeploySoundset()
Definition: CarTent.c:50
TentBase::EEInit
override void EEInit()
Definition: CarTent.c:16
TentBase::GetSoundOpen
override string GetSoundOpen()
Definition: CarTent.c:26
TentBase::CarTent
void CarTent()
Definition: CarTent.c:3
TentBase
Definition: CarTent.c:1
m_HalfExtents
class Container_Base extends ItemBase m_HalfExtents
ToggleAnimations
Definition: ToggleSelections.c:1
TentBase::GetLoopDeploySoundset
override string GetLoopDeploySoundset()
Definition: CarTent.c:55
Vector
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
EntityAI
Base native class of all vehicles in game.
Definition: Building.c:4
TentBase::HasClutterCutter
override bool HasClutterCutter()
Definition: CarTent.c:36
TentBase::GetSoundClose
override string GetSoundClose()
Definition: CarTent.c:31