New Release
- Dodano więcej modeli do mocy Impostor. - Zmieniono sposób rejestrowania mocy. - Zmieniono wiadomości informacyjne o mocy zabójcy oraz sojusznikach. - Naprawiono crash serwera przy fall damage
This commit is contained in:
parent
810ca2fa3c
commit
68f26a22f4
30 changed files with 253 additions and 108 deletions
|
|
@ -12,6 +12,8 @@ namespace dRandomSkills
|
|||
|
||||
public static void LoadMuhammed()
|
||||
{
|
||||
Utils.RegisterSkill("Muhammed", "Po śmierci wybucha i zabija graczy w obrębie", "#F5CB42");
|
||||
|
||||
Instance.RegisterEventHandler<EventPlayerDeath>((@event, info) =>
|
||||
{
|
||||
CCSPlayerController player = @event.Userid;
|
||||
|
|
@ -19,9 +21,10 @@ namespace dRandomSkills
|
|||
if (!IsPlayerValid(player)) return HookResult.Continue;
|
||||
|
||||
var playerInfo = Instance.skillPlayer.FirstOrDefault(p => p.SteamID == player.SteamID);
|
||||
if (playerInfo?.Skill != "Muhammed") return HookResult.Continue;
|
||||
|
||||
SpawnExplosion(player);
|
||||
if (playerInfo?.Skill == "Muhammed")
|
||||
{
|
||||
SpawnExplosion(player);
|
||||
}
|
||||
|
||||
return HookResult.Continue;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue