Dota2Patcher
 
Загрузка...
Поиск...
Не найдено
C_DOTATeam.h
См. документацию.
1#pragma once
2#include "interfaces.h"
3#include "../Utils/Memory.h"
4
5class C_DOTATeam {
6public:
7 void can_see_roshan_timer(bool val) {
8 if (const auto ptr = vmt.schema_system->get_netvar(this, "C_DOTATeam", "m_bTeamCanSeeRoshanTimer"))
9 Memory::write_memory<bool>(ptr.value(), val);
10 }
11
12 int hero_kills() const {
13 const auto ptr = vmt.schema_system->get_netvar(this, "C_DOTATeam", "m_iHeroKills");
14 return Memory::read_memory<int>(ptr.value_or(0)).value_or(0);
15 }
16
17 int tower_kills() const {
18 const auto ptr = vmt.schema_system->get_netvar(this, "C_DOTATeam", "m_iTowerKills");
19 return Memory::read_memory<int>(ptr.value_or(0)).value_or(0);
20 }
21
22 int barracks_kills() const {
23 const auto ptr = vmt.schema_system->get_netvar(this, "C_DOTATeam", "m_iBarracksKills");
24 return Memory::read_memory<int>(ptr.value_or(0)).value_or(0);
25 }
26};
Definition C_DOTATeam.h:5
int tower_kills() const
Definition C_DOTATeam.h:17
int hero_kills() const
Definition C_DOTATeam.h:12
void can_see_roshan_timer(bool val)
Definition C_DOTATeam.h:7
int barracks_kills() const
Definition C_DOTATeam.h:22
static optional< T > read_memory(const N &address)
Definition Memory.h:78