Initial commit

This commit is contained in:
drof
2026-11-05 02:19:09 +01:00
commit 13f8503697
125 changed files with 17029 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
#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:
};
}