-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix switchMove usages -> among other things, the shitty housework animations play again * fix unconscious handling -> probably fix #95 and #98 again * add missing transition unconscious -> death (was preventing unconsciously dying civs from getting despawned) * remove a `switchMove ""` after death that I ... cannot see to be useful (leftover from ooold code) * reduce time to find neighbor for chat from 90s to 60s
- Loading branch information
1 parent
2de6f8d
commit 6ada928
Showing
14 changed files
with
35 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,5 @@ | ||
#include "..\script_component.hpp" | ||
|
||
[QGVAR(switchMove), { | ||
params ["_unit", "_animation"]; | ||
_unit switchMove _animation; | ||
} | ||
] call CBA_fnc_addEventHandler; | ||
|
||
["ace_unconscious", FUNC(handleAceUnconscious)] call CBA_fnc_addEventHandler; | ||
|
||
[QGVAR(doStop), FUNC(doStop)] call CBA_fnc_addEventHandler; | ||
[QGVAR(doCarryOn), FUNC(doCarryOn)] call CBA_fnc_addEventHandler; | ||
[QGVAR(doReverse), FUNC(doReverse)] call CBA_fnc_addEventHandler; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
addons/activities/functions/fnc_sm_activities_state_panic_enter.sqf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#include "..\script_component.hpp" | ||
|
||
_this enableDynamicSimulation false; // prevent from freezing mid-flight (?) | ||
[QGVAR(switchMove), [_this, ""]] call CBA_fnc_globalEvent; // leave everything | ||
[QEGVAR(common,switchMove), [_this, ""]] call CBA_fnc_globalEvent; // leave everything | ||
_this forceSpeed -1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
#include "script_component.hpp" | ||
|
||
if (!(EGVAR(main,enabled))) exitWith {}; | ||
|
||
[QGVAR(switchMove), { | ||
params ["_unit", "_animation"]; | ||
_unit switchMove _animation; | ||
} | ||
] call CBA_fnc_addEventHandler; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
addons/residents/functions/fnc_sm_business_state_housework_exit.sqf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#include "..\script_component.hpp" | ||
|
||
[QGVAR(switchMove), [_this, ""]] call CBA_fnc_globalEvent; | ||
[QEGVAR(common,switchMove), [_this, ""]] call CBA_fnc_globalEvent; |
2 changes: 1 addition & 1 deletion
2
addons/residents/functions/fnc_sm_business_state_meetNeighbor_enter.sqf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#include "..\script_component.hpp" | ||
|
||
[QGVAR(switchMove), [_this, ""]] call CBA_fnc_globalEvent; | ||
[QEGVAR(common,switchMove), [_this, ""]] call CBA_fnc_globalEvent; | ||
doStop _this; | ||
_this setVariable ["grad_civs_stopDistance", random [3, 7, 20]]; | ||
private _neighborToMeet = _this getVariable ["grad_civs_neighborToMeet", objNull]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters