Skip to content

Commit

Permalink
Repair - Improve some locations for interaction anims (#10224)
Browse files Browse the repository at this point in the history
Improve some locations for interaction anims
  • Loading branch information
johnb432 committed Aug 20, 2024
1 parent c292f0e commit 0643ca6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions addons/repair/CfgVehicles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,8 @@ class CfgVehicles {
class EGVAR(interaction,anims) {
class showTracks {
phase = 0;
positions[] = {{-1.7, -3.875, -0.7}, {1.7, -3.875, -0.7}};
selections[] = {"vhc_tracks"};
positions[] = {"private _pos = _target selectionPosition 'vhc_tracks'; _pos set [0, -(_pos select 0)]; _pos"}; // Mirror position to other side of vehicle
items[] = {"ACE_Track", "ACE_Track", "ACE_Track"};
name = CSTRING(RemoveTrack);
text = CSTRING(RemovingTrack);
Expand All @@ -448,7 +449,7 @@ class CfgVehicles {
class Offroad_02_base_F: Car_F {
class EGVAR(interaction,anims) {
class hideSpareWheel {
selections[] = {"spare_wheel"};
positions[] = {"_target selectionPosition ['spare_wheel', 'ViewGeometry', 'AveragePoint']"};
items[] = {"ACE_Wheel"};
name = CSTRING(RemoveWheel);
text = CSTRING(RemovingWheel);
Expand Down Expand Up @@ -505,7 +506,7 @@ class CfgVehicles {
class Van_02_base_F: Truck_F {
class EGVAR(interaction,anims) {
class spare_tyre_hide {
positions[] = {"[[-1.2, -3.7, -0.4], [-0.45, -3.5, -0.4]] select (_target animationPhase 'Door_4_source' == 0)"};
positions[] = {"_target selectionPosition ['spare_tyre', 'ViewGeometry', 'AveragePoint']"};
items[] = {"ACE_Wheel"};
name = CSTRING(RemoveWheel);
text = CSTRING(RemovingWheel);
Expand Down

0 comments on commit 0643ca6

Please sign in to comment.