feedthetrolls: Increase gun jam from 30% to 50% chance

This commit is contained in:
Jackzie 2021-01-18 16:00:57 -06:00
parent 904f86ea9b
commit 1bef227e41
No known key found for this signature in database
GPG key ID: 1E834FE36520537A
2 changed files with 1 additions and 2 deletions

View file

@ -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);

View file

@ -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;
}
}