mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 21:33:20 +00:00
Fix wrong netprop
This commit is contained in:
parent
e330d09582
commit
8fd79609d3
2 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ public Action Timer_Main(Handle timer) {
|
|||
int primaryWpn = GetPlayerWeaponSlot(i, 0);
|
||||
if(primaryWpn > 0) {
|
||||
int maxCap = GetEntProp(primaryWpn, Prop_Send, "m_iClip1");
|
||||
SetEntProp(primaryWpn, Prop_Send, "m_iClip", GetRandomInt(0, maxCap));
|
||||
SetEntProp(primaryWpn, Prop_Send, "m_iClip1", GetRandomInt(0, maxCap));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -294,7 +294,7 @@ bool ApplyAffect(int victim, const Troll troll, int activator, trollModifier mod
|
|||
int primaryWpn = GetPlayerWeaponSlot(victim, 0);
|
||||
if(primaryWpn > 0) {
|
||||
int maxCap = GetEntProp(primaryWpn, Prop_Send, "m_iClip1");
|
||||
SetEntProp(primaryWpn, Prop_Send, "m_iClip", GetRandomInt(0, maxCap));
|
||||
SetEntProp(primaryWpn, Prop_Send, "m_iClip1", GetRandomInt(0, maxCap));
|
||||
}
|
||||
}
|
||||
} else if(~modifier & TrollMod_Constant) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue