SPE Compat - Fix Spearhead 1944 fuel drums for refuel system (#9507)

This commit is contained in:
Bob-Murphy 2023-10-17 16:37:18 +02:00 committed by GitHub
parent 5686647b57
commit ed1ef14749
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 14 deletions

View File

@ -4,5 +4,4 @@ class CfgVehicles {
#include "CfgVehicles\spe_boxes.hpp"
#include "CfgVehicles\tracked.hpp"
#include "CfgVehicles\wheeled.hpp"
#include "CfgVehicles\land.hpp"
};

View File

@ -1,13 +0,0 @@
// fuel objects
class SPE_items_base;
class Land_SPE_Fuel_Barrel_German: SPE_items_base {
transportFuel = 0;
EGVAR(refuel,hooks)[] = {{0, 0, 0.5}}; // reference is Land_FlexibleTank_01_F
EGVAR(refuel,fuelCargo) = 300; // reference is Land_FlexibleTank_01_F
};
class Land_SPE_Fuel_Barrel_US: SPE_items_base {
transportFuel = 0;
EGVAR(refuel,hooks)[] = {{0, 0, 0.5}}; // reference is Land_FlexibleTank_01_F
EGVAR(refuel,fuelCargo) = 300; // reference is Land_FlexibleTank_01_F
};

View File

@ -31,5 +31,17 @@ class SPE_Fuel_Barrel_US_01: SPE_Fuel_Barrel_base {
EGVAR(refuel,hooks)[] = {{0.2,0,0.22}};
};
class SPE_Fuel_Barrel_German_01: SPE_Fuel_Barrel_base {
EGVAR(cargo,size) = 2; //reference SPE_Fuel_Barrel_US_01
EGVAR(cargo,canLoad) = 1; //reference SPE_Fuel_Barrel_US_01
EGVAR(dragging,canCarry) = 1; //reference SPE_Fuel_Barrel_US_01
EGVAR(dragging,carryPosition)[] = {0,1,1}; //reference SPE_Fuel_Barrel_US_01
EGVAR(dragging,carryDirection) = 0; //reference SPE_Fuel_Barrel_US_01
EGVAR(dragging,canDrag) = 1; //reference SPE_Fuel_Barrel_US_01
EGVAR(dragging,dragPosition)[] = {0,1.2,0}; //reference SPE_Fuel_Barrel_US_01
EGVAR(dragging,dragDirection) = 0; //reference SPE_Fuel_Barrel_US_01
EGVAR(refuel,fuelCargo) = 208; //reference SPE_Fuel_Barrel_US_01
EGVAR(refuel,hooks)[] = {{0.32,0,-0.3}};
};