示例#1
0
 public void OnSpawnRagdoll(PlayerSpawnRagdollEvent ev)
 {
     if (GamemodeManager.GamemodeManager.CurrentMode == plugin)
     {
         ev.DamageType  = DamageType.SCP_049;
         ev.AllowRecall = true;
         ev.Player.Infect(180f);
     }
 }
示例#2
0
 public void OnSpawnRagdoll(PlayerSpawnRagdollEvent ev)
 {
     send(ev, new IdMapping()
          .appendId(Lib.PLAYER_ID, ev.Player)
          .appendId(Lib.PLAYER_EVENT_SCPDATA_ID, ev.Player.Scp079Data)
          .appendId(Lib.PLAYER_EVENT_TEAM_ROLE_ID, ev.Player.TeamRole)
          .appendId(Lib.ATTACKER_ID, ev.Attacker)
          .appendId(Lib.EVENT_ATTACKE_SCPDATA_ID, ev.Attacker.Scp079Data)
          .appendId(Lib.EVENT_ATTACKER_TEAMROLE_ID, ev.Attacker.TeamRole)
          );
 }
示例#3
0
        public void OnSpawnRagdoll(PlayerSpawnRagdollEvent ev)
        {
            /// <summary>
            /// Called when a ragdoll is spawned
            /// <summary>
            Dictionary <string, string> variables = new Dictionary <string, string>
            {
                { "ipaddress", ev.Player.IpAddress },
                { "name", ev.Player.Name },
                { "playerid", ev.Player.PlayerId.ToString() },
                { "steamid", ev.Player.SteamId },
                { "class", ev.Role.ToString() },
                { "team", ev.Player.TeamRole.Team.ToString() }
            };

            plugin.SendMessage(Config.GetArray("channels.onspawnragdoll"), "player.onspawnragdoll", variables);
        }
示例#4
0
 public void OnSpawnRagdoll(PlayerSpawnRagdollEvent ev)
 {
     spawnGhost.Add(new Ghost {
         playerId = ev.Player.PlayerId, remainingTime = 3f, spawnPos = ev.Position
     });
 }
示例#5
0
文件: Hooks.cs 项目: Dogma4b/Qlay
 public void OnSpawnRagdoll(PlayerSpawnRagdollEvent ev)
 {
     plugin.luaHookCall.Function.Call("OnSpawnRagdoll", ev.Player, ev.Role, ev.Position, ev.Rotation);
 }