Advertisement
Guest User

Untitled

a guest
Dec 10th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. public void TriggerAbility(PlayerController caster, byte abilityindex, bool selfcast)
  2. {
  3. caster.TriggerAbility(abilityindex, selfcast);
  4.  
  5. foreach (CSteamID player in players.Keys)
  6. {
  7. Send(player, new Packet(PacketType.Spell, new byte[3] { playerList[(CSteamID)caster.player.playerID].playerindex, abilityindex, (byte)(selfcast ? 1 : 0) }));
  8.  
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement