Blockland Forums > Suggestions & Requests
Callback(s) for player movement
Greek2me:
Kalph, he means that he wants it to work like the trigger system. It's only called when they start or stop moving.
elm:
--- Quote from: Greek2me on April 03, 2013, 10:44:50 PM ---Kalph, he means that he wants it to work like the trigger system. It's only called when they start or stop moving.
--- End quote ---
I've done this for LOB, but it uses client to server operations.
Chrono:
--- Quote from: Kalphiter on April 03, 2013, 04:40:19 PM ---Having a callback for when a player moves means it would have to be called 32 times per second. The engine calculates movement 32 times per second and sends out networked updates at the same rate.
Your alternative is not feasible, but callbacks for when the player starts L/R strafing or F/R moving make sense.
...speaking of trace spam, we need to be able to filter traces.
EDIT: with function counting and timing like those in OllyDbg:
-snip-
--- End quote ---
--- Quote from: otto-san on April 01, 2013, 04:44:45 PM ---It'd have a boolean for if they're starting to move or stopping
--- End quote ---
Kalphiter:
--- Quote from: Greek2me on April 03, 2013, 10:44:50 PM ---Kalph, he means that he wants it to work like the trigger system. It's only called when they start or stop moving.
--- End quote ---
It sounds like he asked for both. Yes, callbacks like what he listed are needed.
otto-san:
--- Quote from: elm on April 04, 2013, 02:18:42 AM ---I've done this for LOB, but it uses client to server operations.
--- End quote ---
which probably works best for this currently, but it's way too slow to be extremely useful and requiring a client mod is p annoying