-
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 state machine multiplicator (#116)
* fix state machine overclocking on headless clients * react to smMultiplicator settings change
- Loading branch information
1 parent
c3f9707
commit c9a0fbe
Showing
4 changed files
with
15 additions
and
3 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 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
3 changes: 2 additions & 1 deletion
3
.../functions/fnc_overclockStateMachines.sqf → .../functions/fnc_overclockStateMachines.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,7 +1,8 @@ | ||
#include "..\script_component.hpp" | ||
|
||
ISNILS(GVAR(efIDs), []); | ||
for "_i" from 2 to GVAR(smMultiplicator) do { | ||
|
||
for "_i" from 2 to (round GVAR(smMultiplicator)) do { | ||
GVAR(efIDs) pushBack (addMissionEventHandler ["EachFrame", {call cba_statemachine_fnc_clockwork}]); | ||
}; | ||
INFO_1("CBA statemachines are running %1 more ticks per frame now", count GVAR(efIDs)); |