Skip to content

Commit

Permalink
weapons: rewrite for weapondef_t
Browse files Browse the repository at this point in the history
  • Loading branch information
voron00 committed Nov 19, 2017
1 parent 57ce0fd commit d09f48e
Show file tree
Hide file tree
Showing 3 changed files with 332 additions and 94 deletions.
4 changes: 2 additions & 2 deletions functions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ static const SV_WWWRedirectClient_t SV_WWWRedirectClient = (SV_WWWRedirectClient
static const SV_WWWRedirectClient_t SV_WWWRedirectClient = (SV_WWWRedirectClient_t)0x0808FC0C;
#endif

typedef int (*BG_WeaponDefs_t)(int a1);
typedef WeaponDef_t * (*BG_WeaponDefs_t)(unsigned int weaponIndex);
#if COD_VERSION == COD2_1_0
static const BG_WeaponDefs_t BG_WeaponDefs = (BG_WeaponDefs_t)0x080E9270;
#elif COD_VERSION == COD2_1_2
Expand All @@ -489,7 +489,7 @@ static const BG_WeaponDefs_t BG_WeaponDefs = (BG_WeaponDefs_t)0x080EB860;
static const BG_WeaponDefs_t BG_WeaponDefs = (BG_WeaponDefs_t)0x080EB9A4;
#endif

typedef int (*BG_GetNumWeapons_t)();
typedef int (*BG_GetNumWeapons_t)(void);
#if COD_VERSION == COD2_1_0
static const BG_GetNumWeapons_t BG_GetNumWeapons = (BG_GetNumWeapons_t)0x080E9322;
#elif COD_VERSION == COD2_1_2
Expand Down
Loading

0 comments on commit d09f48e

Please sign in to comment.