예제 #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);
 }