#pragma once namespace respawn { FORWARD_DECLARE(c_player); enum class weapon_name_indexes : int { hands = 18, }; class c_weapon : public c_entity { public: NETVAR_FIELD(is_reloading, this, bool, "DT_WeaponX_LocalWeaponData", "m_bInReload"); NETVAR_FIELD(next_primary_attack, this, float, "DT_WeaponX_LocalWeaponData", "m_nextPrimaryAttackTime"); NETVAR_FIELD(next_ready_time, this, float, "DT_WeaponX_LocalWeaponData", "m_nextReadyTime"); NETVAR_FIELD(name_index, this, weapon_name_indexes, "DT_WeaponX", "m_weaponNameIndex"); DATA_FIELD(projectile_speed, this, float, 0x1F18); DATA_FIELD(projectile_gravity, this, float, 0x1F20); bool can_fire(c_player* owner) noexcept; void set_legendary_view_model_index(int64_t idx) noexcept; private: }; }