Added forward/detour for TF2's GetHoliday function (bug 4462, r=pred)

This commit is contained in:
Nicholas Hastings
2010-06-28 17:48:14 -04:00
parent 5d5400a9ac
commit e4832f0d08
11 changed files with 183 additions and 13 deletions
+17
View File
@@ -99,6 +99,13 @@ enum TFCond
TFCond_Jarated
};
enum TFHoliday
{
TFHoliday_None = 1,
TFHoliday_Halloween,
TFHoliday_Birthday
};
/**
* Sets a client on fire for 10 seconds.
*
@@ -224,6 +231,16 @@ native TFClassType:TF2_GetClass(const String:classname[]);
*/
forward Action:TF2_CalcIsAttackCritical(client, weapon, String:weaponname[], &bool:result);
/**
* Called when the game checks to see if the current day is one of its tracked holidays
*
* @note Change the value of holiday and return Plugin_Changed to override.
* Return Plugin_Continue for no change.
*
* @param holiday Current Holiday
*/
forward Action:TF2_OnGetHoliday(&TFHoliday:holiday);
/**
* Do not edit below this line!
*/