mich2001helmet.c 806 B

12345678910111213141516171819202122232425262728293031
  1. class Mich2001Helmet extends HelmetBase
  2. {
  3. override void SetActions()
  4. {
  5. super.SetActions();
  6. AddAction(ActionTurnOnHelmetFlashlight); //use default light actions instead?
  7. AddAction(ActionTurnOffHelmetFlashlight);
  8. AddAction(ActionToggleNVG);
  9. }
  10. //Debug menu Spawn Ground Special
  11. override void OnDebugSpawn()
  12. {
  13. EntityAI entity;
  14. if ( Class.CastTo(entity, this) )
  15. {
  16. entity.GetInventory().CreateInInventory( "NVGoggles" );
  17. entity.GetInventory().CreateInInventory( "UniversalLight" );
  18. entity.GetInventory().CreateInInventory( "Battery9V" );
  19. entity.GetInventory().CreateInInventory( "Battery9V" );
  20. }
  21. }
  22. override protected void InitGlobalExclusionValues()
  23. {
  24. super.InitGlobalExclusionValues();
  25. AddSingleExclusionValueGlobal(EAttExclusions.EXCLUSION_HEADSTRAP_0);
  26. }
  27. };