Can I store information in player entity?
Let's say I have plugin A which gives a weapon to a player. In plugin B I want to block plugin A from giving a weapon to a player in the first round. I wonder if there is some unused value in a player entity to store set of bits in? Perhaps something that is HL specific? The idea is to make set of plugins that works out of the box and the one that manages flags to enable/disable some features. I really do not want to use callfunc_* family functions or write plugin as a module. All I need is an unused integer or string value.
|
Re: Can I store information in player entity?
pev_*user* fields
|
Re: Can I store information in player entity?
In my Realistic Bullet Physics there are a lot of examples and a LOT informations using what Jimaway said. Not only pev_iuser*, but pev_euser*, and also pev_fuser* (for floats). They are so helpful, definitely will help you.
|
Re: Can I store information in player entity?
Perfect. That is definitely what I need. Thank you, guys.
|
Re: Can I store information in player entity?
Quote:
PHP Code:
|
Re: Can I store information in player entity?
Quote:
|
Re: Can I store information in player entity?
none is better than the other
|
Re: Can I store information in player entity?
Quote:
|
Re: Can I store information in player entity?
Quote:
|
Re: Can I store information in player entity?
pev() is not better or worse than entity_get_int().
If my plugin primarily uses engine natives then I'll use the engine variant, similar logic if my plugin is heavy on fakemeta natives. |
| All times are GMT -4. The time now is 15:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.