From 820fd66a94c20c4e1dab21f6abda4138eaefbe79 Mon Sep 17 00:00:00 2001 From: aap Date: Wed, 29 May 2019 18:06:33 +0200 Subject: implemented some of CCam and dependencies --- src/weapons/Weapon.cpp | 4 ++++ src/weapons/Weapon.h | 31 +++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 src/weapons/Weapon.cpp create mode 100644 src/weapons/Weapon.h (limited to 'src/weapons') diff --git a/src/weapons/Weapon.cpp b/src/weapons/Weapon.cpp new file mode 100644 index 00000000..22ae595a --- /dev/null +++ b/src/weapons/Weapon.cpp @@ -0,0 +1,4 @@ +#include "common.h" +#include "patcher.h" +#include "Weapon.h" + diff --git a/src/weapons/Weapon.h b/src/weapons/Weapon.h new file mode 100644 index 00000000..0fab027b --- /dev/null +++ b/src/weapons/Weapon.h @@ -0,0 +1,31 @@ +#pragma once + +enum eWeaponType +{ + WEAPONTYPE_UNARMED = 0, + WEAPONTYPE_BASEBALLBAT, + WEAPONTYPE_COLT45, + WEAPONTYPE_UZI, + WEAPONTYPE_SHOTGUN, + WEAPONTYPE_AK47, + WEAPONTYPE_M16, + WEAPONTYPE_SNIPERRIFLE, + WEAPONTYPE_ROCKETLAUNCHER, + WEAPONTYPE_FLAMETHROWER, + WEAPONTYPE_MOLOTOV, + WEAPONTYPE_GRENADE, + WEAPONTYPE_DETONATOR, + WEAPONTYPE_HELICANNON +}; + +class CWeapon +{ +public: + eWeaponType m_eWeaponType; + int32 m_eWeaponState; + int32 m_nAmmoInClip; + int32 m_nAmmoTotal; + int32 m_nTimer; + bool m_bAddRotOffset; +}; +static_assert(sizeof(CWeapon) == 0x18, "CWeapon: error"); -- cgit v1.2.3