Skip to content

Commit

Permalink
Fortify - Skip placement animation for no cost fortifications (#9861)
Browse files Browse the repository at this point in the history
Skip placement animation for no cost fortifications
  • Loading branch information
johnb432 authored Mar 19, 2024
1 parent c5b54c6 commit 017d47f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions addons/fortify/functions/fnc_deployConfirm.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand All @@ -55,4 +55,3 @@ private _perframeCheck = {
LLSTRING(progressBarTitle),
_perframeCheck
] call EFUNC(common,progressBar);

8 changes: 4 additions & 4 deletions docs/wiki/framework/fortify-framework.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 017d47f

Please sign in to comment.