cartent.c 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. class CarTent extends TentBase
  2. {
  3. void CarTent()
  4. {
  5. m_ToggleAnimations.Insert( new ToggleAnimations("EntranceO", "EntranceC", OPENING_0), 0 );
  6. m_ShowAnimationsWhenPitched.Insert( "Body" );
  7. //m_ShowAnimationsWhenPitched.Insert( "EntranceO" );
  8. m_ShowAnimationsWhenPitched.Insert( "Pack" );
  9. m_ShowAnimationsWhenPacked.Insert( "Inventory" );
  10. m_HalfExtents = Vector(1.8, 0.33, 3.4);
  11. }
  12. override void EEInit()
  13. {
  14. super.EEInit();
  15. }
  16. override void OnItemLocationChanged(EntityAI old_owner, EntityAI new_owner)
  17. {
  18. super.OnItemLocationChanged(old_owner, new_owner);
  19. }
  20. override string GetSoundOpen()
  21. {
  22. return "CarTent_Door_Open_SoundSet";
  23. }
  24. override string GetSoundClose()
  25. {
  26. return "CarTent_Door_Close_SoundSet";
  27. }
  28. override bool HasClutterCutter()
  29. {
  30. return false;
  31. }
  32. //================================================================
  33. // ADVANCED PLACEMENT
  34. //================================================================
  35. override bool IsDeployable()
  36. {
  37. return true;
  38. }
  39. override string GetDeploySoundset()
  40. {
  41. return "placeCarTent_SoundSet";
  42. }
  43. override string GetLoopDeploySoundset()
  44. {
  45. return "cartent_deploy_SoundSet";
  46. }
  47. };