Exemplo n.º 1
0
        public ushort GetKillScore(KillingMessageEnum killingMessage)
        {
            ushort score = 0;

            if (killingMessage == KillingMessageEnum.MassKill || killingMessage == KillingMessageEnum.PiercingShot)
            {
                score += 6;
            }
            else if (killingMessage == KillingMessageEnum.ChainStopper)
            {
                score += 8;
            }
            else if (killingMessage == KillingMessageEnum.Headshot)
            {
                score += 10;
            }
            else if (killingMessage == KillingMessageEnum.ChainHeadshot)
            {
                score += 14;
            }
            else if (killingMessage == KillingMessageEnum.ChainSlugger)
            {
                score += 6;
            }
            else if (killingMessage == KillingMessageEnum.ObjectDefense)
            {
                score += 7;
            }
            else if (killingMessage != KillingMessageEnum.Suicide)
            {
                score += 5;
            }
            return(score);
        }
Exemplo n.º 2
0
        public KillingMessageEnum GetAllKillFlags()
        {
            KillingMessageEnum km = 0;

            for (int i = 0; i < frags.Count; i++)
            {
                Frag frag = frags[i];
                if (!km.HasFlag(frag.killFlag))
                {
                    km |= frag.killFlag;
                }
            }
            return(km);
        }