mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Add CUP Terrains Compatibility (#9627)
Co-authored-by: PabstMirror <pabstmirror@gmail.com> Co-authored-by: jonpas <jonpas33@gmail.com>
This commit is contained in:
parent
b54992b8fc
commit
5a3f3d3b82
1
addons/compat_cup_terrains/$PBOPREFIX$
Normal file
1
addons/compat_cup_terrains/$PBOPREFIX$
Normal file
@ -0,0 +1 @@
|
||||
z\ace\addons\compat_cup_terrains
|
5
addons/compat_cup_terrains/CfgEventHandlers.hpp
Normal file
5
addons/compat_cup_terrains/CfgEventHandlers.hpp
Normal file
@ -0,0 +1,5 @@
|
||||
class Extended_PostInit_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE(call COMPILE_SCRIPT(XEH_postInit));
|
||||
};
|
||||
};
|
48
addons/compat_cup_terrains/CfgVehicles.hpp
Normal file
48
addons/compat_cup_terrains/CfgVehicles.hpp
Normal file
@ -0,0 +1,48 @@
|
||||
class CfgVehicles {
|
||||
class House;
|
||||
class House_Small_F;
|
||||
class Strategic;
|
||||
class House_EP1: House {};
|
||||
|
||||
class Land_Benzina_schnell: House {
|
||||
transportFuel = 0;
|
||||
EGVAR(refuel,hooks)[] = {{-1.5,-3.93,-1.25}, {2.35,-3.93,-1.25}};
|
||||
EGVAR(refuel,fuelCargo) = REFUEL_INFINITE_FUEL;
|
||||
class ACE_Actions {
|
||||
class ACE_MainActions {
|
||||
displayName = ECSTRING(interaction,MainAction);
|
||||
position = "[0,-3.93,-1.25]";
|
||||
distance = 5;
|
||||
condition = "true";
|
||||
};
|
||||
};
|
||||
};
|
||||
class Land_A_FuelStation_Feed: Strategic {
|
||||
transportFuel = 0;
|
||||
EGVAR(refuel,hooks)[] = {{-0.34,0,0}, {0.34,0,0}};
|
||||
EGVAR(refuel,fuelCargo) = REFUEL_INFINITE_FUEL;
|
||||
};
|
||||
class Land_Ind_FuelStation_Feed_EP1: House_EP1 {
|
||||
transportFuel = 0;
|
||||
EGVAR(refuel,hooks)[] = {{-0.34,0,0}, {0.34,0,0}};
|
||||
EGVAR(refuel,fuelCargo) = REFUEL_INFINITE_FUEL;
|
||||
};
|
||||
class Land_FuelStation_Feed_PMC: Strategic {
|
||||
transportFuel = 0;
|
||||
EGVAR(refuel,hooks)[] = {{-0.34,0,0}, {0.34,0,0}};
|
||||
EGVAR(refuel,fuelCargo) = REFUEL_INFINITE_FUEL;
|
||||
};
|
||||
class FuelStation: House_Small_F {
|
||||
transportFuel = 0;
|
||||
EGVAR(refuel,hooks)[] = {{1.25, .2, -1.1}};
|
||||
EGVAR(refuel,fuelCargo) = REFUEL_INFINITE_FUEL;
|
||||
class ACE_Actions {
|
||||
class ACE_MainActions {
|
||||
displayName = ECSTRING(interaction,MainAction);
|
||||
position = "[1.25, .2, -1]";
|
||||
distance = 5;
|
||||
condition = "true";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
5
addons/compat_cup_terrains/XEH_postInit.sqf
Normal file
5
addons/compat_cup_terrains/XEH_postInit.sqf
Normal file
@ -0,0 +1,5 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
if (["CUP_Terrains_ACE_compat"] call EFUNC(common,isModLoaded)) exitWith {
|
||||
ERROR_WITH_TITLE("Duplicate CUP/ACE Compats","Compats are now part of ACE - Uninstall 'CUP ACE3 Compatibility Addon - Terrains'");
|
||||
};
|
27
addons/compat_cup_terrains/config.cpp
Normal file
27
addons/compat_cup_terrains/config.cpp
Normal file
@ -0,0 +1,27 @@
|
||||
#include "script_component.hpp"
|
||||
#include "\z\ace\addons\refuel\defines.hpp"
|
||||
|
||||
class CfgPatches {
|
||||
class ADDON {
|
||||
name = COMPONENT_NAME;
|
||||
units[] = {};
|
||||
weapons[] = {};
|
||||
requiredVersion = REQUIRED_VERSION;
|
||||
requiredAddons[] = {
|
||||
"CABuildings",
|
||||
"CAStructuresHouse_A_FuelStation",
|
||||
"CAStructures_E_Ind_Ind_FuelStation",
|
||||
"CAStructures_PMC_FuelStation",
|
||||
"CUP_Buildings_Config",
|
||||
"ace_refuel" // not a sub-component because it's all this compat does
|
||||
};
|
||||
skipWhenMissingDependencies = 1;
|
||||
author = ECSTRING(common,ACETeam);
|
||||
authors[] = {"Community Upgrade Project", "Mike"};
|
||||
url = ECSTRING(main,URL);
|
||||
VERSION_CONFIG;
|
||||
};
|
||||
};
|
||||
|
||||
#include "CfgVehicles.hpp"
|
||||
#include "CfgEventHandlers.hpp"
|
5
addons/compat_cup_terrains/script_component.hpp
Normal file
5
addons/compat_cup_terrains/script_component.hpp
Normal file
@ -0,0 +1,5 @@
|
||||
#define COMPONENT compat_cup_terrains
|
||||
#define COMPONENT_BEAUTIFIED CUP Terrains Compatibility
|
||||
|
||||
#include "\z\ace\addons\main\script_mod.hpp"
|
||||
#include "\z\ace\addons\main\script_macros.hpp"
|
Loading…
Reference in New Issue
Block a user