Dayz  1.11.153731
Dayz Code Explorer by Zeroy
BarrelHoles_ColorBase.c
Go to the documentation of this file.
2 {
3  //Visual animations
4  const string ANIMATION_OPENED = "LidOff";
5  const string ANIMATION_CLOSED = "LidOn";
6  const int SOUND_NONE = -1;
7  const int SOUND_OPENING = 0;
8  const int SOUND_CLOSING = 1;
9 
10  protected bool m_IsOpenedClient = false;
11  protected int m_LastSoundPlayed;
12 
14 
16  {
17  //Particles - default for FireplaceBase
25 
26  m_Openable = new OpenableBehaviour(false);
27 
28  //synchronized variables
29  RegisterNetSyncVariableBool("m_Openable.m_IsOpened");
30 
31  ProcessInvulnerabilityCheck("disableContainerDamage");
32 
33  m_LightDistance = 50;
34  m_LastSoundPlayed = SOUND_NONE;
35  }
36 
38  {
39  return 110;
40  }
41 
42  override void EEInit()
43  {
44  super.EEInit();
45 
46  //hide in inventory
47  //GetInventory().LockInventory(HIDE_INV_FROM_SCRIPT);
48  }
49 
50  override void OnStoreSave( ParamsWriteContext ctx )
51  {
52  super.OnStoreSave( ctx );
53 
54  ctx.Write( m_Openable.IsOpened() );
55  }
56 
57  override bool OnStoreLoad( ParamsReadContext ctx, int version )
58  {
59  if ( !super.OnStoreLoad( ctx, version ) )
60  return false;
61 
62  bool opened;
63  if ( version >= 110 && !ctx.Read( opened ) )
64  {
65  return false;
66  }
67 
68  if ( opened )
69  {
70  Open();
71  }
72  else
73  {
74  Close();
75  }
76 
77  return true;
78  }
79 
80  override bool IsBarrelWithHoles()
81  {
82  return true;
83  }
84 
85  override void OnVariablesSynchronized()
86  {
87  super.OnVariablesSynchronized();
88 
89  if ( !IsBeingPlaced() )
90  {
91  //Refresh particles and sounds
93 
94  //sound sync
95  if ( IsSoundSynchRemote() )
96  {
97  if ( IsOpen() && m_LastSoundPlayed != SOUND_OPENING )
98  {
99  //DumpStack();
100  SoundBarrelOpenPlay();
101  }
102 
103  if ( !IsOpen() && m_LastSoundPlayed != SOUND_CLOSING )
104  {
105  //DumpStack();
106  SoundBarrelClosePlay();
107  }
108  }
109  else
110  {
111  m_LastSoundPlayed = SOUND_NONE;
112  }
113 
114  }
115 
116  UpdateVisualState();
117  }
118 
119  //ATTACHMENTS
120  override bool CanReceiveAttachment( EntityAI attachment, int slotId )
121  {
122  ItemBase item = ItemBase.Cast( attachment );
123 
124  if ( GetHealthLevel() == GameConstants.STATE_RUINED || GetHierarchyRootPlayer() != null )
125  return false;
126 
127  //direct cooking slots
128  if ( !IsOpen() )
129  {
130  if ( ( item.Type() == ATTACHMENT_COOKING_POT ) || ( item.Type() == ATTACHMENT_FRYING_PAN ) || ( item.IsKindOf( "Edible_Base" ) ) )
131  {
132  return super.CanReceiveAttachment(attachment, slotId);
133  }
134  }
135  else
136  {
137  if ( IsKindling( item ) || IsFuel( item ) )
138  {
139  return super.CanReceiveAttachment(attachment, slotId);
140  }
141  }
142 
143  return false;
144  }
145 
146  override bool CanLoadAttachment( EntityAI attachment )
147  {
148  ItemBase item = ItemBase.Cast( attachment );
149 
150  if ( GetHealthLevel() == GameConstants.STATE_RUINED )
151  return false;
152 
153  if ( ( item.Type() == ATTACHMENT_COOKING_POT ) || ( item.Type() == ATTACHMENT_FRYING_PAN ) || ( item.IsKindOf( "Edible_Base" ) ) || IsKindling( item ) || IsFuel( item ) )
154  return super.CanLoadAttachment(attachment);
155 
156  return false;
157  }
158 
159  override bool CanReleaseAttachment( EntityAI attachment )
160  {
161  if( !super.CanReleaseAttachment( attachment ) )
162  return false;
163 
164  ItemBase item = ItemBase.Cast( attachment );
165  //kindling items
166  if ( IsKindling ( item ) && !IsBurning() && IsOpen() )
167  {
169  {
170  if ( HasLastAttachment() )
171  {
172  return true;
173  }
174  else
175  {
176  return false;
177  }
178  }
179  else
180  {
181  return true;
182  }
183  }
184 
185  //fuel items
186  if ( IsFuel ( item ) && !IsBurning() && IsOpen() )
187  {
189  {
190  if ( HasLastAttachment() )
191  {
192  return true;
193  }
194  else
195  {
196  return false;
197  }
198  }
199  else
200  {
201  return true;
202  }
203  }
204 
205  //direct cooking slots
206  if ( ( item.Type() == ATTACHMENT_COOKING_POT ) || ( item.Type() == ATTACHMENT_FRYING_PAN ) || ( item.IsKindOf( "Edible_Base" ) ) )
207  {
208  return true;
209  }
210 
211  return false;
212  }
213 
214  override void EEItemAttached ( EntityAI item, string slot_name )
215  {
216  super.EEItemAttached( item, slot_name );
217 
218  ItemBase item_base = ItemBase.Cast( item );
219 
220  //kindling / fuel
221  if ( IsKindling ( item_base ) || IsFuel ( item_base ) )
222  {
223  //add to consumables
224  AddToFireConsumables ( item_base );
225  }
226 
227  // direct cooking slots, smoking slots
228  bool edible_base_attached = false;
229  switch ( slot_name )
230  {
231  case "DirectCookingA":
232  m_DirectCookingSlots[0] = item_base;
233  edible_base_attached = true;
234  break;
235 
236  case "DirectCookingB":
237  m_DirectCookingSlots[1] = item_base;
238  edible_base_attached = true;
239  break;
240 
241  case "DirectCookingC":
242  m_DirectCookingSlots[2] = item_base;
243  edible_base_attached = true;
244  break;
245 
246  case "SmokingA":
247  m_SmokingSlots[0] = item_base;
248  edible_base_attached = true;
249  break;
250 
251  case "SmokingB":
252  m_SmokingSlots[1] = item_base;
253  edible_base_attached = true;
254  break;
255 
256  case "SmokingC":
257  m_SmokingSlots[2] = item_base;
258  edible_base_attached = true;
259  break;
260 
261  case "SmokingD":
262  m_SmokingSlots[3] = item_base;
263  edible_base_attached = true;
264  break;
265  }
266 
267  // reset cooking time (to prevent the cooking exploit)
268  if ( GetGame().IsServer() && edible_base_attached )
269  {
270  Edible_Base edBase = Edible_Base.Cast( item_base );
271  if ( edBase )
272  {
273  if ( edBase.GetFoodStage() )
274  edBase.SetCookingTime( 0 );
275  }
276  }
277 
278  //refresh fireplace visuals
280  }
281 
282  override void EEItemDetached ( EntityAI item, string slot_name )
283  {
284  super.EEItemDetached ( item, slot_name );
285 
286  ItemBase item_base = ItemBase.Cast( item );
287 
288  //kindling / fuel
289  if ( IsKindling ( item_base ) || IsFuel ( item_base ) )
290  {
291  //remove from consumables
293  }
294 
295  // direct cooking slots
296  switch ( slot_name )
297  {
298  case "DirectCookingA":
299  m_DirectCookingSlots[0] = NULL;
300  break;
301 
302  case "DirectCookingB":
303  m_DirectCookingSlots[1] = NULL;
304  break;
305 
306  case "DirectCookingC":
307  m_DirectCookingSlots[2] = NULL;
308  break;
309  }
310 
311  // smoking slots
312  switch ( slot_name )
313  {
314  case "SmokingA":
315  m_SmokingSlots[0] = NULL;
316  break;
317 
318  case "SmokingB":
319  m_SmokingSlots[1] = NULL;
320  break;
321 
322  case "SmokingC":
323  m_SmokingSlots[2] = NULL;
324  break;
325 
326  case "SmokingD":
327  m_SmokingSlots[3] = NULL;
328  break;
329  }
330 
331  // food on direct cooking slots (removal of sound effects)
332  if ( item_base.IsKindOf( "Edible_Base" ) )
333  {
334  Edible_Base food_on_dcs = Edible_Base.Cast( item_base );
335  food_on_dcs.MakeSoundsOnClient( false );
336  }
337 
338  // cookware-specifics (remove audio visuals)
339  if ( item_base.Type() == ATTACHMENT_COOKING_POT )
340  {
341  Bottle_Base cooking_pot = Bottle_Base.Cast( item );
342  cooking_pot.RemoveAudioVisualsOnClient();
343  }
344  if ( item_base.Type() == ATTACHMENT_FRYING_PAN )
345  {
346  FryingPan frying_pan = FryingPan.Cast( item );
347  frying_pan.RemoveAudioVisualsOnClient();
348  }
349 
350  //refresh fireplace visuals
352  }
353 
354  //CONDITIONS
355  //this into/outo parent.Cargo
356  override bool CanPutInCargo( EntityAI parent )
357  {
358  if ( !super.CanPutInCargo( parent ) )
359  return false;
360 
361  if ( IsBurning() || !IsCargoEmpty() || DirectCookingSlotsInUse() || IsOpen() )
362  return false;
363 
364  return true;
365  }
366 
367  override bool CanRemoveFromCargo( EntityAI parent )
368  {
369  return true;
370  }
371 
372  //cargo item into/outo this.Cargo
373  override bool CanReceiveItemIntoCargo( EntityAI item )
374  {
375  if ( GetHealthLevel() == GameConstants.STATE_RUINED )
376  return false;
377 
378  if ( !IsOpen() || GetHierarchyParent() )
379  return false;
380 
381  return super.CanReceiveItemIntoCargo( item );
382  }
383 
384  override bool CanLoadItemIntoCargo( EntityAI item )
385  {
386  if ( GetHealthLevel() == GameConstants.STATE_RUINED )
387  return false;
388 
389  if ( GetHierarchyParent() )
390  return false;
391 
392  return super.CanLoadItemIntoCargo( item );
393  }
394 
395  override bool CanReleaseCargo( EntityAI cargo )
396  {
397  return IsOpen();
398  }
399 
400  //hands
401  override bool CanPutIntoHands( EntityAI parent )
402  {
403  if ( !super.CanPutIntoHands( parent ) )
404  return false;
405 
406  if ( IsBurning() || !IsCargoEmpty() || DirectCookingSlotsInUse() || IsOpen() )
407  return false;
408 
409  return true;
410  }
411 
412  //INVENTORY DISPLAY CONDITIONS
413  override bool CanDisplayCargo()
414  {
415  //super
416  if( !super.CanDisplayCargo() )
417  {
418  return false;
419  }
420  //
421 
422  return IsOpen();
423  }
424 
425  override bool CanDisplayAttachmentCategory( string category_name )
426  {
427  //super
428  if( !super.CanDisplayAttachmentCategory( category_name ) )
429  {
430  return false;
431  }
432  //
433 
434  if ( ( category_name == "CookingEquipment" ) || ( category_name == "Smoking" ) )
435  {
436  return !IsOpen();
437  }
438  else
439  {
440  return IsOpen();
441  }
442 
443  return true;
444  }
445  // ---
446 
447  //ACTIONS
448  override void Open()
449  {
450  m_Openable.Open();
451  //GetInventory().UnlockInventory(HIDE_INV_FROM_SCRIPT);
452 
453  m_RoofAbove = false;
454 
456  //SetSynchDirty(); //! called also in SoundSynchRemote - TODO
457  UpdateVisualState();
458  }
459 
460  override void Close()
461  {
462  m_Openable.Close();
463  //GetInventory().LockInventory(HIDE_INV_FROM_SCRIPT);
464 
465  m_RoofAbove = true;
466 
468  //SetSynchDirty(); //! called also in SoundSynchRemote - TODO
469  UpdateVisualState();
470  }
471 
472  override bool IsOpen()
473  {
474  return m_Openable.IsOpened();
475  }
476 
477  protected void UpdateVisualState()
478  {
479  if ( IsOpen() )
480  {
481  SetAnimationPhase( ANIMATION_OPENED, 0 );
482  SetAnimationPhase( ANIMATION_CLOSED, 1 );
483  }
484  else
485  {
486  SetAnimationPhase( ANIMATION_OPENED, 1 );
487  SetAnimationPhase( ANIMATION_CLOSED, 0 );
488  }
489  }
490 
491  //Can extinguish fire
492  override bool CanExtinguishFire()
493  {
494  if ( IsOpen() && IsBurning() )
495  {
496  return true;
497  }
498 
499  return false;
500  }
501 
502  //particles
503  override bool CanShowSmoke()
504  {
505  return IsOpen();
506  }
507 
508  // Item-to-item fire distribution
509  override bool HasFlammableMaterial()
510  {
511  return true;
512  }
513 
514  override bool CanBeIgnitedBy( EntityAI igniter = NULL )
515  {
516  if ( HasAnyKindling() && !IsBurning() && IsOpen() && !GetHierarchyParent() )
517  {
518  return true;
519  }
520 
521  return false;
522  }
523 
524  override bool CanIgniteItem( EntityAI ignite_target = NULL )
525  {
526  if ( IsBurning() && IsOpen() )
527  {
528  return true;
529  }
530 
531  return false;
532  }
533 
534  override bool IsIgnited()
535  {
536  return IsBurning();
537  }
538 
539  override void OnIgnitedTarget( EntityAI ignited_item )
540  {
541  }
542 
543  override void OnIgnitedThis( EntityAI fire_source )
544  {
545  //remove grass
546  Object cc_object = GetGame().CreateObjectEx( OBJECT_CLUTTER_CUTTER , GetPosition(), ECE_PLACE_ON_SURFACE );
547  cc_object.SetOrientation ( GetOrientation() );
548  GetGame().GetCallQueue( CALL_CATEGORY_GAMEPLAY ).CallLater( DestroyClutterCutter, 0.2, false, cc_object );
549 
550  //start fire
551  StartFire();
552  }
553 
555  {
556  EffectSound sound = SEffectManager.PlaySound( "barrel_open_SoundSet", GetPosition() );
557  sound.SetSoundAutodestroy( true );
558  m_LastSoundPlayed = SOUND_OPENING;
559  }
560 
562  {
563  EffectSound sound = SEffectManager.PlaySound( "barrel_close_SoundSet", GetPosition() );
564  sound.SetSoundAutodestroy( true );
565  m_LastSoundPlayed = SOUND_CLOSING;
566  }
567 
568  void DestroyClutterCutter( Object clutter_cutter )
569  {
570  GetGame().ObjectDelete( clutter_cutter );
571  }
572 
573  override bool IsThisIgnitionSuccessful( EntityAI item_source = NULL )
574  {
575  //check kindling
576  if ( !HasAnyKindling() && IsOpen() )
577  {
578  return false;
579  }
580 
581  //check roof
582  /*if ( !IsCeilingHighEnoughForSmoke() && IsOnInteriorSurface() )
583  {
584  return false;
585  }*/
586 
587  //check surface
588  if ( IsOnWaterSurface() )
589  {
590  return false;
591  }
592 
593  return true;
594  }
595 
596  //================================================================
597  // ADVANCED PLACEMENT
598  //================================================================
599 
600  override string GetPlaceSoundset()
601  {
602  return "placeBarrel_SoundSet";
603  }
604 
605  override void SetActions()
606  {
608  super.SetActions();
609 
613  //AddAction(ActionLightItemOnFire);
616  }
617 }
ItemBase
Definition: InventoryItem.c:445
FireplaceBase::IsOpen
override bool IsOpen()
Definition: BarrelHoles_ColorBase.c:472
ParticleList::BARREL_SMALL_SMOKE
static const int BARREL_SMALL_SMOKE
Definition: ParticleList.c:46
ParticleList::BARREL_FIRE_START
static const int BARREL_FIRE_START
Definition: ParticleList.c:44
GetGame
proto native CGame GetGame()
ATTACHMENT_COOKING_POT
ATTACHMENT_COOKING_POT
Definition: FireplaceBase.c:190
GetFireConsumableByItem
protected FireConsumable GetFireConsumableByItem(ItemBase item)
Definition: FireplaceBase.c:1201
FireplaceBase::CanReleaseAttachment
override bool CanReleaseAttachment(EntityAI attachment)
Definition: BarrelHoles_ColorBase.c:159
FireplaceBase::BarrelHoles_ColorBase
void BarrelHoles_ColorBase()
Definition: BarrelHoles_ColorBase.c:15
FireplaceBase::OnIgnitedThis
override void OnIgnitedThis(EntityAI fire_source)
Definition: BarrelHoles_ColorBase.c:543
ATTACHMENT_FRYING_PAN
ATTACHMENT_FRYING_PAN
Definition: FireplaceBase.c:191
CALL_CATEGORY_GAMEPLAY
const int CALL_CATEGORY_GAMEPLAY
Definition: tools.c:10
IsCargoEmpty
bool IsCargoEmpty()
Definition: FireplaceBase.c:2419
PARTICLE_NORMAL_SMOKE
protected int PARTICLE_NORMAL_SMOKE
Definition: FireplaceBase.c:109
GameConstants::STATE_RUINED
const int STATE_RUINED
Definition: constants.c:600
HasAnyKindling
bool HasAnyKindling()
Definition: FireplaceBase.c:2289
FireplaceBase::CanPutIntoHands
override bool CanPutIntoHands(EntityAI parent)
Definition: BarrelHoles_ColorBase.c:401
FireplaceBase::CanPutInCargo
override bool CanPutInCargo(EntityAI parent)
Definition: BarrelHoles_ColorBase.c:356
DirectCookingSlotsInUse
bool DirectCookingSlotsInUse()
Definition: FireplaceBase.c:453
ActionOpenBarrelHoles
Definition: ActionOpenBarrelHoles.c:1
Open
void Open()
Implementations only.
Definition: ItemBase.c:3687
IsSoundSynchRemote
bool IsSoundSynchRemote()
Definition: ItemBase.c:3943
CGame::ObjectDelete
proto native void ObjectDelete(Object obj)
ActionPlaceObject
Definition: ActionPlaceObject.c:14
FireplaceBase::m_Openable
protected ref OpenableBehaviour m_Openable
Definition: BarrelHoles_ColorBase.c:13
FireplaceBase::DestroyClutterCutter
void DestroyClutterCutter(Object clutter_cutter)
Definition: BarrelHoles_ColorBase.c:568
OBJECT_CLUTTER_CUTTER
const string OBJECT_CLUTTER_CUTTER
Definition: FireplaceBase.c:193
ActionAttachOnSelection
Definition: ActionAttachOnSelection.c:1
ParticleList::BARREL_SMALL_FIRE
static const int BARREL_SMALL_FIRE
Definition: ParticleList.c:45
AddAction
void AddAction(typename actionName)
Definition: AdvancedCommunication.c:86
GetHierarchyRootPlayer
proto native Man GetHierarchyRootPlayer()
Returns root of current hierarchy cast to Man.
FireplaceBase::GetPlaceSoundset
override string GetPlaceSoundset()
Definition: BarrelHoles_ColorBase.c:600
FireplaceBase::CanIgniteItem
override bool CanIgniteItem(EntityAI ignite_target=NULL)
Definition: BarrelHoles_ColorBase.c:524
CGame::GetCallQueue
ScriptCallQueue GetCallQueue(int call_category)
Returns CallQueue for certain category.
Definition: Game.c:1191
m_DirectCookingSlots
protected ItemBase m_DirectCookingSlots[DIRECT_COOKING_SLOT_COUNT]
Definition: FireplaceBase.c:98
AddToFireConsumables
protected void AddToFireConsumables(ItemBase item)
Definition: FireplaceBase.c:1169
FireplaceBase::EEItemAttached
override void EEItemAttached(EntityAI item, string slot_name)
Definition: BarrelHoles_ColorBase.c:214
FireplaceBase::CanRemoveFromCargo
override bool CanRemoveFromCargo(EntityAI parent)
Definition: BarrelHoles_ColorBase.c:367
ItemBase::CanLoadAttachment
override bool CanLoadAttachment(EntityAI attachment)
Definition: BatteryCharger.c:260
FireplaceBase::EEItemDetached
override void EEItemDetached(EntityAI item, string slot_name)
Definition: BarrelHoles_ColorBase.c:282
Bottle_Base
Definition: CanisterGasoline.c:1
FireplaceBase
Definition: BarrelHoles_ColorBase.c:1
FireplaceBase::OnStoreSave
override void OnStoreSave(ParamsWriteContext ctx)
Definition: BarrelHoles_ColorBase.c:50
SEffectManager::PlaySound
static EffectSound PlaySound(string sound_set, vector position, float play_fade_in=0, float stop_fade_out=0, bool loop=false)
Definition: EffectManager.c:61
IsOnWaterSurface
bool IsOnWaterSurface()
Definition: FireplaceBase.c:2385
PARTICLE_FIRE_START
protected int PARTICLE_FIRE_START
Definition: FireplaceBase.c:103
FireplaceBase::CanBeIgnitedBy
override bool CanBeIgnitedBy(EntityAI igniter=NULL)
Definition: BarrelHoles_ColorBase.c:514
HasLastFuelKindlingAttached
bool HasLastFuelKindlingAttached()
Definition: FireplaceBase.c:1442
ActionTogglePlaceObject
Definition: ActionTogglePlaceObject.c:1
FireplaceBase::CanDisplayAttachmentCategory
override bool CanDisplayAttachmentCategory(string category_name)
Definition: BarrelHoles_ColorBase.c:425
ParticleList::BARREL_FIRE_END
static const int BARREL_FIRE_END
Definition: ParticleList.c:49
Serializer::Write
proto bool Write(void value_out)
Serializer
Serialization general interface.
Definition: Serializer.c:55
FireplaceBase::SetActions
override void SetActions()
Definition: BarrelHoles_ColorBase.c:605
FireplaceBase::IsBarrelWithHoles
override bool IsBarrelWithHoles()
Definition: BarrelHoles_ColorBase.c:80
RefreshFireplaceVisuals
void RefreshFireplaceVisuals()
Definition: FireplaceBase.c:488
EffectSound
Definition: EffectSound.c:1
ParticleList
Definition: ParticleList.c:11
GetHierarchyParent
proto native EntityAI GetHierarchyParent()
Returns direct parent of current entity.
FireplaceBase::UpdateVisualState
protected void UpdateVisualState()
Definition: BarrelHoles_ColorBase.c:477
Close
void Close()
Definition: ItemBase.c:3688
PARTICLE_FIRE_END
protected int PARTICLE_FIRE_END
Definition: FireplaceBase.c:110
ActionCloseBarrelHoles
Definition: ActionCloseBarrelHoles.c:1
FireplaceBase::CanReceiveAttachment
override bool CanReceiveAttachment(EntityAI attachment, int slotId)
Definition: BarrelHoles_ColorBase.c:120
FireplaceBase::SoundBarrelClosePlay
void SoundBarrelClosePlay()
Definition: BarrelHoles_ColorBase.c:561
FireplaceBase::IsThisIgnitionSuccessful
override bool IsThisIgnitionSuccessful(EntityAI item_source=NULL)
Definition: BarrelHoles_ColorBase.c:573
FireplaceBase::Close
override void Close()
Definition: BarrelHoles_ColorBase.c:460
IsOpen
override bool IsOpen()
Definition: FireplaceBase.c:2337
Object
Definition: ObjectTyped.c:1
FireplaceBase::CanShowSmoke
override bool CanShowSmoke()
Definition: BarrelHoles_ColorBase.c:503
ParticleList::BARREL_NORMAL_FIRE
static const int BARREL_NORMAL_FIRE
Definition: ParticleList.c:47
FireplaceBase::Open
override void Open()
Definition: BarrelHoles_ColorBase.c:448
m_LightDistance
protected float m_LightDistance
Definition: FireplaceBase.c:94
IsKindling
protected bool IsKindling(ItemBase item)
Definition: FireplaceBase.c:1383
HasLastAttachment
bool HasLastAttachment()
Definition: FireplaceBase.c:1431
version
version
Definition: $PBOPREFIX$.txt:4
OpenableBehaviour
Definition: OpenableBehaviour.c:1
FireplaceBase::HasFlammableMaterial
override bool HasFlammableMaterial()
Definition: BarrelHoles_ColorBase.c:509
FireplaceBase::EEInit
override void EEInit()
Definition: BarrelHoles_ColorBase.c:42
RegisterNetSyncVariableBool
proto native void RegisterNetSyncVariableBool(string variableName)
ParticleList::BARREL_NORMAL_SMOKE
static const int BARREL_NORMAL_SMOKE
Definition: ParticleList.c:48
IsBurning
bool IsBurning()
Definition: FireplaceBase.c:1459
FireplaceBase::CanLoadAttachment
override bool CanLoadAttachment(EntityAI attachment)
Definition: BarrelHoles_ColorBase.c:146
IsBeingPlaced
bool IsBeingPlaced()
Definition: EntityAI.c:1101
CGame::CreateObjectEx
proto native Object CreateObjectEx(string type, vector pos, int iFlags, int iRotation=RF_DEFAULT)
Creates object of certain type.
FireplaceBase::CanLoadItemIntoCargo
override bool CanLoadItemIntoCargo(EntityAI item)
Definition: BarrelHoles_ColorBase.c:384
FireplaceBase::OnVariablesSynchronized
override void OnVariablesSynchronized()
Definition: BarrelHoles_ColorBase.c:85
ScriptCallQueue::CallLater
proto void CallLater(func fn, int delay=0, bool repeat=false, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
adds call into the queue with given parameters and arguments (arguments are holded in memory until th...
RemoveFromFireConsumables
protected void RemoveFromFireConsumables(FireConsumable fire_consumable)
Definition: FireplaceBase.c:1190
FireplaceBase::CanReleaseCargo
override bool CanReleaseCargo(EntityAI cargo)
Definition: BarrelHoles_ColorBase.c:395
ProcessInvulnerabilityCheck
void ProcessInvulnerabilityCheck(string servercfg_param)
Definition: EntityAI.c:2190
FireplaceBase::OnIgnitedTarget
override void OnIgnitedTarget(EntityAI ignited_item)
Definition: BarrelHoles_ColorBase.c:539
PARTICLE_STEAM_END
protected int PARTICLE_STEAM_END
Definition: FireplaceBase.c:112
GameConstants
Definition: constants.c:474
FireplaceBase::CanDisplayCargo
override bool CanDisplayCargo()
Definition: BarrelHoles_ColorBase.c:413
PARTICLE_SMALL_SMOKE
protected int PARTICLE_SMALL_SMOKE
Definition: FireplaceBase.c:108
Serializer::Read
proto bool Read(void value_in)
ActionTakeFireplaceFromBarrel
Definition: ActionTakeFireplaceFromBarrel.c:1
FireplaceBase::SoundBarrelOpenPlay
void SoundBarrelOpenPlay()
Definition: BarrelHoles_ColorBase.c:554
FireplaceBase::CanReceiveItemIntoCargo
override bool CanReceiveItemIntoCargo(EntityAI item)
Definition: BarrelHoles_ColorBase.c:373
IsFuel
protected bool IsFuel(ItemBase item)
Definition: FireplaceBase.c:1395
ECE_PLACE_ON_SURFACE
const int ECE_PLACE_ON_SURFACE
Definition: CentralEconomy.c:33
SoundSynchRemote
void SoundSynchRemote()
Definition: ItemBase.c:3936
FireplaceBase::m_LastSoundPlayed
protected int m_LastSoundPlayed
Definition: BarrelHoles_ColorBase.c:11
RefreshFireParticlesAndSounds
protected void RefreshFireParticlesAndSounds(bool force_refresh)
Definition: FireplaceBase.c:670
StartFire
void StartFire(bool force_start=false)
Definition: FireplaceBase.c:1596
PARTICLE_SMALL_FIRE
protected int PARTICLE_SMALL_FIRE
Definition: FireplaceBase.c:105
FireplaceBase::GetDamageSystemVersionChange
override int GetDamageSystemVersionChange()
Definition: BarrelHoles_ColorBase.c:37
FireplaceBase::CanExtinguishFire
override bool CanExtinguishFire()
Definition: BarrelHoles_ColorBase.c:492
PARTICLE_NORMAL_FIRE
protected int PARTICLE_NORMAL_FIRE
Definition: FireplaceBase.c:106
SEffectManager
Definition: EffectManager.c:1
FireplaceBase::IsIgnited
override bool IsIgnited()
Definition: BarrelHoles_ColorBase.c:534
m_RoofAbove
protected bool m_RoofAbove
Definition: FireplaceBase.c:22
EntityAI
Base native class of all vehicles in game.
Definition: Building.c:4
FireplaceBase::OnStoreLoad
override bool OnStoreLoad(ParamsReadContext ctx, int version)
Definition: BarrelHoles_ColorBase.c:57
m_SmokingSlots
protected ItemBase m_SmokingSlots[SMOKING_SLOT_COUNT]
Definition: FireplaceBase.c:99
EffectSound::SetSoundAutodestroy
void SetSoundAutodestroy(bool auto_destroy)
Definition: EffectSound.c:174
ItemBase::CanReceiveAttachment
override bool CanReceiveAttachment(EntityAI attachment, int slotId)
Definition: BaseBuildingBase.c:870
ParticleList::BARREL_FIRE_STEAM_2END
static const int BARREL_FIRE_STEAM_2END
Definition: ParticleList.c:50
BarrelHoles_ColorBase
Definition: BarrelHoles_Blue.c:1
Edible_Base
Definition: BearSteakMeat.c:1