Added dz_visuals_friendly to not render friendly players. Change all cvars to a new format.
This commit is contained in:
@@ -15,7 +15,7 @@ enum chams_settings {
|
||||
visible_flags visible_mode;
|
||||
|
||||
bool chams(void* this_ptr) {
|
||||
const int setting = dz_chams->value == 5.0f ? 7 : dz_chams->value;
|
||||
const int setting = dz_visuals_chams->value == 5.0f ? 7 : dz_visuals_chams->value;
|
||||
if (setting == DISABLED)
|
||||
return false;
|
||||
|
||||
@@ -39,6 +39,10 @@ bool chams(void* this_ptr) {
|
||||
|
||||
const bool friendly = is_friend(ent);
|
||||
|
||||
// Check if the player is friendly and if visuals_friendly is 0
|
||||
if (friendly && dz_visuals_friendly->value == 0)
|
||||
return false; // Do not render chams for friendlies
|
||||
|
||||
/* If we got here it means we are rendering a valid player */
|
||||
glDisable(GL_TEXTURE_2D);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user