Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compat RF - Field Rations - Watersource Offsets #10282

Merged
merged 16 commits into from
Sep 8, 2024
Merged
Show file tree
Hide file tree
Changes from 7 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
30 changes: 30 additions & 0 deletions addons/compat_rf/CfgVehicles.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
class CfgVehicles {
// applies the offset to all RF Offroads which can have the optional Tank in the back
OverlordZorn marked this conversation as resolved.
Show resolved Hide resolved
class Offroad_01_unarmed_base_F;
class Pickup_01_base_rf : Offroad_01_unarmed_base_F
{
OverlordZorn marked this conversation as resolved.
Show resolved Hide resolved
EXGVAR(field_rations,offset)[] = {-0.04, -2.45, -0.9};
};

// Enable Water Source by Default
class C_IDAP_Pickup_rf;
class C_IDAP_Pickup_water_rf: C_IDAP_Pickup_rf
{
OverlordZorn marked this conversation as resolved.
Show resolved Hide resolved
EXGVAR(field_rations,waterSupply) = 500;
};

class O_Truck_03_fuel_F;
class C_Truck_03_water_rf: O_Truck_03_fuel_F
{
OverlordZorn marked this conversation as resolved.
Show resolved Hide resolved
EXGVAR(field_rations,waterSupply) = 10000;
EXGVAR(field_rations,offset)[] = {0, -5.05, -0.3}; // Rear
//EXGVAR(field_rations,offset)[] = {1.25,-1.59,-0.58}; // Right Side Latch
OverlordZorn marked this conversation as resolved.
Show resolved Hide resolved
};

class B_Truck_01_fuel_F;
class C_Truck_01_water_rf : B_Truck_01_fuel_F
{
OverlordZorn marked this conversation as resolved.
Show resolved Hide resolved
EXGVAR(field_rations,waterSupply) = 10000;
EXGVAR(field_rations,offset)[] = {-0.41,-5.15,-0.3};
OverlordZorn marked this conversation as resolved.
Show resolved Hide resolved
};
};
3 changes: 2 additions & 1 deletion addons/compat_rf/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ class CfgPatches {
requiredAddons[] = {"RF_Data_Loadorder"};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {"Mike"};
authors[] = {"Mike", "OverlordZorn[CVO]"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};

#include "CfgWeapons.hpp"
#include "CfgVehicles.hpp"