Raised This Month: $ Target: $400
 0% 

Automaton or native to disable forward & OT discussion about detecting ground touch


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Astro
Member
Join Date: Jul 2011
Old 04-17-2013 , 17:09   Re: Automaton or fakemeta?
Reply With Quote #6

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).
  1. Spawn
  2. Disable damage
  3. Enable prethink hook
  4. Check for flags like FL_ONGROUND
  5. Disable prethink hook
  6. 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. ;)

Last edited by Astro; 04-17-2013 at 17:27.
Astro is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode