entWatch4: Make the internal wait a float instead.

Predator minigun became fucked otherwise.
This commit is contained in:
zaCade
2019-04-15 18:15:00 +02:00
parent 77db1986c9
commit 7be0990d5b
2 changed files with 8 additions and 7 deletions
+2 -2
View File
@@ -536,9 +536,9 @@ public Action OnButtonPress(int button, int client)
{
if (HasEntProp(button, Prop_Data, "m_flWait"))
{
if (item.iWaitTill < RoundToCeil(GetEngineTime()))
if (item.flWait < GetEngineTime())
{
item.iWaitTill = RoundToCeil(GetEngineTime() + GetEntPropFloat(button, Prop_Data, "m_flWait"));
item.flWait = GetEngineTime() + GetEntPropFloat(button, Prop_Data, "m_flWait");
}
else return Plugin_Handled;
}