From 1bef227e4116b764df96de7d08027fe9e0a67a83 Mon Sep 17 00:00:00 2001 From: Jackz Date: Mon, 18 Jan 2021 16:00:57 -0600 Subject: [PATCH] feedthetrolls: Increase gun jam from 30% to 50% chance --- scripting/include/feedthetrolls.inc | 1 - scripting/l4d2_feedthetrolls.sp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/scripting/include/feedthetrolls.inc b/scripting/include/feedthetrolls.inc index 459811e..8dde5e0 100644 --- a/scripting/include/feedthetrolls.inc +++ b/scripting/include/feedthetrolls.inc @@ -157,7 +157,6 @@ void ApplyModeToClient(int client, int victim, trollMode mode, TrollModifer modi ReplyToCommand(client, "Invalid modifier for mode."); return; } - //TODO: Implement swarm } case Troll_GunJam: { int wpn = GetClientWeaponEntIndex(victim, 0); diff --git a/scripting/l4d2_feedthetrolls.sp b/scripting/l4d2_feedthetrolls.sp index fda2b2f..4566522 100644 --- a/scripting/l4d2_feedthetrolls.sp +++ b/scripting/l4d2_feedthetrolls.sp @@ -444,7 +444,7 @@ public Action Event_WeaponReload(int weapon) { int client = GetEntPropEnt(weapon, Prop_Send, "m_hOwner"); if(HasTrollMode(client,Troll_GunJam)) { float dec = GetRandomFloat(0.0, 1.0); - if(FloatCompare(dec, 0.30) == -1) { //10% chance gun jams + if(FloatCompare(dec, 0.50) == -1) { //10% chance gun jams return Plugin_Stop; } }