Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

344 changes: 344 additions & 0 deletions .idea/editor.xml

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 28 additions & 28 deletions classes/building.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,34 @@
// Maybe make Building a base class for the different buildings
class Building : public Entity {
public:
int get_health(void) {
return *(int*)(this + 0x1388);
}

int get_max_health(void) {
return *(int*)(this + 0x138C);
}

bool is_sapped(void) {
return *(bool*)(this + 0x1380);
}
bool is_carried(void) {
return *(bool*)(this + 0x1396) || this->is_carried_deploy();
}

bool is_carried_deploy(void) {
return *(bool*)(this + 0x1397);
}
// Sentry
bool is_mini_sentry(void) {
return *(bool*)(this + 0x1399);
}
int get_building_level(void) {
return *(int*)(this + 0x1334);
}
int get_health(void) {
return *reinterpret_cast<int *>(this + 0x1388);
}

int get_max_health(void) {
return *reinterpret_cast<int *>(this + 0x138C);
}

bool is_sapped(void) {
return *reinterpret_cast<bool *>(this + 0x1380);
}

bool is_carried(void) {
return *reinterpret_cast<bool *>(this + 0x1396) || this->is_carried_deploy();
}

bool is_carried_deploy(void) {
return *reinterpret_cast<bool *>(this + 0x1397);
}

// Sentry
bool is_mini_sentry(void) {
return *reinterpret_cast<bool *>(this + 0x1399);
}

int get_building_level(void) {
return *reinterpret_cast<int *>(this + 0x1334);
}
};

#endif
13 changes: 6 additions & 7 deletions classes/convar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@

class Convar {
public:
void set_int(int value) {
*(int*)(this + 0x58) = value;
}

int get_int() {
return *(int*)(this + 0x58);
}
void set_int(int value) {
*reinterpret_cast<int *>(this + 0x58) = value;
}

int get_int() {
return *reinterpret_cast<int *>(this + 0x58);
}
};

#endif
Loading