Skip to content

Commit

Permalink
Compat RF - Field Rations - Watersource Offsets (#10282)
Browse files Browse the repository at this point in the history
* Update config.cpp

* Create CfgVehicles.hpp

* Update CfgVehicles.hpp

* Update CfgVehicles.hpp

* remove empty line2

* macro'fied

* Update config.cpp

* Update addons/compat_rf/CfgVehicles.hpp

Co-authored-by: PabstMirror <pabstmirror@gmail.com>

* Update addons/compat_rf/CfgVehicles.hpp

Co-authored-by: PabstMirror <pabstmirror@gmail.com>

* Update addons/compat_rf/CfgVehicles.hpp

Co-authored-by: PabstMirror <pabstmirror@gmail.com>

* Update addons/compat_rf/CfgVehicles.hpp

Co-authored-by: PabstMirror <pabstmirror@gmail.com>

* Update addons/compat_rf/CfgVehicles.hpp

Co-authored-by: Mike-MF <TyroneMF@hotmail.com>

* Update addons/compat_rf/CfgVehicles.hpp

Co-authored-by: Mike-MF <TyroneMF@hotmail.com>

* Update addons/compat_rf/CfgVehicles.hpp

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update addons/compat_rf/CfgVehicles.hpp

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update addons/compat_rf/CfgVehicles.hpp

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

---------

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
Co-authored-by: Mike-MF <TyroneMF@hotmail.com>
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
  • Loading branch information
4 people authored Sep 8, 2024
1 parent 067f5f8 commit 36b9835
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
25 changes: 25 additions & 0 deletions addons/compat_rf/CfgVehicles.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
class CfgVehicles {
// Applies the offset to all RF Offroads which can have the optional tank in the back
class Offroad_01_unarmed_base_F;
class Pickup_01_base_rf: Offroad_01_unarmed_base_F {
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 {
EXGVAR(field_rations,waterSupply) = 500;
};

class O_Truck_03_fuel_F;
class C_Truck_03_water_rf: O_Truck_03_fuel_F {
EXGVAR(field_rations,waterSupply) = 10000;
EXGVAR(field_rations,offset)[] = {0, -5.05, -0.3};
};

class B_Truck_01_fuel_F;
class C_Truck_01_water_rf: B_Truck_01_fuel_F {
EXGVAR(field_rations,waterSupply) = 10000;
EXGVAR(field_rations,offset)[] = {-0.41, -5.15, -0.3};
};
};
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"

0 comments on commit 36b9835

Please sign in to comment.