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
+6 -5
View File
@@ -19,7 +19,8 @@ methodmap CItem < Basic
myclass.SetInt("iTimesUsed", 0);
myclass.SetInt("iTimeReady", 0);
myclass.SetInt("iWaitTill", 0);
myclass.SetFloat("flWait", 0.0);
return view_as<CItem>(myclass);
}
@@ -111,15 +112,15 @@ methodmap CItem < Basic
}
}
property int iWaitTill
property float flWait
{
public get()
{
return this.GetInt("iWaitTill");
return this.GetFloat("flWait");
}
public set(int value)
public set(float value)
{
this.SetInt("iWaitTill", value);
this.SetFloat("flWait", value);
}
}