entWatch4: Make the internal wait a float instead.
Predator minigun became fucked otherwise.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user