Пример #1
0
        void OnInflictedDamage(InflictedDamageInfo info)
        {
            if (!this.isServer)
            {
                return;
            }

            this.TargetInflictedDamage(this.connectionToClient, info.damage, this.timeToDisplay, this.velocity);
        }
Пример #2
0
        private void    OnEarnedKill(InflictedDamageInfo info)
        {
            Player targetPlayer = info.player as Player;

            if (null == targetPlayer)
            {
                this.NumKills++;
            }
            else
            {
                if (m_player != targetPlayer)
                {
                    this.NumKills++;
                }
            }
        }