Request am28110 - Added tfc_get_user_goalitem native to determine if player is carrying a goal item (such as a flag or keycard)
This commit is contained in:
@ -69,3 +69,8 @@ enum {
|
||||
TFC_PC_CIVILIAN,
|
||||
};
|
||||
|
||||
// Goal items
|
||||
#define TFC_GOALITEM_BLUE (1 << 17)
|
||||
#define TFC_GOALITEM_RED (1 << 18)
|
||||
#define TFC_GOALITEM_YELLOW (1 << 24)
|
||||
#define TFC_GOALITEM_GREEN (1 << 25)
|
||||
|
@ -127,3 +127,9 @@ native tfc_getweaponammo(index);
|
||||
/* Sets amount of ammo in weapon's clip */
|
||||
/* Index must be weapon's entity index */
|
||||
native tfc_setweaponammo(index, value);
|
||||
|
||||
/* Returns 1 if user is carrying a goal item such as a flag or a keycard, else 0.
|
||||
* Team is by reference parameter that will be set to owning team(s) of the goal item.
|
||||
* Use the TFC_GOALITEM_* constants to determine the owning team.
|
||||
*/
|
||||
native tfc_get_user_goalitem(index, &team);
|
||||
|
Reference in New Issue
Block a user