-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDisableFade.lua
More file actions
21 lines (16 loc) · 792 Bytes
/
DisableFade.lua
File metadata and controls
21 lines (16 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
local Constants = _G.require("Constants/Constants");
local hook = Constants.hook;
local to_float = Constants.to_float;
local ZERO_float_ptr = Constants.ZERO_float_ptr;
local SMALL_float_ptr = Constants.SMALL_float_ptr;
local FadeController_type_def = Constants.find_type_definition("ace.cFadeController");
hook(FadeController_type_def:get_method("requestFadeOutCore(System.Single, System.Single, System.Single, ace.cFadeRequest.FADE_PRIORITY)"), function(args)
args[3] = SMALL_float_ptr;
if to_float(args[4]) > 0.01 then
args[4] = SMALL_float_ptr;
end
args[5] = ZERO_float_ptr;
end);
hook(FadeController_type_def:get_method("requestFadeInCore(System.Single, ace.cFadeRequest.FADE_PRIORITY)"), function(args)
args[3] = ZERO_float_ptr;
end);