Ejemplo n.º 1
0
        public override bool TakeDamage(DamageInfo info)
        {
            RagdollBone closestRagdollBone = this.GetClosestRagdollBone(info.m_Position);

            if (closestRagdollBone)
            {
                info.m_Damage *= closestRagdollBone.GetDamageMultiplier(false);
            }
            this.m_LastDamageInfo = info;
            bool flag = base.TakeDamage(info);

            if (flag && info.m_Damager && info.m_Damager.GetComponent <ReplicatedLogicalPlayer>())
            {
                PlayerStateModule.Get().OnGiveDamageToAI(this, info);
            }
            return(flag);
        }
Ejemplo n.º 2
0
 public override bool ShowAdditionalInfo()
 {
     return(PlayerStateModule.Get().m_State == PlayerStateModule.State.Combat);
 }
Ejemplo n.º 3
0
 public override bool CanTrigger()
 {
     return((this.m_Trap || PlayerStateModule.Get().m_State != PlayerStateModule.State.Combat) && !ReplicatedPlayerTriggerHelper.IsTriggerExecutedByOtherPlayer(this) && base.CanTrigger());
 }
Ejemplo n.º 4
0
 public override bool CanExecuteActions()
 {
     return(base.enabled && base.CanExecuteActions() && PlayerStateModule.Get().m_State != PlayerStateModule.State.Combat);
 }