Raised This Month: $ Target: $400
 0% 

Custom is_user_alive library/module/plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 01-24-2014 , 11:15   Re: Custom is_user_alive library/module/plugin
Reply With Quote #1

The native is fast as hell and there is really no downside to using it. The only REALLY FUCKING SMALL improvement would be to cache the is_user_alive value, but that can cause issues and other headaches later.
Backstabnoob is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-25-2014 , 06:57   Re: Custom is_user_alive library/module/plugin
Reply With Quote #2

cache alive status inside a plugin is not a good idea. As Yami said, it is not error proof, some plugins/maps can kill players without triggering things that are caught by your plugin.
Doing this in a extra plugin in order to provide a dynamic native is even worth, because you gonna add some calls between plugins and amxx.

Also, is_user_alive doesn't triggering communication between amxx and metamod.


About prethink, better to use engine module forward client_PreThink, unless you want to post hook it or unless you don't want to hook it all the time.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 01-25-2014 , 08:33   Re: Custom is_user_alive library/module/plugin
Reply With Quote #3

Quote:
Originally Posted by ConnorMcLeod View Post
Doing this in a extra plugin in order to provide a dynamic native is even worse..
Quote:
Originally Posted by ConnorMcLeod View Post
better to use engine module forward client_PreThink, unless you want to post hook it..
What's wrong with engines client_PostThink? Just curious..
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-25-2014 , 10:39   Re: Custom is_user_alive library/module/plugin
Reply With Quote #4

Why are you asking that to me ? Have i said it is bad ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



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:11.


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