When an npc is mounted his damage he takes from bullets is reduced. DEEFAULT RUST... So i was wondering is there a way around this or do i need to add a method to add more damage cause its scaled by default.
public override void Hurt(HitInfo info)
{
if (this.isMounted)
info.damageTypes.ScaleAll(0.1f);
base.Hurt(info);
BaseEntity initiator = info.Initiator;
if (!((UnityEngine.Object) initiator != (UnityEngine.Object) null) || initiator.EqualNetID((BaseNetworkable) this))
return;
this.Brain.Senses.Memory.SetKnown(initiator, (BaseEntity) this, (AIBrainSenses) null);
}
Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.