I love the premise of this plugin, but I wasn't able to get it to work for me in CS:GO. I modified the following line
Code:
if((StrContains(weapon, "awp") != -1 || StrContains(weapon, "ssg08") != -1 || StrContains(weapon, "scout") != -1) || !(0 < GetEntProp(attacker, Prop_Data, "m_iFOV") < GetEntProp(attacker, Prop_Data, "m_iDefaultFOV")))
to
Code:
if((StrContains(weapon, "awp") != -1 || StrContains(weapon, "ssg08") != -1 || StrContains(weapon, "scout") != -1) &&
(GetEntProp(attacker, Prop_Data, "m_iFOV") <= 0 || GetEntProp(attacker, Prop_Data, "m_iFOV") == GetEntProp(attacker, Prop_Data, "m_iDefaultFOV")))
and it seems to work well now.
Also:
- Added quake announcer sounds on kills -- "Ultrakill" for a no-scope and "Godlike!" for a no-scope + headshot.
- Added convar
sm_noscope_allcsgoguns (0/1, def:0) to enable no-scope detection for other CS:GO rifles without crosshairs (g3sg1, scar20). (The default setting only detects awp & ssg08/scout)
- Minor tweaks to the chat messages + added weapon name
Unzip to your csgo directory. Be sure to remove your older noscope_gotcha .smx from the /plugins folder as the filename has changed.