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

WS Compat - Add interaction anims to WS vehicles #10229

Merged
merged 1 commit into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
45 changes: 45 additions & 0 deletions addons/compat_ws/CfgVehicles.hpp
Original file line number Diff line number Diff line change
@@ -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";
};
};
};
};
34 changes: 34 additions & 0 deletions addons/compat_ws/compat_ws_repair/CfgVehicles.hpp
Original file line number Diff line number Diff line change
@@ -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);
};
};
};
};
20 changes: 20 additions & 0 deletions addons/compat_ws/compat_ws_repair/config.cpp
Original file line number Diff line number Diff line change
@@ -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"
3 changes: 3 additions & 0 deletions addons/compat_ws/compat_ws_repair/script_component.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#define SUBCOMPONENT repair
#define SUBCOMPONENT_BEAUTIFIED Repair
#include "..\script_component.hpp"
3 changes: 2 additions & 1 deletion addons/compat_ws/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class CfgPatches {
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"data_f_lxWS_Loadorder"};
requiredAddons[] = {"data_f_lxWS_Loadorder", "ace_common"};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {"Mike"};
Expand All @@ -15,4 +15,5 @@ class CfgPatches {
};
};

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