fix dynamic and dummy headers

This commit is contained in:
BenCat07 2018-03-29 19:08:31 +02:00
parent dfa0fbc647
commit d31bd4efb3
407 changed files with 1606 additions and 1598 deletions

0
.clang-format Normal file → Executable file
View File

0
.cproject Normal file → Executable file
View File

0
.gitignore vendored Normal file → Executable file
View File

0
.gitmodules vendored Normal file → Executable file
View File

0
.project Normal file → Executable file
View File

0
.settings/language.settings.xml Normal file → Executable file
View File

0
.settings/org.eclipse.cdt.codan.core.prefs Normal file → Executable file
View File

0
.settings/org.eclipse.cdt.managedbuilder.core.prefs Normal file → Executable file
View File

0
CMakeLists.txt Normal file → Executable file
View File

0
CODE_OF_CONDUCT.md Normal file → Executable file
View File

0
LICENSE Normal file → Executable file
View File

0
README.md Normal file → Executable file
View File

0
TODO Normal file → Executable file
View File

0
arch-gcc-fix Normal file → Executable file
View File

0
cathook.sln Normal file → Executable file
View File

0
cathook.vcxproj Normal file → Executable file
View File

0
cathook.vcxproj.filters Normal file → Executable file
View File

0
classdump-css.txt Normal file → Executable file
View File

0
classdump-dab.txt Normal file → Executable file
View File

0
classdump-hl2dm.txt Normal file → Executable file
View File

0
classdump-tf2.txt Normal file → Executable file
View File

0
classdump-tf2c.txt Normal file → Executable file
View File

0
data/fonts/opensans.ttf Normal file → Executable file
View File

0
data/fonts/unispace.ttf Normal file → Executable file
View File

0
data/fonts/verasans.ttf Normal file → Executable file
View File

0
data/menu.json Normal file → Executable file
View File

0
data/shaders/v2f-c4f.frag Normal file → Executable file
View File

0
data/shaders/v2f-c4f.vert Normal file → Executable file
View File

0
data/shaders/v2f-t2f-c4f.frag Normal file → Executable file
View File

0
data/shaders/v2f-t2f-c4f.vert Normal file → Executable file
View File

0
data/shaders/v3f-t2f-c4f.frag Normal file → Executable file
View File

0
data/shaders/v3f-t2f-c4f.vert Normal file → Executable file
View File

0
data/sound/combowhore.wav Normal file → Executable file
View File

0
data/sound/dominating.wav Normal file → Executable file
View File

0
data/sound/doublekill.wav Normal file → Executable file
View File

0
data/sound/firstblood.wav Normal file → Executable file
View File

0
data/sound/godlike.wav Normal file → Executable file
View File

0
data/sound/hattrick.wav Normal file → Executable file
View File

0
data/sound/headhunter.wav Normal file → Executable file
View File

0
data/sound/headshot.wav Normal file → Executable file
View File

0
data/sound/holyshit.wav Normal file → Executable file
View File

0
data/sound/humiliation.wav Normal file → Executable file
View File

0
data/sound/impressive.wav Normal file → Executable file
View File

0
data/sound/killingspree.wav Normal file → Executable file
View File

0
data/sound/ludicrouskill.wav Normal file → Executable file
View File

0
data/sound/megakill.wav Normal file → Executable file
View File

0
data/sound/monsterkill.wav Normal file → Executable file
View File

0
data/sound/multikill.wav Normal file → Executable file
View File

0
data/sound/perfect.wav Normal file → Executable file
View File

0
data/sound/play.wav Normal file → Executable file
View File

0
data/sound/prepare.wav Normal file → Executable file
View File

0
data/sound/rampage.wav Normal file → Executable file
View File

0
data/sound/teamkiller.wav Normal file → Executable file
View File

0
data/sound/triplekill.wav Normal file → Executable file
View File

0
data/sound/ultrakill.wav Normal file → Executable file
View File

0
data/sound/unstoppable.wav Normal file → Executable file
View File

0
data/sound/wickedsick.wav Normal file → Executable file
View File

0
full-class-table.json Normal file → Executable file
View File

0
generate-class-headers.js Normal file → Executable file
View File

3
generate-dummy-header.js Normal file → Executable file
View File

@ -6,7 +6,7 @@ try {
} catch (e) {} } catch (e) {}
console.log("Generating dummy class header"); console.log("Generating dummy class header");
console.log(full_class_table.Stringify);
var header = `/* var header = `/*
AUTO-GENERATED HEADER - DO NOT MODIFY AUTO-GENERATED HEADER - DO NOT MODIFY
NON-CONSTEXPR HEADER FOR $mod NON-CONSTEXPR HEADER FOR $mod
@ -33,4 +33,5 @@ header += `
#endif /* DUMMY_AUTOGEN_HPP */`; #endif /* DUMMY_AUTOGEN_HPP */`;
console.log(header);
fs.writeFileSync("src/classinfo/dummy.gen.hpp", header); fs.writeFileSync("src/classinfo/dummy.gen.hpp", header);

3
generate-dynamic-header.js Normal file → Executable file
View File

@ -68,6 +68,7 @@ dynamic dynamic_list;
}`; }`;
console.log(header)
console.log(source)
fs.writeFileSync("src/classinfo/dynamic.gen.hpp", header); fs.writeFileSync("src/classinfo/dynamic.gen.hpp", header);
fs.writeFileSync("src/classinfo/dynamic.gen.cpp", source); fs.writeFileSync("src/classinfo/dynamic.gen.cpp", source);

0
include/CDumper.hpp Normal file → Executable file
View File

0
include/angles.hpp Normal file → Executable file
View File

0
include/averager.hpp Normal file → Executable file
View File

0
include/backpacktf.hpp Normal file → Executable file
View File

0
include/base64.hpp Normal file → Executable file
View File

0
include/chatlog.hpp Normal file → Executable file
View File

0
include/chatstack.hpp Normal file → Executable file
View File

0
include/classinfo/classinfo.hpp Normal file → Executable file
View File

0
include/classinfo/css.gen.hpp Normal file → Executable file
View File

0
include/classinfo/css_constexpr.gen.hpp Normal file → Executable file
View File

0
include/classinfo/dab.gen.hpp Normal file → Executable file
View File

0
include/classinfo/dab_constexpr.gen.hpp Normal file → Executable file
View File

19
include/classinfo/dummy.gen.hpp Normal file → Executable file
View File

@ -6,11 +6,9 @@
#ifndef DUMMY_AUTOGEN_HPP #ifndef DUMMY_AUTOGEN_HPP
#define DUMMY_AUTOGEN_HPP #define DUMMY_AUTOGEN_HPP
namespace client_classes namespace client_classes {
{
class dummy class dummy {
{
public: public:
int CTETFParticleEffect { 0 }; int CTETFParticleEffect { 0 };
int CTETFExplosion { 0 }; int CTETFExplosion { 0 };
@ -520,9 +518,20 @@ public:
int CSDKGameRulesProxy { 0 }; int CSDKGameRulesProxy { 0 };
int CBaseGrenadeProjectile { 0 }; int CBaseGrenadeProjectile { 0 };
int CDAViewModel { 0 }; int CDAViewModel { 0 };
int CTFWearableRazorback { 0 };
int CTFWearableCampaignItem { 0 };
int CTFSlap { 0 };
int CTFRocketPack { 0 };
int CTFGasManager { 0 };
int CTFProjectile_JarGas { 0 };
int CTFJarGas { 0 };
int CTFWeaponFlameBall { 0 }; int CTFWeaponFlameBall { 0 };
int CTFBreakableSign { 0 };
int CTFBreakableMelee { 0 };
int CTFProjectile_BallOfFire { 0 }; int CTFProjectile_BallOfFire { 0 };
int CTFPointManager { 0 };
int CTFFlameManager { 0 };
}; };
extern dummy dummy_list; extern dummy dummy_list;

0
include/classinfo/dump.hpp Normal file → Executable file
View File

21
include/classinfo/dynamic.gen.hpp Normal file → Executable file
View File

@ -6,11 +6,9 @@
#ifndef DYNAMIC_AUTOGEN_HPP #ifndef DYNAMIC_AUTOGEN_HPP
#define DYNAMIC_AUTOGEN_HPP #define DYNAMIC_AUTOGEN_HPP
namespace client_classes namespace client_classes {
{
class dynamic class dynamic {
{
public: public:
dynamic(); dynamic();
void Populate(); void Populate();
@ -522,9 +520,24 @@ public:
int CSDKGameRulesProxy { 0 }; int CSDKGameRulesProxy { 0 };
int CBaseGrenadeProjectile { 0 }; int CBaseGrenadeProjectile { 0 };
int CDAViewModel { 0 }; int CDAViewModel { 0 };
int CTFWearableRazorback { 0 };
int CTFWearableCampaignItem { 0 };
int CTFSlap { 0 };
int CTFRocketPack { 0 };
int CTFGasManager { 0 };
int CTFProjectile_JarGas { 0 };
int CTFJarGas { 0 };
int CTFWeaponFlameBall { 0 };
int CTFBreakableSign { 0 };
int CTFBreakableMelee { 0 };
int CTFProjectile_BallOfFire { 0 };
int CTFPointManager { 0 };
int CTFFlameManager { 0 };
}; };
extern dynamic dynamic_list; extern dynamic dynamic_list;
} }
#endif /* DYNAMIC_AUTOGEN_HPP */ #endif /* DYNAMIC_AUTOGEN_HPP */

0
include/classinfo/hl2dm.gen.hpp Normal file → Executable file
View File

0
include/classinfo/hl2dm_constexpr.gen.hpp Normal file → Executable file
View File

0
include/classinfo/tf2.gen.hpp Normal file → Executable file
View File

0
include/classinfo/tf2_constexpr.gen.hpp Normal file → Executable file
View File

0
include/classinfo/tf2c.gen.hpp Normal file → Executable file
View File

0
include/classinfo/tf2c_constexpr.gen.hpp Normal file → Executable file
View File

0
include/common.hpp Normal file → Executable file
View File

0
include/conditions.hpp Normal file → Executable file
View File

0
include/copypasted/CSignature.h Normal file → Executable file
View File

0
include/copypasted/Netvar.h Normal file → Executable file
View File

0
include/crits.hpp Normal file → Executable file
View File

0
include/cvwrapper.hpp Normal file → Executable file
View File

0
include/e8call.hpp Normal file → Executable file
View File

0
include/entitycache.hpp Normal file → Executable file
View File

0
include/entityhitboxcache.hpp Normal file → Executable file
View File

0
include/enums.hpp Normal file → Executable file
View File

0
include/fidgetspinner.hpp Normal file → Executable file
View File

0
include/gameinfo.hpp Normal file → Executable file
View File

0
include/globals.h Normal file → Executable file
View File

0
include/gui/GUI.hpp Normal file → Executable file
View File

0
include/gui/cmdui/cmdui.hpp Normal file → Executable file
View File

0
include/hack.hpp Normal file → Executable file
View File

0
include/hacks/Achievement.hpp Normal file → Executable file
View File

0
include/hacks/Aimbot.hpp Normal file → Executable file
View File

Some files were not shown because too many files have changed in this diff Show More