entWatch4: fix 1 second cooldown delay?

This commit is contained in:
BotoX
2019-10-30 23:15:10 +01:00
parent f08ec189ac
commit bf93a52f24
3 changed files with 17 additions and 17 deletions
+5 -5
View File
@@ -18,7 +18,7 @@ methodmap CItem < Basic
myclass.SetInt("iTrigger", INVALID_ENT_REFERENCE);
myclass.SetInt("iTimesUsed", 0);
myclass.SetInt("iTimeReady", 0);
myclass.SetFloat("flTimeReady", 0.0);
myclass.SetFloat("flWait", 0.0);
@@ -100,15 +100,15 @@ methodmap CItem < Basic
}
}
property int iTimeReady
property float flTimeReady
{
public get()
{
return this.GetInt("iTimeReady");
return this.GetFloat("flTimeReady");
}
public set(int value)
public set(float value)
{
this.SetInt("iTimeReady", value);
this.SetFloat("flTimeReady", value);
}
}