camonet_changer.hpp 920 B

123456789101112131415161718192021222324252627
  1. #define macro_camonet_changer(texture_index) class ACE_SelfActions;\
  2. class ACE_SelfActions: ACE_SelfActions\
  3. {\
  4. class RD501_Camonet_Changer\
  5. {\
  6. displayName="Change Camonet";\
  7. exceptions[]={"isNotInside","isNotSwimming","isNotSitting"};\
  8. condition="!(isNull objectParent player) && (driver (vehicle player)==player)";\
  9. showDisabled=0;\
  10. priority=2;\
  11. class RD501_Camonet_desert\
  12. {\
  13. displayName="Desert";\
  14. exceptions[]={"isNotInside","isNotSwimming","isNotSitting"};\
  15. condition="!(isNull objectParent player)";\
  16. statement="_target setObjectTextureGlobal [" texture_index ",'a3\Armor_F\Data\camonet_NATO_Desert_CO.paa']";\
  17. showDisabled=0;\
  18. runOnHover=1;\
  19. priority=2.5;\
  20. };\
  21. class RD501_Camonet_green: RD501_Camonet_desert\
  22. {\
  23. displayName="Green";\
  24. statement="_target setObjectTextureGlobal [" texture_index ", 'A3\Armor_F\Data\camonet_AAF_Digi_Green_CO.paa']";\
  25. };\
  26. };\
  27. };