#How to make ragdoll with CustomDamageHandler

1 messages · Page 1 of 1 (latest)

mental peak
#

Hello
I make a CustomAttackerDamageHandler.
when player died with it. it dose not create ragdoll.

How i do it make a ragdoll?

    public class CustomAttackerDamageHandler : AttackerDamageHandler
    {
        public override Footprint Attacker { get; set; }
        public override bool AllowSelfDamage => false;
        public override float Damage { get; set; }
        public override string RagdollInspectText => _deathReason;
        public override string DeathScreenText => _deathReason;
        public override string ServerLogsText => $"Custom attacker ({Attacker.Nickname}, {Attacker.Role.ToString()})";

        public string _deathReason;

        public CustomAttackerDamageHandler(ReferenceHub attacker, string customReason, float damage, string customCassieAnnouncement = "")
        {
            Attacker = new Footprint(attacker);
            _deathReason = customReason;
            Damage = damage;;

        }
    }```
glass lily
#

if not, just change the values in AttackerDamageHandler

mental peak
#

I need to attacker and customreason

#

really?

quick hare
#

the reason being is that your class is needed on the client too

#

cant render if it doesnt know the damage handler

glass lily
#

^

quick hare
#

so you have to use CustomReasonDamageHandler

glass lily
#

you can use the CustomReasonFirearmDamageHandler

mental peak
#

i see.

#

thakyou

quick hare
#

or firearm too, ye

glass lily
#

np