Sp0ngeb0b wrote:I mostly meant buttons integrated in the panel which will immediatly execute the PlayerPawn.consoleCommand() function (or as you already said the 'hidden commands'). But from my point of view there's no way to fetch these commands (to bad the engine doesn't allow you to hook in before commands are executed :/ ).
Actually... I already cover that up as well since the beginning, and I didn't realize it until now (I am so dumb... rofl). Basically, every time the mouse pointer is on in UT (for menus or whatever), I reset the setting because I know the player may be about to open another map, a server or something else through menus.
Therefore, the panel is just another menu, on which the mouse pointer has to be on to be able to click said buttons, so in fact, I already predict those situations as well.
And btw, in a way, it's good you cannot hook those (at least through UScript), it makes the engine a little bit safer actually.
Anyway, I finished the whole thing up, and here's a resume on what I *cannot* cover:
- automatic hidden commands (I mean, all the commands that are called automatically from a mod with absolutely no knowledge or any input of any form from the user: so either if you either to have these commands called in any way through: keybind, button click or console command, I cover all those, if however it does it totally hidden from you (and which is quite rare), I cannot account for that);
- crashes.
And again, in both situations you just have to run NW3 again in any way and it will be fixed automatically.
So, I think I just covered up 99% of the situations.
Once again, thanks all for your feedback, however whoever didn't vote or gave feedback yet, I would be very grateful if you did so I can have a clearer idea on the whole issue.
And a last note: once you run NW3, if you have something like:
F8=exit
It will be modified to:
F8=NWClientExit|exit
Only keybinds with exit, quit, open and other commands that can invoke an exit from the current game are affected, all the others remain untouched.
I hope you guys are ok with it (the same keybinds will still work, with just an extra command at the beginning). I will put this info in the ReadMe anyway, so it won't be some hidden thing, you can trust I won't mess your settings up.