Skip to content

[BUG]: Ragdoll OwnerHub not set #320

@NotZer0Two

Description

@NotZer0Two

Before You Report

  • I have searched for existing reports of this bug, and this bug report is unique.

Version

1.1.4

Description

In this method the player is not being set the OwnerHub of the ragdoll so it causes unwated issues like not being usable by 3114 or 049 ressurection.

Ragdoll.SpawnRagdoll(Player, DamageHandler)

Image Image

To Reproduce

    public override void OnPlayerSpawningRagdoll(PlayerSpawningRagdollEventArgs ev)
    {
        CustomReasonDamageHandler damageHandler = new CustomReasonDamageHandler("Hello World");

        Ragdoll.SpawnRagdoll(ev.Player, damageHandler);

        ev.IsAllowed = false;
        base.OnPlayerSpawningRagdoll(ev);
    }

Expected Behavior

It should be setting the owner

Additional Information

none

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions