This repository has been archived on 2024-06-01. You can view files and clone it, but cannot push or open issues or pull requests.
cathook/include/localplayer.hpp
nullifiedcat 579b4b6f58 stuff
2018-07-29 14:53:08 +03:00

46 lines
839 B
C++
Executable File

/*
* localplayer.h
*
* Created on: Oct 15, 2016
* Author: nullifiedcat
*/
#pragma once
#include <mathlib/vector.h>
#include <enums.hpp>
class CachedEntity;
class LocalPlayer
{
public:
void Update();
int team;
int health;
int flags;
char life_state;
int clazz;
bool bZoomed;
float flZoomBegin;
bool holding_sniper_rifle;
bool holding_sapper;
weaponmode weapon_mode;
bool using_action_slot_item{ false };
Vector v_ViewOffset;
Vector v_Origin;
Vector v_Eye;
int entity_idx;
CachedEntity *entity{ 0 };
CachedEntity *weapon();
Vector v_OrigViewangles;
Vector v_SilentAngles;
bool bUseSilentAngles;
bool bAttackLastTick;
};
#define LOCAL_E g_pLocalPlayer->entity
#define LOCAL_W g_pLocalPlayer->weapon()
extern LocalPlayer *g_pLocalPlayer;