Add new TF2_IsHolidayActive native to TF2 Ext (bug 6095, r=psychonic).
This commit is contained in:
@@ -343,6 +343,14 @@ forward Action:TF2_OnGetHoliday(&TFHoliday:holiday);
|
||||
*/
|
||||
forward Action:TF2_OnIsHolidayActive(TFHoliday:holiday, &bool:result);
|
||||
|
||||
/**
|
||||
* Returns whether or not a holiday is active
|
||||
*
|
||||
* @param holiday Holiday being checked.
|
||||
* @return Boolean of whether or not the holiday is active.
|
||||
*/
|
||||
native bool:TF2_IsHolidayActive(TFHoliday:holiday);
|
||||
|
||||
/**
|
||||
* Returns whether or not a client (Player) is in a duel.
|
||||
*
|
||||
@@ -427,5 +435,6 @@ public __ext_tf2_SetNTVOptional()
|
||||
MarkNativeAsOptional("TF2_GetResourceEntity");
|
||||
MarkNativeAsOptional("TF2_GetClass");
|
||||
MarkNativeAsOptional("TF2_IsPlayerInDuel");
|
||||
MarkNativeAsOptional("TF2_IsHolidayActive");
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user