WS Compat - Add interaction anims to WS vehicles (#10229)

This commit is contained in:
johnb432 2024-08-22 02:56:30 +02:00 committed by GitHub
parent b2091f0e4d
commit abced51bb0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 104 additions and 1 deletions

View File

@ -0,0 +1,45 @@
class CfgVehicles {
// Vehicle animation interactions
class Offroad_01_base_lxWS;
class Offroad_01_armor_base_lxWS: Offroad_01_base_lxWS {
class EGVAR(interaction,anims) {
class HideBackpacks {
positions[] = {{-1.15, -1.15, -0.7}, {1.1, -1.15, -0.7}, {1.1, -2.5, -0.7}};
items[] = {"B_TacticalPack_blk", "B_TacticalPack_blk", "B_Carryall_khk", "B_Carryall_khk"};
name = "$STR_a3_cfgvehicleclasses_backpacks0";
text = "$STR_a3_cfgvehicleclasses_backpacks0";
};
};
};
class I_G_Offroad_01_AT_F;
class Offroad_01_AT_lxWS: I_G_Offroad_01_AT_F {
class EGVAR(interaction,anims) {
class HideBackpacks {
positions[] = {{-1.15, -1.25, -0.2}, {1.1, -1.25, -0.2}, {1.1, -2.6, -0.2}};
items[] = {"B_TacticalPack_blk", "B_TacticalPack_blk", "B_Carryall_khk", "B_Carryall_khk"};
name = "$STR_a3_cfgvehicleclasses_backpacks0";
text = "$STR_a3_cfgvehicleclasses_backpacks0";
};
};
};
class Offroad_01_armor_AT_lxWS: Offroad_01_AT_lxWS {
class EGVAR(interaction,anims): EGVAR(interaction,anims) {
class HideBackpacks: HideBackpacks {
positions[] = {{-1.15, -1.25, -0.7}, {1.1, -1.25, -0.7}, {1.1, -2.6, -0.7}};
};
};
};
class I_G_Offroad_01_armed_F;
class Offroad_01_armed_lxWS: I_G_Offroad_01_armed_F {
class EGVAR(interaction,anims) {
class HideBackpacks {
positions[] = {{-1.15, -1.03, -0.8}, {1.1, -1.03, -0.8}, {1.1, -2.38, -0.8}};
items[] = {"B_TacticalPack_blk", "B_TacticalPack_blk", "B_Carryall_khk", "B_Carryall_khk"};
name = "$STR_a3_cfgvehicleclasses_backpacks0";
text = "$STR_a3_cfgvehicleclasses_backpacks0";
};
};
};
};

View File

@ -0,0 +1,34 @@
class CfgVehicles {
// Vehicle animation interactions
class Truck_02_base_F;
class Truck_02_aa_base_lxWS: Truck_02_base_F {
class EGVAR(interaction,anims) {
class hideSpareWheel {
positions[] = {{1, 1.93, -0.85}};
items[] = {"ACE_Wheel"};
name = ECSTRING(repair,RemoveWheel);
text = ECSTRING(repair,RemovingWheel);
};
};
};
class Truck_02_cargo_base_lxWS: Truck_02_base_F {
class EGVAR(interaction,anims) {
class hideSpareWheel {
positions[] = {{1, 1.93, -0.35}};
items[] = {"ACE_Wheel"};
name = ECSTRING(repair,RemoveWheel);
text = ECSTRING(repair,RemovingWheel);
};
};
};
class Truck_02_box_base_lxWS: Truck_02_base_F {
class EGVAR(interaction,anims) {
class hideSpareWheel {
positions[] = {{1, 1.7, -0.35}};
items[] = {"ACE_Wheel"};
name = ECSTRING(repair,RemoveWheel);
text = ECSTRING(repair,RemovingWheel);
};
};
};
};

View File

@ -0,0 +1,20 @@
#include "script_component.hpp"
class CfgPatches {
class SUBADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"data_f_lxWS_Loadorder", "ace_repair"};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {"johnb43"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
addonRootClass = QUOTE(ADDON);
};
};
#include "CfgVehicles.hpp"

View File

@ -0,0 +1,3 @@
#define SUBCOMPONENT repair
#define SUBCOMPONENT_BEAUTIFIED Repair
#include "..\script_component.hpp"

View File

@ -6,7 +6,7 @@ class CfgPatches {
units[] = {}; units[] = {};
weapons[] = {}; weapons[] = {};
requiredVersion = REQUIRED_VERSION; requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"data_f_lxWS_Loadorder"}; requiredAddons[] = {"data_f_lxWS_Loadorder", "ace_common"};
skipWhenMissingDependencies = 1; skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
authors[] = {"Mike"}; authors[] = {"Mike"};
@ -15,4 +15,5 @@ class CfgPatches {
}; };
}; };
#include "CfgVehicles.hpp"
#include "CfgWeapons.hpp" #include "CfgWeapons.hpp"