Added OnlyTracePlayers
This commit is contained in:
parent
3e7c5d7203
commit
b65db98bd5
@ -8,6 +8,7 @@ core.cheats = {
|
||||
["CrystalPvP"] = "crystal_pvp",
|
||||
["AutoTotem"] = "autototem",
|
||||
["ThroughWalls"] = "dont_point_nodes",
|
||||
["OnlyTracePlayers"] = "only_trace_players",
|
||||
},
|
||||
["Movement"] = {
|
||||
["Freecam"] = "freecam",
|
||||
|
@ -2351,3 +2351,5 @@ enable_node_esp (NodeESP) bool false
|
||||
enable_node_tracers (NodeTracers) bool false
|
||||
|
||||
node_esp_nodes (NodeESP Nodes) string
|
||||
|
||||
only_trace_players (OnlyTracePlayers) bool false
|
||||
|
@ -80,6 +80,8 @@ void RenderingCore::draw(video::SColor _skycolor, bool _show_hud, bool _show_min
|
||||
|
||||
void RenderingCore::drawTracersAndESP()
|
||||
{
|
||||
bool only_trace_players = g_settings->getBool("only_trace_players");
|
||||
|
||||
ClientEnvironment &env = client->getEnv();
|
||||
Camera *camera = client->getCamera();
|
||||
|
||||
@ -105,6 +107,8 @@ void RenderingCore::drawTracersAndESP()
|
||||
GenericCAO *obj = dynamic_cast<GenericCAO *>(cao);
|
||||
if (! obj)
|
||||
continue;
|
||||
if (only_trace_players && ! obj->isPlayer())
|
||||
continue;
|
||||
aabb3f box;
|
||||
if (! obj->getSelectionBox(&box))
|
||||
continue;
|
||||
|
@ -134,6 +134,7 @@ void set_default_settings(Settings *settings)
|
||||
settings->setDefault("enable_node_esp", "false");
|
||||
settings->setDefault("enable_node_tracers", "false");
|
||||
settings->setDefault("node_esp_nodes", "");
|
||||
settings->setDefault("only_trace_players", "false");
|
||||
|
||||
// Keymap
|
||||
settings->setDefault("remote_port", "30000");
|
||||
|
Loading…
x
Reference in New Issue
Block a user