2018-11-13 17:34:17 +01:00
|
|
|
#if defined entWatch_class_item_included
|
|
|
|
#endinput
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define entWatch_class_item_included
|
|
|
|
|
|
|
|
methodmap CItem < Basic
|
|
|
|
{
|
2018-11-19 16:27:52 +01:00
|
|
|
public CItem(CConfig value = view_as<CConfig>(INVALID_HANDLE))
|
2018-11-13 17:34:17 +01:00
|
|
|
{
|
|
|
|
Basic myclass = new Basic();
|
|
|
|
|
2018-11-19 16:27:52 +01:00
|
|
|
myclass.SetHandle("dConfig", value);
|
2018-11-13 17:34:17 +01:00
|
|
|
|
2019-04-06 10:58:19 +02:00
|
|
|
myclass.SetInt("iClient", INVALID_ENT_REFERENCE);
|
2018-11-13 17:34:17 +01:00
|
|
|
myclass.SetInt("iButton", INVALID_ENT_REFERENCE);
|
|
|
|
myclass.SetInt("iWeapon", INVALID_ENT_REFERENCE);
|
|
|
|
myclass.SetInt("iTrigger", INVALID_ENT_REFERENCE);
|
|
|
|
|
|
|
|
myclass.SetInt("iTimesUsed", 0);
|
2019-10-30 23:15:10 +01:00
|
|
|
myclass.SetFloat("flTimeReady", 0.0);
|
2019-04-15 18:15:00 +02:00
|
|
|
|
|
|
|
myclass.SetFloat("flWait", 0.0);
|
2018-11-13 17:34:17 +01:00
|
|
|
|
|
|
|
return view_as<CItem>(myclass);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-11-19 16:27:52 +01:00
|
|
|
property CConfig dConfig
|
2018-11-13 17:34:17 +01:00
|
|
|
{
|
|
|
|
public get()
|
|
|
|
{
|
2018-11-19 16:27:52 +01:00
|
|
|
return view_as<CConfig>(this.GetHandle("dConfig"));
|
2018-11-13 17:34:17 +01:00
|
|
|
}
|
2018-11-19 16:27:52 +01:00
|
|
|
public set(CConfig value)
|
2018-11-13 17:34:17 +01:00
|
|
|
{
|
2018-11-19 16:27:52 +01:00
|
|
|
this.SetHandle("dConfig", value);
|
2018-11-13 17:34:17 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2019-04-06 10:58:19 +02:00
|
|
|
property int iClient
|
2018-11-13 17:34:17 +01:00
|
|
|
{
|
|
|
|
public get()
|
|
|
|
{
|
2019-04-06 10:58:19 +02:00
|
|
|
return this.GetInt("iClient");
|
2018-11-13 17:34:17 +01:00
|
|
|
}
|
|
|
|
public set(int value)
|
|
|
|
{
|
2019-04-06 10:58:19 +02:00
|
|
|
this.SetInt("iClient", value);
|
2018-11-13 17:34:17 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property int iButton
|
|
|
|
{
|
|
|
|
public get()
|
|
|
|
{
|
|
|
|
return this.GetInt("iButton");
|
|
|
|
}
|
|
|
|
public set(int value)
|
|
|
|
{
|
|
|
|
this.SetInt("iButton", value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property int iWeapon
|
|
|
|
{
|
|
|
|
public get()
|
|
|
|
{
|
|
|
|
return this.GetInt("iWeapon");
|
|
|
|
}
|
|
|
|
public set(int value)
|
|
|
|
{
|
|
|
|
this.SetInt("iWeapon", value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property int iTrigger
|
|
|
|
{
|
|
|
|
public get()
|
|
|
|
{
|
|
|
|
return this.GetInt("iTrigger");
|
|
|
|
}
|
|
|
|
public set(int value)
|
|
|
|
{
|
|
|
|
this.SetInt("iTrigger", value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
property int iTimesUsed
|
|
|
|
{
|
|
|
|
public get()
|
|
|
|
{
|
|
|
|
return this.GetInt("iTimesUsed");
|
|
|
|
}
|
|
|
|
public set(int value)
|
|
|
|
{
|
|
|
|
this.SetInt("iTimesUsed", value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-10-30 23:15:10 +01:00
|
|
|
property float flTimeReady
|
2018-11-13 17:34:17 +01:00
|
|
|
{
|
|
|
|
public get()
|
|
|
|
{
|
2019-10-30 23:15:10 +01:00
|
|
|
return this.GetFloat("flTimeReady");
|
2018-11-13 17:34:17 +01:00
|
|
|
}
|
2019-10-30 23:15:10 +01:00
|
|
|
public set(float value)
|
2018-11-13 17:34:17 +01:00
|
|
|
{
|
2019-10-30 23:15:10 +01:00
|
|
|
this.SetFloat("flTimeReady", value);
|
2018-11-13 17:34:17 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-04-15 18:15:00 +02:00
|
|
|
property float flWait
|
2019-04-09 14:15:34 +02:00
|
|
|
{
|
|
|
|
public get()
|
|
|
|
{
|
2019-04-15 18:15:00 +02:00
|
|
|
return this.GetFloat("flWait");
|
2019-04-09 14:15:34 +02:00
|
|
|
}
|
2019-04-15 18:15:00 +02:00
|
|
|
public set(float value)
|
2019-04-09 14:15:34 +02:00
|
|
|
{
|
2019-04-15 18:15:00 +02:00
|
|
|
this.SetFloat("flWait", value);
|
2019-04-09 14:15:34 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-11-13 17:34:17 +01:00
|
|
|
|
2019-04-06 10:58:19 +02:00
|
|
|
property bool bClient
|
2018-11-13 17:34:17 +01:00
|
|
|
{
|
|
|
|
public get()
|
|
|
|
{
|
2019-04-06 10:58:19 +02:00
|
|
|
return view_as<bool>(this.iClient != INVALID_ENT_REFERENCE);
|
2018-11-13 17:34:17 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property bool bButton
|
|
|
|
{
|
|
|
|
public get()
|
|
|
|
{
|
|
|
|
return view_as<bool>(this.iButton != INVALID_ENT_REFERENCE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property bool bWeapon
|
|
|
|
{
|
|
|
|
public get()
|
|
|
|
{
|
|
|
|
return view_as<bool>(this.iWeapon != INVALID_ENT_REFERENCE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
property bool bTrigger
|
|
|
|
{
|
|
|
|
public get()
|
|
|
|
{
|
|
|
|
return view_as<bool>(this.iTrigger != INVALID_ENT_REFERENCE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|