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.
2017-12-02 17:47:47 +03:00

39 lines
584 B
C++

/*
* HUD.h
*
* Created on: Jun 4, 2017
* Author: nullifiedcat
*/
#pragma once
#include <logging.hpp>
#include <utlvector.h>
#include "vfunc.hpp"
class CHudBaseChat
{
public:
void *vtable;
inline void Printf(const char *string)
{
typedef void (*original_t)(CHudBaseChat *, int, const char *, ...);
original_t function = vfunc<original_t>(this, 0x15);
function(this, 0, "%s", string);
}
};
class CHudElement
{
public:
void *vtable;
};
class CHud
{
public:
void *vtable;
CHudElement *FindElement(const char *name);
};