Skip to content

Commit 6477b69

Browse files
authored
CUP Terrains Compat - Add water sources (#10642)
1 parent d69f047 commit 6477b69

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

addons/compat_cup_terrains/CfgVehicles.hpp

+16
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,20 @@ class CfgVehicles {
5353
// "vehicle service point" (a conex /w barrels) - need hooks???
5454
XEH_INHERITED;
5555
};
56+
57+
class Land_stand_waterl_EP1: House_EP1 {
58+
EXGVAR(field_rations,waterSupply) = 250;
59+
EXGVAR(field_rations,offset)[] = {0, -0.33, 0.4};
60+
};
61+
62+
class Land_pumpa: House {
63+
EXGVAR(field_rations,waterSupply) = -10;
64+
EXGVAR(field_rations,offset)[] = {0.3, 0, 0.68};
65+
};
66+
67+
class Thing;
68+
class Land_Barrel_water: Thing {
69+
EXGVAR(field_rations,waterSupply) = 160;
70+
EXGVAR(field_rations,offset)[] = {0, 0, 0.25};
71+
};
5672
};

addons/compat_cup_terrains/config.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class CfgPatches {
1313
"CAStructures_E_Ind_Ind_FuelStation",
1414
"CAStructures_PMC_FuelStation",
1515
"CUP_Buildings_Config",
16-
"ace_refuel" // not a sub-component because it's all this compat does
16+
"ace_common"
1717
};
1818
skipWhenMissingDependencies = 1;
1919
author = ECSTRING(common,ACETeam);

addons/dragging/CfgVehicles.hpp

+5
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,11 @@ class CfgVehicles {
350350
GVAR(canDrag) = 1;
351351
GVAR(dragPosition)[] = {0,1,0};
352352
};
353+
class Land_BarrelWater_grey_F: Items_base_F {
354+
EGVAR(interaction,replaceTerrainObject) = 1;
355+
GVAR(canDrag) = 1;
356+
GVAR(dragPosition)[] = {0,1,0};
357+
};
353358
class Land_Bucket_F: Items_base_F {
354359
EGVAR(interaction,replaceTerrainObject) = 1;
355360
GVAR(canCarry) = 1;

0 commit comments

Comments
 (0)