feat(bridge): protocol 11 — the map (phase 14) #11
@@ -9027,6 +9027,18 @@ namespace Oxide.Plugins
|
|||||||
CurrentPicture();
|
CurrentPicture();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A player's Steam id as text, from <c>userID</c> itself. <c>UserIDString</c> is a
|
||||||
|
/// cached string the game fills for a player it has seen connect, and the phase 14 walk
|
||||||
|
/// read it back empty from a sleeper made on the server: an id the map could not name
|
||||||
|
/// is an own dot and a clan mate the site can never find.
|
||||||
|
/// </summary>
|
||||||
|
private static string SteamIdOf(BasePlayer p)
|
||||||
|
{
|
||||||
|
ulong id = p.userID;
|
||||||
|
return id.ToString(System.Globalization.CultureInfo.InvariantCulture);
|
||||||
|
}
|
||||||
|
|
||||||
private static bool Gone(BaseEntity e)
|
private static bool Gone(BaseEntity e)
|
||||||
{
|
{
|
||||||
return e == null || e.IsDestroyed || e.transform == null;
|
return e == null || e.IsDestroyed || e.transform == null;
|
||||||
@@ -9133,7 +9145,7 @@ namespace Oxide.Plugins
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
Dictionary<string, object> row = At(p.transform.position);
|
Dictionary<string, object> row = At(p.transform.position);
|
||||||
row["steamId"] = p.UserIDString;
|
row["steamId"] = SteamIdOf(p);
|
||||||
row["name"] = p.displayName;
|
row["name"] = p.displayName;
|
||||||
row["sleeping"] = p.IsSleeping();
|
row["sleeping"] = p.IsSleeping();
|
||||||
row["online"] = true;
|
row["online"] = true;
|
||||||
@@ -9156,7 +9168,7 @@ namespace Oxide.Plugins
|
|||||||
}
|
}
|
||||||
|
|
||||||
Dictionary<string, object> row = At(p.transform.position);
|
Dictionary<string, object> row = At(p.transform.position);
|
||||||
row["steamId"] = p.UserIDString;
|
row["steamId"] = SteamIdOf(p);
|
||||||
row["name"] = p.displayName;
|
row["name"] = p.displayName;
|
||||||
row["sleeping"] = true;
|
row["sleeping"] = true;
|
||||||
row["online"] = false;
|
row["online"] = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user