public void OnSpawnRagdoll(PlayerSpawnRagdollEvent ev) { if (GamemodeManager.GamemodeManager.CurrentMode == plugin) { ev.DamageType = DamageType.SCP_049; ev.AllowRecall = true; ev.Player.Infect(180f); } }
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) ); }
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); }
public void OnSpawnRagdoll(PlayerSpawnRagdollEvent ev) { spawnGhost.Add(new Ghost { playerId = ev.Player.PlayerId, remainingTime = 3f, spawnPos = ev.Position }); }
public void OnSpawnRagdoll(PlayerSpawnRagdollEvent ev) { plugin.luaHookCall.Function.Call("OnSpawnRagdoll", ev.Player, ev.Role, ev.Position, ev.Rotation); }