extensions/cstrike/forwards.h
author Drifter <rgr_02@comcast.net>
Sat May 26 18:31:23 2012 -0400 (2012-05-26)
changeset 3519 a116c415c73e
parent 3313 2ddc75e24c53
child 4016 ecd3735e908b
permissions -rw-r--r--
Added support for CS:GO to cstrike extension (bug 5299, r=asherkin).
     1 #ifndef _INCLUDE_CSTRIKE_FORWARDS_H_
     2 #define _INCLUDE_CSTRIKE_FORWARDS_H_
     3 bool CreateWeaponPriceDetour();
     4 bool CreateHandleBuyDetour();
     5 bool CreateTerminateRoundDetour();
     6 bool CreateCSWeaponDropDetour();
     7 void RemoveWeaponPriceDetour();
     8 void RemoveHandleBuyDetour();
     9 void RemoveTerminateRoundDetour();
    10 void RemoveCSWeaponDropDetour();	
    11 
    12 #if SOURCE_ENGINE == SE_CSGO
    13 bool SetWeaponPrice(int weaponID, int price);
    14 bool SetWeaponPrice(const char *weapon, int price);
    15 int CallPriceForwardCSGO(int client, const char *weapon);
    16 int CallPriceForwardCSGO(int client, const char *weapon, int price);
    17 #endif
    18 
    19 extern IServerGameEnts *gameents;
    20 extern IForward *g_pHandleBuyForward;
    21 extern IForward *g_pPriceForward;
    22 extern IForward *g_pTerminateRoundForward;
    23 extern IForward *g_pCSWeaponDropForward;
    24 extern int g_iPriceOffset;
    25 #endif //_INCLUDE_CSTRIKE_FORWARDS_H_