forked from UNLOZE/sm-plugins
entWatch4: fix 1 second cooldown delay?
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user