forked from UNLOZE/sm-plugins
entWatch4: Rename iOwner to iClient.
Seems more logical this way.
This commit is contained in:
@@ -12,7 +12,7 @@ methodmap CItem < Basic
|
||||
|
||||
myclass.SetHandle("dConfig", value);
|
||||
|
||||
myclass.SetInt("iOwner", INVALID_ENT_REFERENCE);
|
||||
myclass.SetInt("iClient", INVALID_ENT_REFERENCE);
|
||||
myclass.SetInt("iButton", INVALID_ENT_REFERENCE);
|
||||
myclass.SetInt("iWeapon", INVALID_ENT_REFERENCE);
|
||||
myclass.SetInt("iTrigger", INVALID_ENT_REFERENCE);
|
||||
@@ -37,15 +37,15 @@ methodmap CItem < Basic
|
||||
}
|
||||
|
||||
|
||||
property int iOwner
|
||||
property int iClient
|
||||
{
|
||||
public get()
|
||||
{
|
||||
return this.GetInt("iOwner");
|
||||
return this.GetInt("iClient");
|
||||
}
|
||||
public set(int value)
|
||||
{
|
||||
this.SetInt("iOwner", value);
|
||||
this.SetInt("iClient", value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,11 +111,11 @@ methodmap CItem < Basic
|
||||
}
|
||||
|
||||
|
||||
property bool bOwner
|
||||
property bool bClient
|
||||
{
|
||||
public get()
|
||||
{
|
||||
return view_as<bool>(this.iOwner != INVALID_ENT_REFERENCE);
|
||||
return view_as<bool>(this.iClient != INVALID_ENT_REFERENCE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user