Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

Commit

Permalink
Fixed for real this time
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew McNamara committed Aug 17, 2013
1 parent e598ffb commit 6aec192
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/advspec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ static ConCommand outline_color_command("advspec_outline_color", outline_color,
static void toggle_outlines();
static ConCommand toggle_outlines_command("advspec_toggle_outline", toggle_outlines, "[Deprecated] Toggles glow effect on players");

ConVar outline_enabled("advspec_outline_enabled", "0", 0, "Enable glow outline around player models");
static void outline_enabled_change(IConVar *var, const char *pOldValue, float flOldValue);
ConVar outline_enabled("advspec_outline_enabled", "0", 0, "Enable glow outline around player models", outline_enabled_change);
ConVar pov_outline_enabled("advspec_pov_outline_enabled", "0", 0, "Forces outlines to stay up-to-date in POV demos by checking every frame, may cause a noticable performance hit!");
ConVar medic_info_enabled("advspec_medic_info_enabled", "0", 0, "Shows which Medigun Medic's are using, and who has charge advantage");
ConVar medic_info_offset_x("advspec_medic_info_offset_x", "5", 0, "How many pixels from the left is the Medic Info box");
Expand Down Expand Up @@ -317,6 +318,10 @@ static void toggle_outlines() {
UpdateEntities();
}

static void outline_enabled_change(IConVar *var, const char *pOldValue, float flOldValue) {
UpdateEntities();
}

__inline void PrintOutlineColorCommandUsage() {
Msg("Usage: advspec_outline_color [r|b] [0-255] [0-255] [0-255]\n Color values in Red, Green, Blue order\n");
}
Expand Down

0 comments on commit 6aec192

Please sign in to comment.