This repository has been archived by the owner on Dec 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
038e467
commit bb72373
Showing
14 changed files
with
215 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#include "ViewModel.h" | ||
|
||
|
||
ViewModel::ViewModel() : IModule(0, Category::VISUAL, "Custom item view model") { | ||
this->registerBoolSetting("Reset", &this->Reset, this->Reset); | ||
this->registerBoolSetting("Translate", &this->doTranslate, this->doTranslate); | ||
this->registerBoolSetting("Scale", &this->doScale, this->doScale); | ||
|
||
this->registerFloatSetting("TranslateX", &this->xTrans, 0.f, -2.f, 2.f); | ||
this->registerFloatSetting("TranslateY", &this->yTrans, 0.f, -2.f, 2.f); | ||
this->registerFloatSetting("TranslateZ", &this->zTrans, 0.f, -2.f, 2.f); | ||
|
||
this->registerFloatSetting("ScaleX", &this->xMod, 1.f, 0.f, 2.f); | ||
this->registerFloatSetting("ScaleY", &this->yMod, 1.f, 0.f, 2.f); | ||
this->registerFloatSetting("ScaleZ", &this->zMod, 1.f, 0.f, 2.f); | ||
} | ||
|
||
ViewModel::~ViewModel() { | ||
} | ||
|
||
const char* ViewModel::getModuleName() { | ||
return "ViewModel"; | ||
} | ||
|
||
void ViewModel::onTick(C_GameMode* gm) { | ||
if (g_Data.getLocalPlayer() == nullptr) | ||
return; | ||
|
||
if (Reset) { | ||
xTrans = 0.f; | ||
yTrans = 0.f; | ||
zTrans = 0.f; | ||
|
||
xMod = 1.f; | ||
yMod = 1.f; | ||
zMod = 1.f; | ||
Reset = false; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#pragma once | ||
#include "Module.h" | ||
class ViewModel : public IModule { | ||
private: | ||
int delay = 0; | ||
|
||
public: | ||
bool Reset = false; | ||
bool doTranslate = true; | ||
bool doScale = true; | ||
|
||
float float1 = 0; | ||
float xMod = 1.f; | ||
float yMod = 1.f; | ||
float zMod = 1.f; | ||
|
||
float xTrans = 0.f; | ||
float yTrans = 0.f; | ||
float zTrans = 0.f; | ||
|
||
ViewModel(); | ||
~ViewModel(); | ||
|
||
// Inherited via IModule | ||
virtual const char* getModuleName() override; | ||
virtual void onTick(C_GameMode* gm) override; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,28 @@ | ||
#include "Xray.h" | ||
|
||
Xray::Xray() : IModule(VK_NUMPAD6, Category::VISUAL, "X-Ray view!") { | ||
Xray::Xray() : IModule(0, Category::VISUAL, "Allows you to see certain blocks easier") { | ||
} | ||
|
||
Xray::~Xray() { | ||
} | ||
|
||
const char* Xray::getModuleName() { | ||
return ("X-Ray"); | ||
return ("Xray"); | ||
} | ||
|
||
void Xray::onTick(C_GameMode* gm) { | ||
if (smoothLightningSetting != nullptr) { | ||
if (!gotSmoothInfo) { | ||
gotSmoothInfo = true; | ||
wasSmooth = *smoothLightningSetting; | ||
} | ||
*smoothLightningSetting = 0; | ||
} | ||
} | ||
|
||
void Xray::onDisable() { | ||
if (smoothLightningSetting != nullptr && gotSmoothInfo) { | ||
*smoothLightningSetting = wasSmooth; | ||
} | ||
gotSmoothInfo = false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
1 comment
on commit bb72373
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
omg floppy ur such a god
ok no u stole that from packet dude why would onix give u the src