??????? im talking about calling entity fields in a short period of time. dont have nothing to be with use_hold or playerDamage, u can crash then in other many ways, this was just an example.

xensik
@xensik
Posts
-
[BUG] Entity fields spam -
Plutonium IW5 - The future of scriptingA comeback to Lua?
-
[BUG] Entity fields spamWhen you make calls to entity fields in a short period of time it crashes.
chai code to reproduce:
(go to Search & Destroy and spam the plant bomb button for example, the same happen onPlayerDamage that gets called a lot of times per second while shooting)def onPlayerConnected(args) { var player = args[0]; player.onNotify("use_hold", fun[player](args) { player.iprintln("planting..."); var origin = player.get("origin"); // make a field call and spam de F button }); } level.onNotify("connected", onPlayerConnected);
if you can take a look at field implementation stability
-
[Feature Request] Add plugin callback on_frameI asume you already hook the game frame. If you can provide a new callback for plugins that gets trigger on every frame. So we dont have to install a hook for every plugin.
DLL_EXPORT void on_frame() { }
It will be handy to play with timers.