mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
dedmen's model fixes
This commit is contained in:
parent
36626d26d8
commit
2f3c43572b
@ -54,7 +54,7 @@ class CfgVehicles {
|
||||
class slide_down_tripod {
|
||||
source = "user";
|
||||
animPeriod = 0.02;
|
||||
initPhase = 0;
|
||||
initPhase = 0.5;
|
||||
minValue = 0;
|
||||
maxValue = 1;
|
||||
};
|
||||
@ -65,15 +65,15 @@ class CfgVehicles {
|
||||
|
||||
class ACE_Actions {
|
||||
class ACE_MainActions {
|
||||
selection = "";
|
||||
selection = "interaction_point";
|
||||
distance = 5;
|
||||
condition = "true";
|
||||
condition = "(true)";
|
||||
|
||||
class ACE_Pickup {
|
||||
selection = "";
|
||||
displayName = CSTRING(PickUp);
|
||||
distance = 5;
|
||||
condition = "true";
|
||||
condition = "(true)";
|
||||
statement = QUOTE([ARR_2(_player,_target)] call FUNC(pickup));
|
||||
showDisabled = 0;
|
||||
exceptions[] = {};
|
||||
@ -85,7 +85,7 @@ class CfgVehicles {
|
||||
selection = "";
|
||||
displayName = CSTRING(Adjust);
|
||||
distance = 5;
|
||||
condition = "true";
|
||||
condition = "(true)";
|
||||
//wait a frame to handle "Do When releasing action menu key" option:
|
||||
statement = QUOTE([ARR_2({_this call FUNC(adjust)}, [ARR_2(_player,_target)])] call CBA_fnc_execNextFrame);
|
||||
showDisabled = 0;
|
||||
|
@ -4,7 +4,7 @@ if (!hasInterface) exitWith {};
|
||||
|
||||
GVAR(adjustPFH) = -1;
|
||||
|
||||
GVAR(height) = 0;
|
||||
GVAR(height) = 0.5;
|
||||
|
||||
// Cancel adjustment if interact menu opens
|
||||
["ace_interactMenuOpened", {[ACE_player] call FUNC(handleInteractMenuOpened)}] call CBA_fnc_addEventHandler;
|
||||
|
@ -1,10 +1,10 @@
|
||||
class CfgSkeletons
|
||||
{
|
||||
class CfgSkeletons {
|
||||
class Default {
|
||||
isDiscrete = 1;
|
||||
skeletonInherit = "";
|
||||
skeletonBones[] = {};
|
||||
};
|
||||
|
||||
class ace_snipertripod_skeleton: Default {
|
||||
isDiscrete = 1;
|
||||
skeletonInherit = "Default";
|
||||
@ -13,21 +13,25 @@ class CfgSkeletons
|
||||
"leg_1","tripod",
|
||||
"leg_2","tripod",
|
||||
"leg_3","tripod",
|
||||
"interaction_point","tripod",
|
||||
"leg_slide_1","leg_1",
|
||||
"leg_slide_2","leg_2",
|
||||
"leg_slide_3","leg_3"
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class CfgModels {
|
||||
class Default {
|
||||
sectionsInherit = "";
|
||||
sections[] = {};
|
||||
skeletonName = "";
|
||||
};
|
||||
|
||||
class sniper_tripod: Default {
|
||||
skeletonName = "ace_snipertripod_skeleton";
|
||||
sectionsInherit = "Default";
|
||||
|
||||
class animations {
|
||||
class slide_down_tripod {
|
||||
type = "translation";
|
||||
@ -40,25 +44,25 @@ class CfgModels {
|
||||
maxValue = 1;
|
||||
sourceAddress = "clamp";
|
||||
offset0 = 0;
|
||||
offset1 = 0.855;
|
||||
offset1 = 0.855;
|
||||
};
|
||||
class retract_leg_1: slide_down_tripod {
|
||||
selection = "leg_slide_1";
|
||||
begin = "slide_end_1";
|
||||
end = "slide_start_1";
|
||||
offset0 = 0;
|
||||
offset1 = -0.95;
|
||||
offset1 = -0.95;
|
||||
};
|
||||
class retract_leg_2: retract_leg_1 {
|
||||
selection = "leg_slide_2";
|
||||
begin = "slide_end_2";
|
||||
end = "slide_start_2";
|
||||
end = "slide_start_2";
|
||||
};
|
||||
class retract_leg_3: retract_leg_2 {
|
||||
selection = "leg_slide_3";
|
||||
begin = "slide_end_3";
|
||||
end = "slide_start_3";
|
||||
};
|
||||
end = "slide_start_3";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Binary file not shown.
@ -33,7 +33,7 @@ if (stance _unit == "STAND") then {
|
||||
private _tripod = "ACE_TripodObject" createVehicle [0, 0, 0];
|
||||
|
||||
{
|
||||
_tripod animate [_x, 1];
|
||||
_tripod animate [_x, 0.5];
|
||||
} count ["slide_down_tripod", "retract_leg_1", "retract_leg_2", "retract_leg_3"];
|
||||
|
||||
[{
|
||||
|
Loading…
Reference in New Issue
Block a user