public override void OnEvent(HitCorpse evnt) { if (evnt.Entity) { NetworkArray_Integer bodyPartsDamage; NetworkArray_Values <int> expr_20 = bodyPartsDamage = evnt.Entity.GetComponentInChildren <CoopSliceAndDiceMutant>().BodyPartsDamage; int num; int expr_28 = num = evnt.BodyPartIndex; num = bodyPartsDamage[num]; expr_20[expr_28] = num - evnt.Damage; } }
public override void OnEvent(HitCorpse evnt) { if (!this.ValidateSender(evnt, SenderTypes.Any)) { return; } if (evnt.Entity && evnt.creepyCorpse) { DamageCorpseSimple componentInChildren = evnt.Entity.GetComponentInChildren <DamageCorpseSimple>(); if (componentInChildren) { componentInChildren.DoLocalCut(evnt.Damage); } } }
private void Hit(int damage) { if (this.ignoreHit) { this.ignoreHit = false; return; } if (base.entity.IsAttached() && BoltNetwork.isRunning) { HitCorpse hitCorpse = HitCorpse.Create(GlobalTargets.Everyone); hitCorpse.Entity = base.entity; hitCorpse.Damage = this.Health - damage; hitCorpse.creepyCorpse = true; hitCorpse.Send(); } this.DoLocalCut(this.Health - damage); }
private void Hit(int damage) { if (!this.animator) { this.animator = base.transform.GetComponentInParent <Animator>(); } if (this.animator && this.animator.GetCurrentAnimatorStateInfo(0).shortNameHash == Scene.animHash.nooseTrapDeathHash) { return; } if (this.ignoreHit) { this.ignoreHit = false; return; } if (this.infected) { LocalPlayer.Stats.BloodInfection.TryGetInfected(); } if (base.entity.IsAttached()) { HitCorpse hitCorpse = HitCorpse.Create(GlobalTargets.OnlyServer); hitCorpse.Entity = base.entity; hitCorpse.Damage = damage; hitCorpse.BodyPartIndex = base.GetComponentInParent <CoopSliceAndDiceMutant>().GetBodyPartIndex(this); hitCorpse.Send(); if (!base.entity.isOwner) { this.DoLocalCut(this.Health - damage); } } else { this.DoLocalCut(this.Health - damage); } }
private void Hit(int damage) { if (this.ignoreHit) { this.ignoreHit = false; return; } if (this.infected) { LocalPlayer.Stats.BloodInfection.TryGetInfected(); } if (this.entity.IsAttached()) { HitCorpse hitCorpse = HitCorpse.Create(GlobalTargets.OnlyServer); hitCorpse.Entity = this.entity; hitCorpse.Damage = damage; hitCorpse.BodyPartIndex = base.GetComponentInParent <CoopSliceAndDiceMutant>().GetBodyPartIndex(this); hitCorpse.Send(); } else { this.DoLocalCut(this.Health - damage); } }
public override void OnEvent(HitCorpse evnt) { if (evnt.Entity) { NetworkArray_Integer bodyPartsDamage; NetworkArray_Values<int> expr_20 = bodyPartsDamage = evnt.Entity.GetComponentInChildren<CoopSliceAndDiceMutant>().BodyPartsDamage; int num; int expr_28 = num = evnt.BodyPartIndex; num = bodyPartsDamage[num]; expr_20[expr_28] = num - evnt.Damage; } }