CGlobalVarsBase @i_globals = Interfaces.Globals;
IClientEntityList @i_entity_list = Interfaces.ClientEntityList;
InputHandler @i_inputhandler = Input;
ISurface @i_surface = Interfaces.Surface;
IEngineClient @i_engine = Interfaces.EngineClient;
bool autoPrediction;
bool featureToggle;
string local_weapon = "";
void paint() {
if(i_engine.IsInGame()) {
CBaseEntity@ local = i_entity_list.GetLocalPlayer();
if(local.IsAlive()) {
CBaseCombatWeapon@ Weapon = local.GetWeapon();
local_weapon = Weapon.GetWpnData().GetConsoleName();
//add custom weapons to disable for here :)
//follow the format of || local_weapon == "your weapon choice here"
if(featureToggle) {
if(local_weapon == "weapon_ssg08" || local_weapon == "weapon_revolver") {
Config.GetMenuBool("bnEz5w") = false;
autoPrediction = false;
}
else {
Config.GetMenuBool("bnEz5w") = true;
autoPrediction = true;
}
}
}
}
}
void menu() {
bool open = false;
if(!CheatVars.menuOpen) return;
if(Menu::Begin("options", open)) {
Menu::Checkbox("yung auto pred", featureToggle);
if(autoPrediction) {
Menu::Text("prediction: enabled");
}
else {
Menu::Text("prediction: disabled");
}
}
Menu::End();
}
void init()
{
printf("Welcome to MrFrostOnlyFans, " + CheatVars.username);
RegisterCallback("OnPaint", paint);
RegisterCallback("OnMenu", menu);
}