Added hand animations

This commit is contained in:
Tklama
2024-04-30 21:54:08 +02:00
parent 95e51d9934
commit 7e8e8fcf1d
5 changed files with 32 additions and 1 deletions

View File

@@ -49,6 +49,8 @@ class CfgVehicles {
class Turrets: Turrets { class Turrets: Turrets {
class MainTurret: MainTurret { class MainTurret: MainTurret {
gunnerRightHandAnimName = "vertical_handpos";
gunnerLeftHandAnimName = "horizontal_handpos";
gunnerAction = "M119pose"; gunnerAction = "M119pose";
gunnergetInAction = "GetInLow"; gunnergetInAction = "GetInLow";
gunnergetOutAction = "GetOutLow"; gunnergetOutAction = "GetOutLow";

Binary file not shown.

View File

@@ -27,7 +27,10 @@ class CfgSkeletons {
"magazine", "magazine_translation_bone", "magazine", "magazine_translation_bone",
"hydraulics", "otocvez", "hydraulics", "otocvez",
"breech", "barrel", "breech", "barrel",
"handle_breech", "barrel"}; "handle_breech", "barrel",
"horizontal_handpos", "handle_horizontal",
"vertical_handpos", "handle_vertical"
};
}; };
}; };
@@ -142,6 +145,19 @@ class CfgModels {
memory = 1; 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 { class trigger_rotation {
type = "rotation"; type = "rotation";
source = "trigger_rotation_source"; source = "trigger_rotation_source";
@@ -167,6 +183,19 @@ class CfgModels {
memory = 1; 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 { class MainGun : MainTurret {
type = "rotationX"; type = "rotationX";
source = "mainGun"; source = "mainGun";