Merge pull request #203 from julianacat/master
Fixed namesteal not using enum
This commit is contained in:
commit
0dbe957437
@ -472,6 +472,9 @@ bool IsTargetStateGood(CachedEntity* entity) {
|
||||
// Check if sticky aimbot is enabled
|
||||
if (!stickybot) return false;
|
||||
|
||||
// Only hitscan weapons can break stickys so check for them.
|
||||
if (!(GetWeaponMode() == weapon_hitscan || GetWeaponMode() == weapon_melee)) return false;
|
||||
|
||||
// Check if target is within range
|
||||
if (EffectiveTargetingRange()) {
|
||||
if (entity->m_flDistance > (int)EffectiveTargetingRange()) return false;
|
||||
|
@ -214,7 +214,7 @@ void Shutdown_hook(void* _this, const char* reason) {
|
||||
static CatVar resolver(CV_SWITCH, "resolver", "0", "Resolve angles");
|
||||
|
||||
CatEnum namesteal_enum({ "OFF", "PASSIVE", "ACTIVE" });
|
||||
CatVar namesteal(CV_SWITCH, "name_stealer", "0", "Name Stealer", "Attemt to steal your teammates names. Usefull for avoiding kicks\nPassive only changes when the name stolen is no longer the best name to use\nActive Attemps to change the name whenever possible");
|
||||
CatVar namesteal(namesteal_enum, "name_stealer", "0", "Name Stealer", "Attemt to steal your teammates names. Usefull for avoiding kicks\nPassive only changes when the name stolen is no longer the best name to use\nActive Attemps to change the name whenever possible");
|
||||
|
||||
static std::string stolen_name;
|
||||
|
||||
|
Reference in New Issue
Block a user