Skip to content

Commit

Permalink
RHS USAF Compat - Add RHS Jerrycan as usable Jerrycan (#8603)
Browse files Browse the repository at this point in the history
* Add RHS Jerrycan as usable Jarrycan

* Make RHS Jerrycan cargo loadable

* Support both jerrycan camo's

* Add missing canLoad property

* Update optionals/compat_rhs_usf3/CfgVehicles.hpp

Co-authored-by: jonpas <jonpas33@gmail.com>
  • Loading branch information
dedmen and jonpas committed Oct 25, 2021
1 parent 086ba5d commit b36dac7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions optionals/compat_rhs_usf3/CfgEventHandlers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@ class Extended_PreInit_EventHandlers {
init = QUOTE(call COMPILE_SCRIPT(XEH_preInit));
};
};

class Extended_InitPost_EventHandlers {
class rhsusf_props_JerryCan_Base {
class ADDON {
init = QUOTE(call EFUNC(refuel,makeJerryCan));
};
};
};
5 changes: 5 additions & 0 deletions optionals/compat_rhs_usf3/CfgVehicles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -573,4 +573,9 @@ class CfgVehicles {
displayName = "M49A1 (10m)";
model = "\rhsusf\addons\rhsusf_weapons\mines\rhsusf_m49a1_c_e";
};

class rhsusf_props_JerryCan_Base: Items_base_F {
EGVAR(cargo,canLoad) = 1;
EGVAR(cargo,size) = 1;
};
};

0 comments on commit b36dac7

Please sign in to comment.