I'm mostly interested in automatons as I don't know much about them and I'd like to learn new stuff, so this was a general example but hey, I've found use for this in one of my plugins. I'm blocking any damage dealt to player before they touch ground after spawn (for example maps where players spawn in air and fall down to start with less than 100hp but I don't want to block damage after then).
- Spawn
- Disable damage
- Enable prethink hook
- Check for flags like FL_ONGROUND
- Disable prethink hook
- Enable damage
Edit: Ad Ham_Player_PreThink, I'm actually using this one instead FM, but the question stands still. I'm not much familiar with them either so I'm trying to solve a question about the actual usefulness of the DisableHamForward() and unregister_forward() functions. I believe that the difference would not be significant but I'm just curious. ;)