forked from UNLOZE/sm-plugins
entWatch4 update.
This commit is contained in:
@@ -14,6 +14,7 @@ enum items
|
||||
String:item_short[32],
|
||||
String:item_color[32],
|
||||
String:item_filter[32],
|
||||
bool:item_owned,
|
||||
item_buttonid,
|
||||
item_weaponid,
|
||||
item_triggerid,
|
||||
@@ -27,263 +28,4 @@ enum items
|
||||
item_maxuses,
|
||||
item_nextuse,
|
||||
item_cooldown,
|
||||
};
|
||||
|
||||
/*
|
||||
methodmap CItem < Basic
|
||||
{
|
||||
public CItem()
|
||||
{
|
||||
Basic myclass = new Basic();
|
||||
|
||||
myclass.SetHandle("hConfig", INVALID_HANDLE);
|
||||
myclass.SetInt("iOwner", INVALID_ENT_REFERENCE);
|
||||
myclass.SetInt("iButton", INVALID_ENT_REFERENCE);
|
||||
myclass.SetInt("iWeapon", INVALID_ENT_REFERENCE);
|
||||
myclass.SetInt("iTrigger", INVALID_ENT_REFERENCE);
|
||||
myclass.SetInt("iLastActivation", 0);
|
||||
myclass.SetInt("iActivations", 0);
|
||||
|
||||
return myclass;
|
||||
}
|
||||
|
||||
property CConfig hConfig
|
||||
{
|
||||
public get()
|
||||
{
|
||||
return this.GetHandle("hConfig");
|
||||
}
|
||||
public set(CConfig value)
|
||||
{
|
||||
this.SetHandle("hConfig", value);
|
||||
}
|
||||
}
|
||||
|
||||
property int iOwner
|
||||
{
|
||||
public get()
|
||||
{
|
||||
return this.GetInt("iOwner");
|
||||
}
|
||||
public set(int value)
|
||||
{
|
||||
this.SetInt("iOwner", value);
|
||||
}
|
||||
}
|
||||
|
||||
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 iLastActivation
|
||||
{
|
||||
public get()
|
||||
{
|
||||
return this.GetInt("iLastActivation");
|
||||
}
|
||||
public set(int value)
|
||||
{
|
||||
this.SetInt("iLastActivation", value);
|
||||
}
|
||||
}
|
||||
|
||||
property int iActivations
|
||||
{
|
||||
public get()
|
||||
{
|
||||
return this.GetInt("iActivations");
|
||||
}
|
||||
public set(int value)
|
||||
{
|
||||
this.SetInt("iActivations", value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
methodmap CConfig < Basic
|
||||
{
|
||||
public CConfig()
|
||||
{
|
||||
Basic myclass = new Basic();
|
||||
|
||||
myclass.SetString("sName", "");
|
||||
myclass.SetString("sShort", "");
|
||||
myclass.SetString("sColor", "");
|
||||
myclass.SetString("sFilter", "");
|
||||
|
||||
myclass.SetInt("iButtonID", 0);
|
||||
myclass.SetInt("iWeaponID", 0);
|
||||
myclass.SetInt("iTriggerID", 0);
|
||||
myclass.SetInt("iDisplay", 0);
|
||||
myclass.SetInt("iMode", 0);
|
||||
myclass.SetInt("iCooldown", 0);
|
||||
myclass.SetInt("iMaxActivations", 0);
|
||||
|
||||
return myclass;
|
||||
}
|
||||
|
||||
property char sName
|
||||
{
|
||||
public get()
|
||||
{
|
||||
return this.GetString("sName");
|
||||
}
|
||||
public set(char[] value)
|
||||
{
|
||||
this.SetString("sName", value);
|
||||
}
|
||||
}
|
||||
|
||||
property char sShort
|
||||
{
|
||||
public get()
|
||||
{
|
||||
return this.GetString("sShort");
|
||||
}
|
||||
public set(char[] value)
|
||||
{
|
||||
this.SetString("sShort", value);
|
||||
}
|
||||
}
|
||||
|
||||
property char sColor
|
||||
{
|
||||
public get()
|
||||
{
|
||||
return this.GetString("sColor");
|
||||
}
|
||||
public set(char[] value)
|
||||
{
|
||||
this.SetString("sColor", value);
|
||||
}
|
||||
}
|
||||
|
||||
property char sFilter
|
||||
{
|
||||
public get()
|
||||
{
|
||||
return this.GetString("sFilter");
|
||||
}
|
||||
public set(char[] value)
|
||||
{
|
||||
this.SetString("sFilter", value);
|
||||
}
|
||||
}
|
||||
|
||||
property int iButtonID
|
||||
{
|
||||
public get()
|
||||
{
|
||||
return this.GetInt("iButtonID");
|
||||
}
|
||||
public set(int value)
|
||||
{
|
||||
this.SetInt("iButtonID", value);
|
||||
}
|
||||
}
|
||||
|
||||
property int iWeaponID
|
||||
{
|
||||
public get()
|
||||
{
|
||||
return this.GetInt("iWeaponID");
|
||||
}
|
||||
public set(int value)
|
||||
{
|
||||
this.SetInt("iWeaponID", value);
|
||||
}
|
||||
}
|
||||
|
||||
property int iTriggerID
|
||||
{
|
||||
public get()
|
||||
{
|
||||
return this.GetInt("iTriggerID");
|
||||
}
|
||||
public set(int value)
|
||||
{
|
||||
this.SetInt("iTriggerID", value);
|
||||
}
|
||||
}
|
||||
|
||||
property int iDisplay
|
||||
{
|
||||
public get()
|
||||
{
|
||||
return this.GetInt("iDisplay");
|
||||
}
|
||||
public set(int value)
|
||||
{
|
||||
this.SetInt("iDisplay", value);
|
||||
}
|
||||
}
|
||||
|
||||
property int iMode
|
||||
{
|
||||
public get()
|
||||
{
|
||||
return this.GetInt("iMode");
|
||||
}
|
||||
public set(int value)
|
||||
{
|
||||
this.SetInt("iMode", value);
|
||||
}
|
||||
}
|
||||
|
||||
property int iCooldown
|
||||
{
|
||||
public get()
|
||||
{
|
||||
return this.GetInt("iCooldown");
|
||||
}
|
||||
public set(int value)
|
||||
{
|
||||
this.SetInt("iCooldown", value);
|
||||
}
|
||||
}
|
||||
|
||||
property int iMaxActivations
|
||||
{
|
||||
public get()
|
||||
{
|
||||
return this.GetInt("iMaxActivations");
|
||||
}
|
||||
public set(int value)
|
||||
{
|
||||
this.SetInt("iMaxActivations", value);
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
};
|
||||
Reference in New Issue
Block a user