summaryrefslogtreecommitdiffstats
path: root/src/weapons/WeaponInfo.cpp
blob: 155425b5e578835a88701aeb64e2bdbafaa7da55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "common.h"
#include "patcher.h"
#include "WeaponInfo.h"

CWeaponInfo (&CWeaponInfo::ms_apWeaponInfos)[14] = * (CWeaponInfo(*)[14]) * (uintptr*)0x6503EC;

CWeaponInfo*
CWeaponInfo::GetWeaponInfo(eWeaponType weaponType) {
	return &CWeaponInfo::ms_apWeaponInfos[weaponType];
}

STARTPATCHES
	InjectHook(0x564FD0, &CWeaponInfo::GetWeaponInfo, PATCH_JUMP);
ENDPATCHES