5 m_ToggleAnimations.Insert(
new ToggleAnimations(
"Door1o",
"Door1c", OPENING_0), 0 );
6 m_ToggleAnimations.Insert(
new ToggleAnimations(
"Door2o",
"Door2c", OPENING_1), 0 );
7 m_ToggleAnimations.Insert(
new ToggleAnimations(
"Door3o",
"Door3c", OPENING_2), 0 );
8 m_ToggleAnimations.Insert(
new ToggleAnimations(
"Door4o",
"Door4c", OPENING_3), 0 );
9 m_ToggleAnimations.Insert(
new ToggleAnimations(
"Door5o",
"Door5c", OPENING_4), 0 );
10 m_ToggleAnimations.Insert(
new ToggleAnimations(
"Door6o",
"Door6c", OPENING_5), 0 );
12 m_ShowAnimationsWhenPitched.Insert(
"Body" );
13 m_ShowAnimationsWhenPitched.Insert(
"Pack" );
21 m_ShowAnimationsWhenPacked.Insert(
"Inventory" );
28 return "LargeTent_Door_Open_SoundSet";
33 return "LargeTent_Door_Close_SoundSet";
38 return "LargeTent_Window_Open_SoundSet";
43 return "LargeTent_Window_Close_SoundSet";
53 return "LargeTentClutterCutter";
62 super.OnPlacementComplete( player, position, orientation );
78 return "placeLargeTent_SoundSet";
83 return "largetent_deploy_SoundSet";
86 override void HandleCamoNetAttachment(
bool hide)
96 for (
int i = 0; i < m_ToggleAnimations.Count(); i++)
98 toggle = m_ToggleAnimations.GetKey(i);
99 camo_off =
"Camo" + toggle.GetToggleOff().Substring(4,2);
100 camo_on =
"Camo" + toggle.GetToggleOn().Substring(4,2);
104 SetAnimationPhase( camo_off, hide );
105 SetAnimationPhase( camo_on, hide );
111 DamageSystem.GetDamageZoneFromComponentName(
this,
component,zone);
112 is_ruined = GetHealthLevel(zone) ==
GameConstants.STATE_RUINED;
113 is_closed = m_OpeningMask & toggle.GetOpeningBit();
117 SetAnimationPhase( camo_on, is_ruined );
121 SetAnimationPhase( camo_off, is_ruined );
126 SetAnimationPhase(
"Camo_Roof", hide );
134 bool is_closed = m_OpeningMask & toggle.GetOpeningBit();
135 string camo_off =
"Camo" + toggle.GetToggleOff().Substring(4,2);
136 string camo_on =
"Camo" + toggle.GetToggleOn().Substring(4,2);
138 SetAnimationPhase( camo_off, is_closed );
139 SetAnimationPhase( camo_on, !is_closed );
143 override void AnimateCamonetByOpeningSelection(
string opening_selection)
145 string camo =
"Camo" + opening_selection.Substring(4,2);
146 SetAnimationPhase(camo,1);
151 class PartyTent_Brown
extends PartyTent {};
152 class PartyTent_Lunapark
extends PartyTent {};