mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 21:33:20 +00:00
feedthetrolls: Increase gun jam from 30% to 50% chance
This commit is contained in:
parent
904f86ea9b
commit
1bef227e41
2 changed files with 1 additions and 2 deletions
|
@ -157,7 +157,6 @@ void ApplyModeToClient(int client, int victim, trollMode mode, TrollModifer modi
|
||||||
ReplyToCommand(client, "Invalid modifier for mode.");
|
ReplyToCommand(client, "Invalid modifier for mode.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//TODO: Implement swarm
|
|
||||||
}
|
}
|
||||||
case Troll_GunJam: {
|
case Troll_GunJam: {
|
||||||
int wpn = GetClientWeaponEntIndex(victim, 0);
|
int wpn = GetClientWeaponEntIndex(victim, 0);
|
||||||
|
|
|
@ -444,7 +444,7 @@ public Action Event_WeaponReload(int weapon) {
|
||||||
int client = GetEntPropEnt(weapon, Prop_Send, "m_hOwner");
|
int client = GetEntPropEnt(weapon, Prop_Send, "m_hOwner");
|
||||||
if(HasTrollMode(client,Troll_GunJam)) {
|
if(HasTrollMode(client,Troll_GunJam)) {
|
||||||
float dec = GetRandomFloat(0.0, 1.0);
|
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;
|
return Plugin_Stop;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue