Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Field Rations - Add missing interaction offsets #220

Merged
merged 1 commit into from
Mar 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions addons/field_rations/CfgVehicles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,23 @@ class CfgVehicles {
class Items_base_F;
class Land_WaterBarrel_F: Items_base_F {
GVAR(waterSupply) = 200;
GVAR(offset)[] = {0, 0, 0.6};
};
class Land_BarrelWater_F: Items_base_F {
GVAR(waterSupply) = 160;
GVAR(offset)[] = {0, 0, 0.25};
};
class Land_BarrelWater_grey_F: Items_base_F {
GVAR(waterSupply) = 160;
GVAR(offset)[] = {0, 0, 0.25};
};
class Land_WaterTank_F: Items_base_F {
GVAR(waterSupply) = 600;
GVAR(offset)[] = {1.15, 0, 0.65};
};
class Land_WaterCooler_01_new_F: Items_base_F {
GVAR(waterSupply) = 20;
};
class Land_WaterCooler_01_old_F: Land_WaterCooler_01_new_F {
GVAR(waterSupply) = 20;
GVAR(offset)[] = {0, -0.13, 0.1};
};

class Infrastructure_base_F;
Expand All @@ -48,6 +50,7 @@ class CfgVehicles {
};
class Land_WaterTank_03_F: Infrastructure_base_F {
GVAR(waterSupply) = 200;
GVAR(offset)[] = {0, 0, 0.44};
};
class Land_WaterTank_04_F: Infrastructure_base_F {
GVAR(waterSupply) = 200;
Expand All @@ -57,6 +60,7 @@ class CfgVehicles {
class Stall_base_F;
class Land_StallWater_F: Stall_base_F {
GVAR(waterSupply) = 250;
GVAR(offset)[] = {0, -0.33, 0.4};
};

class StorageBladder_base_F;
Expand Down Expand Up @@ -89,6 +93,7 @@ class CfgVehicles {
class Truck_02_water_base_F;
class C_IDAP_Truck_02_water_F: Truck_02_water_base_F {
GVAR(waterSupply) = 10000;
GVAR(offset)[] = {-0.03, -3.72, -1.05};
};

class Item_Base_F;
Expand Down
2 changes: 1 addition & 1 deletion addons/field_rations/XEH_preStart.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

#include "XEH_PREP.hpp"


// List of p3d water sources (case sensitive) for objects that report `typeOf == ""`
private _waterSourceP3Ds = [
"misc_wellpump.p3d" // [11899, 9150, 0] on chenarus
];

// List of refill action offsets corresponding to the p3ds in the array above
private _waterSourceOffsets = [
[0, 0, 0]
Expand Down