folding finished

This commit is contained in:
Sotirios Pupakis
2024-04-22 16:56:25 +02:00
parent b5804953cb
commit 715f79dbb0
6 changed files with 20 additions and 8 deletions

View File

@@ -34,10 +34,11 @@ _arty lock true;
private _curTur = _arty animationPhase "mainTurret";
private _curGun = _arty animationPhase "mainGun";
_arty animateSource ["plate_back_source", 0];
_arty animateSource ["plate_front_source", 1];
_arty animateSource ["plate_back_source", 0, true];
_arty animateSource ["plate_front_source", 1, true];
_arty animateSource ["mainTurretT_source", -_curTur];
_arty animateSource ["mainGunT_source", -_curGun + 0.1];
_arty animateSource ["hydraulicsT_source", -_curGun + 0.1];
_arty setVariable [QGVAR(folded), true, true];
_arty setMass 750;
_arty enableRopeAttach true;

View File

@@ -32,3 +32,5 @@ _arty setVariable [QGVAR(breech), false, true];
_arty setVariable [QGVAR(loaded), false, true];
_arty setVariable [QGVAR(towed), false, true];
_arty setVariable [QGVAR(fired), false, true];
_arty enableRopeAttach true;

View File

@@ -31,10 +31,11 @@ if !([_arty] call FUNC(canUnfold)) exitWith {};
_arty lock false;
// animate
_arty animateSource ["plate_back_source", 1];
_arty animateSource ["plate_front_source", 0];
_arty animateSource ["plate_back_source", 1, true];
_arty animateSource ["plate_front_source", 0, true];
_arty animateSource ["mainTurretT_source", 0];
_arty animateSource ["mainGunT_source", 0];
_arty animateSource ["hydraulicsT_source", 0];
_arty setVariable [QGVAR(folded), false, true];
_arty setMass 350000;
_arty enableRopeAttach true;

View File

@@ -200,7 +200,6 @@ class CfgVehicles {
animPeriod = 0.5;
sound = "reload";
soundPosition = "konec_hlavne";
};
class magazine_hide_source {
@@ -220,6 +219,12 @@ class CfgVehicles {
initPhase = 0;
animPeriod = 1;
};
class hydraulicsT_source {
source = "user";
initPhase = 0;
animPeriod = 1;
};
};
class ACE_Actions: ACE_Actions {

View File

@@ -235,9 +235,12 @@ class Animations
angle0 = "rad +360";
angle1 = "rad -360";
memory = 1;
};
class hydraulicsT: hydraulics {
source = "hydraulicsT_source";
}
class rotation_small_wheel {
type = "rotation";
source = "mainGun";