Skip to content

Commit

Permalink
Add water sources to CUP terrains compat
Browse files Browse the repository at this point in the history
  • Loading branch information
johnb432 committed Jan 12, 2025
1 parent d69f047 commit 47a4a7a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
16 changes: 16 additions & 0 deletions addons/compat_cup_terrains/CfgVehicles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,20 @@ class CfgVehicles {
// "vehicle service point" (a conex /w barrels) - need hooks???
XEH_INHERITED;
};

class Land_stand_waterl_EP1: House_EP1 {
EXGVAR(field_rations,waterSupply) = 250;
EXGVAR(field_rations,offset)[] = {0, -0.33, 0.4};
};

class Land_pumpa: House {
EXGVAR(field_rations,waterSupply) = -10;
EXGVAR(field_rations,offset)[] = {0.3, 0, 0.68};
};

class Thing;
class Land_Barrel_water: Thing {
EXGVAR(field_rations,waterSupply) = 160;
EXGVAR(field_rations,offset)[] = {0, 0, 0.25};
};
};
2 changes: 1 addition & 1 deletion addons/compat_cup_terrains/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CfgPatches {
"CAStructures_E_Ind_Ind_FuelStation",
"CAStructures_PMC_FuelStation",
"CUP_Buildings_Config",
"ace_refuel" // not a sub-component because it's all this compat does
"ace_common"
};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
Expand Down
5 changes: 5 additions & 0 deletions addons/dragging/CfgVehicles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,11 @@ class CfgVehicles {
GVAR(canDrag) = 1;
GVAR(dragPosition)[] = {0,1,0};
};
class Land_BarrelWater_grey_F: Items_base_F {
EGVAR(interaction,replaceTerrainObject) = 1;
GVAR(canDrag) = 1;
GVAR(dragPosition)[] = {0,1,0};
};
class Land_Bucket_F: Items_base_F {
EGVAR(interaction,replaceTerrainObject) = 1;
GVAR(canCarry) = 1;
Expand Down

0 comments on commit 47a4a7a

Please sign in to comment.