View Single Post
Xiaobaibai
Junior Member
Join Date: Dec 2016
Old 07-17-2017 , 12:03   Re: AllocString space recycler
Reply With Quote #4

Quote:
Originally Posted by JusTGo View Post
i have newbie question lets say the game have both this line codes:

PHP Code:
pev->noiseMoving ALLOC_STRING("common/null.wav");
.
.
.
pev->noiseArrived ALLOC_STRING("common/null.wav"); 
does this mean we can hook FM_AllocString and do the same so it will be allocated only once ? and in other places where ALLOC_STRING is used more then once in some forwards.
Yeah. However, FM_AllocString cannot hook calls from fakemeta like engfunc(EngFunc_AllocString, "info_target");

It can only hook those from mp.dll and so on but not from amxx using fakemeta.
Xiaobaibai is offline