Quote:
ou use it may times, it would be better to make it constant.
|
It likely doesn't matter.
Quote:
There are better ways for removing the buyzone like doing it in pfn_keyvalue forward.
|
You should explain why it's better.
Current method is not that bad, but it disregards bombradius parameter which could be unwanted if a specific value is defined. Basically the logic needs to be improved. Ideally, this should check if such
info_map_parameters exists, and if so, altering "buying" value. Something which could be achieved either by changing key value or setting directly
m_iBuyingStatus offset. Considering you do that one time, I would simply check with
find_ent_by_class, and if entity exists, I use the offset, otherwise, I create a new entity.
__________________