mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fortify - Skip placement animation for no cost fortifications (#9861)
Skip placement animation for no cost fortifications
This commit is contained in:
parent
c5b54c65a8
commit
017d47f8c9
@ -38,7 +38,7 @@ private _perframeCheck = {
|
||||
_args params ["_unit", "_side", "_typeOf", "_posASL", "_vectorDir", "_vectorUp", "_cost"];
|
||||
|
||||
// Animation loop (required for longer constructions)
|
||||
if (animationState _unit isNotEqualTo "AinvPknlMstpSnonWnonDnon_medic4") then {
|
||||
if (_totalTime != 0 && {animationState _unit != "AinvPknlMstpSnonWnonDnon_medic4"}) then {
|
||||
// Perform animation
|
||||
[_unit, "AinvPknlMstpSnonWnonDnon_medic4"] call EFUNC(common,doAnimation);
|
||||
};
|
||||
@ -55,4 +55,3 @@ private _perframeCheck = {
|
||||
LLSTRING(progressBarTitle),
|
||||
_perframeCheck
|
||||
] call EFUNC(common,progressBar);
|
||||
|
||||
|
@ -116,8 +116,8 @@ The Fortify budget can be updated for any side using the function.
|
||||
|
||||
Event Name | Passed Parameter(s) | Locality | Description
|
||||
---------- | ----------- | ------------------- | --------
|
||||
`acex_fortify_objectPlaced` | [player, side, objectPlaced] | Global | Foritfy object placed
|
||||
`acex_fortify_objectDeleted` | [player, side, objectDeleted] | Global | Foritfy object deleted
|
||||
`acex_fortify_objectPlaced` | [player, side, objectPlaced] | Global | Fortify object placed
|
||||
`acex_fortify_objectDeleted` | [player, side, objectDeleted] | Global | Fortify object deleted
|
||||
`acex_fortify_onDeployStart` | [player, object, cost] | Local | Player starts placing object
|
||||
`ace_fortify_deployFinished` | [player, side, configName, posASL, vectorDir, vectorUp] | Local | Player successfully finishes building object
|
||||
`ace_fortify_deployCanceled` | [player, side, configName, posASL, vectorDir, vectorUp] | Local | Player cancels building object
|
||||
`ace_fortify_deployFinished` | [[player, side, configName, posASL, vectorDir, vectorUp, cost], elapsedTime, totalTime, errorCode] | Local | Player successfully finishes building object
|
||||
`ace_fortify_deployCanceled` | [[player, side, configName, posASL, vectorDir, vectorUp, cost], elapsedTime, totalTime, errorCode] | Local | Player cancels building object
|
||||
|
Loading…
x
Reference in New Issue
Block a user