public SyringeUseEvent(SyringeWeapon sw, BaseEntity.RPCMessage msg, bool isSelf) { _syringeWeapon = sw; _user = Server.GetPlayer(sw.ownerPlayer); _self = isSelf; if (isSelf) _receiver = _user; else _receiver = new Player(BaseNetworkable.serverEntities.Find(msg.read.UInt32()) as BasePlayer); }
public SyringeUseEvent(SyringeWeapon sw, BaseEntity.RPCMessage msg, bool isSelf) { _syringeWeapon = sw; _user = Server.GetPlayer(sw.ownerPlayer); _self = isSelf; if (isSelf) { _receiver = _user; } else { _receiver = new Player(BaseNetworkable.serverEntities.Find(msg.read.UInt32()) as BasePlayer); } }
public static void PlayerSyringeSelf(SyringeWeapon sw, BaseEntity.RPCMessage msg) { OnPlayerSyringeSelf.OnNext(new SyringeUseEvent(sw, msg, true)); }
public static void PlayerSyringeOther(SyringeWeapon sw, BaseEntity.RPCMessage msg) { OnPlayerSyringeOther.OnNext(new SyringeUseEvent(sw, msg, false)); }
public static void On_PlayerSyringeOther(SyringeWeapon sw, BaseEntity.RPCMessage msg) { OnNext("On_PlayerSyringeOther", new SyringeUseEvent(sw, msg, false)); }
public static void On_PlayerSyringeSelf(SyringeWeapon sw, BaseEntity.RPCMessage msg) { OnNext("On_PlayerSyringeSelf", new SyringeUseEvent(sw, msg, true)); }