diff --git a/.hemtt/missions/test.Stratis/mission.sqm b/.hemtt/missions/test.Stratis/mission.sqm index b57a27b..700656e 100644 Binary files a/.hemtt/missions/test.Stratis/mission.sqm and b/.hemtt/missions/test.Stratis/mission.sqm differ diff --git a/addons/m119/tbd_m119/CfgVehicles.hpp b/addons/m119/tbd_m119/CfgVehicles.hpp index 8835cc2..a547ee4 100644 --- a/addons/m119/tbd_m119/CfgVehicles.hpp +++ b/addons/m119/tbd_m119/CfgVehicles.hpp @@ -49,6 +49,8 @@ class CfgVehicles { class Turrets: Turrets { class MainTurret: MainTurret { + gunnerRightHandAnimName = "vertical_handpos"; + gunnerLeftHandAnimName = "horizontal_handpos"; gunnerAction = "M119pose"; gunnergetInAction = "GetInLow"; gunnergetOutAction = "GetOutLow"; diff --git a/addons/m119/tbd_m119/TBD_M119.p3d b/addons/m119/tbd_m119/TBD_M119.p3d index 34c5bce..588e0e7 100644 Binary files a/addons/m119/tbd_m119/TBD_M119.p3d and b/addons/m119/tbd_m119/TBD_M119.p3d differ diff --git a/addons/m119/tbd_m119/animations/m119pose.rtm b/addons/m119/tbd_m119/animations/m119pose.rtm index 0ff284c..7f86f3a 100644 Binary files a/addons/m119/tbd_m119/animations/m119pose.rtm and b/addons/m119/tbd_m119/animations/m119pose.rtm differ diff --git a/addons/m119/tbd_m119/model.cfg b/addons/m119/tbd_m119/model.cfg index 47834d2..9a00895 100644 --- a/addons/m119/tbd_m119/model.cfg +++ b/addons/m119/tbd_m119/model.cfg @@ -27,7 +27,10 @@ class CfgSkeletons { "magazine", "magazine_translation_bone", "hydraulics", "otocvez", "breech", "barrel", - "handle_breech", "barrel"}; + "handle_breech", "barrel", + "horizontal_handpos", "handle_horizontal", + "vertical_handpos", "handle_vertical" + }; }; }; @@ -142,6 +145,19 @@ class CfgModels { memory = 1; }; + class rotation_handle_horizontal_handpos { + type = "rotation"; + source = "mainTurret"; + sourceAddress = "loop"; + selection = "horizontal_handpos"; + axis = "axis_horizontal_handpos_rotation"; + minValue = "0"; + maxValue = "1"; + angle0 = "rad 0"; + angle1 = "rad -5760"; + memory = 1; + }; + class trigger_rotation { type = "rotation"; source = "trigger_rotation_source"; @@ -167,6 +183,19 @@ class CfgModels { memory = 1; }; + class rotation_handle_vertical_handpos { + type = "rotation"; + source = "mainGun"; + sourceAddress = "loop"; + selection = "vertical_handpos"; + axis = "axis_vertical_handpos_rotation"; + minValue = "0"; + maxValue = "1"; + angle0 = "rad 0"; + angle1 = "rad -11520"; + memory = 1; + }; + class MainGun : MainTurret { type = "rotationX"; source = "mainGun";