示例#1
0
        int killmsg(PacketStream ps)
        {
            byte  victim = ps.ReadByte();
            byte  source = ps.ReadByte();
            byte  wpn_id = ps.ReadByte();
            short sx     = ps.ReadShort();
            short sy     = ps.ReadShort();

            PlayerObject tmp = players[victim];

            tmp.Health = 0;

            if (victim == own_id)
            {
                botLogics.OnDeath();
            }

            if (source == own_id)
            {
                botLogics.OnKill(victim);
            }
            return(1);
        }