Raised This Month: $51 Target: $400
 12% 

Hook Entity Removal/Deletion/Killing


Post New Thread Reply   
 
Thread Tools Display Modes
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-02-2017 , 08:42   Re: Hook Entity Removal/Deletion/Killing
Reply With Quote #11

Yeah, that was obvious, but I asked something different. Because if there is no practical advantage over a trie I would not create unneded dependencies.
__________________
HamletEagle is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 07-02-2017 , 19:20   Re: Hook Entity Removal/Deletion/Killing
Reply With Quote #12

Quote:
Originally Posted by HamletEagle View Post
I did not look at the code, so could you explain how it's different than using a trie and saving data with entity id as key?
It also handles entity remove.
Quote:
Originally Posted by HamletEagle View Post
Because if there is no practical advantage over a trie I would not create unneded dependencies.
1. Readability - get/set functions, but you can also create them in your local implementation.
2. Error prone. But looks like that entity data implementation isn't complicated. (but, for example, player tasks in amxx are error prone, because even skilled amxx scripters sometimes forget to remove them on disconnect and other events)
__________________

Last edited by PRoSToTeM@; 07-02-2017 at 19:30.
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
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 02:52.


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