Skip to content
Permalink
Browse files

Message != Glow

  • Loading branch information...
Bara committed Mar 9, 2019
1 parent b2335f7 commit 442e03490b570b71e3e78f726146ff1e037bf5d4
Showing with 2 additions and 2 deletions.
  1. +2 −2 addons/sourcemod/scripting/ttt/ttt_taser.sp
@@ -102,7 +102,7 @@ public void OnPluginStart()
g_cTaserCooldownMessage = AutoExecConfig_CreateConVar("ta_cooldown_after_round_start_message", "1", "Show message when tasers are enabled?", _, true, 0.0, true, 1.0);
g_cGlowPlayer = AutoExecConfig_CreateConVar("ta_glow_player_after_taser", "1", "Glow player on taser? ( 0 - Disable, 1 - Enable)", _, true, 0.0, true, 1.0);
g_cGlowLength = AutoExecConfig_CreateConVar("ta_glow_player_length", "5", "How long should the player glow?, Time in Seconds, 0 - Disabled", _, true, 0.0);
g_cGlowToAll = AutoExecConfig_CreateConVar("ta_glow_player_for_all", "1", "Glow player for all (ta_broadcast_taser_result must be 1 for this)? ( 0 - Disable, 1 - Enable)", _, true, 0.0, true, 1.0);
g_cGlowToAll = AutoExecConfig_CreateConVar("ta_glow_player_for_all", "1", "Glow player for all? ( 0 - Disable, 1 - Enable)", _, true, 0.0, true, 1.0);
TTT_EndConfig();

m_flNextPrimaryAttack = FindSendPropInfo("CBaseCombatWeapon", "m_flNextPrimaryAttack");
@@ -521,7 +521,7 @@ public Action OnTraceAttack(int iVictim, int &iAttacker, int &inflictor, float &

if (g_cGlowPlayer.BoolValue)
{
if (g_cBroadcastTaserResult.BoolValue && g_cGlowToAll.BoolValue)
if (g_cGlowToAll.BoolValue)
{
LoopValidClients(i)
{

0 comments on commit 442e034

Please sign in to comment.
You can’t perform that action at this time.