This commit is contained in:
BenCat07 2018-03-25 14:50:08 +02:00
parent 1672bf782e
commit 53ac15d6d7
3 changed files with 16 additions and 16 deletions

View File

@ -25,7 +25,6 @@ CatEnum tracers_enum({ "OFF", "CENTER", "BOTTOM" });
CatVar tracers(tracers_enum, "esp_tracers", "0", "Tracers",
"SDraws a line from the player to a position on your screen");
// Emoji Esp
#ifndef FEATURE_EMOJI_ESP_DISABLED
CatEnum emoji_esp_enum({ "None", "Joy", "Thinking" });
CatVar emoji_esp(emoji_esp_enum, "esp_emoji", "0", "Emoji ESP",
"Draw emoji on peopels head");
@ -37,8 +36,8 @@ CatVar emoji_esp_scaling(CV_SWITCH, "esp_emoji_scaling", "1",
"Emoji ESP Scaling", "Emoji ESP Scaling");
CatVar emoji_min_size(CV_INT, "esp_emoji_min_size", "20", "Emoji ESP min size",
"Minimum size for an emoji when you use auto scaling");
hitbox_cache::CachedHitbox *hitboxcache[32][18]{};
#endif
// Other esp options
CatEnum show_health_enum({ "None", "Text", "Healthbar", "Both" });
CatVar show_health(show_health_enum, "esp_health", "3", "Health ESP",

View File

@ -73,6 +73,7 @@ static CatVar infinite_packs(CV_SWITCH, "infinite_packs", "0",
"Activate sequence exploit when standing on "
"pickups while having not full HP/Ammo");
float servertime, nextattack;
static int lastwep = 0;
void CreateMove()
{
if (CE_BAD(LOCAL_E))
@ -293,14 +294,6 @@ void CreateMove()
}
}
}
if (instant_weapon_switch && not HasCondition<TFCond_Cloaked>(LOCAL_E))
{
static int lastweapon = 0;
if (lastweapon != g_pUserCmd->weaponselect) {
amount = 2 * 90;
lastweapon = g_pUserCmd->weaponselect;
}
}
if (cloak && shoot)
{
@ -398,6 +391,14 @@ void CreateMove()
}
}
}
if (instant_weapon_switch && not HasCondition<TFCond_Cloaked>(LOCAL_E))
{
if (lastwep != g_pLocalPlayer->weapon()->m_IDX)
{
amount = 2 * 90;
lastwep = g_pLocalPlayer->weapon()->m_IDX;
}
}
// SHOUTOUTS TO BLACKFIRE
if (doom || razorback)
{
@ -405,7 +406,6 @@ void CreateMove()
servertime =
(float) (CE_INT(g_pLocalPlayer->entity, netvar.nTickBase)) *
g_GlobalVars->interval_per_tick;
static int lastwep = g_pLocalPlayer->weapon()->m_IDX;
if (!nextattack || !i || g_pLocalPlayer->weapon()->m_IDX != lastwep)
nextattack =
CE_FLOAT(g_pLocalPlayer->weapon(), netvar.flNextPrimaryAttack);

View File

@ -23,11 +23,12 @@ ItemVariable::ItemVariable(CatVar &variable)
void ItemVariable::Update()
{
Item::Update();
if (catvar.registered == true)
if (!catvar.desc_long.empty())
if (catvar.desc_long.length() && IsHovered() &&
catvar.desc_long != "no description")
ShowTooltip(catvar.desc_long);
if (catvar.name.c_str())
if (catvar.registered == true)
if (!catvar.desc_long.empty())
if (catvar.desc_long.length() && IsHovered() &&
catvar.desc_long != "no description")
ShowTooltip(catvar.desc_long);
}
void ItemVariable::Change(float amount)