Skip to content

[Bug] OnAPlayerDownedAnotherPlayer runs after <TPlayer>OnSpawned #95

@MapleEve

Description

@MapleEve

Describe the bug
In fast respawn server, the SuicideC4 is overpowered.
So in code I decide to let ppl who use SuicideC4 10x down time and respawn time.
But the thing is if you put in OnAPlayerDownedAnotherPlayer

args.Victim.Modifications.RespawnTime = 20f;
args.Victim.Modifications.DownTimeGiveUpTime = 180f;

if someone just suicide.

and put in OnSpawned

Modifications.DownTimeGiveUpTime = 15.0f;
Modifications.RespawnTime = 2.0f;

it will NOT change anything this player's real DownTimeGiveUpTime and RespawnTime

To Reproduce
Steps to reproduce the behavior:
Set the same thing discribed.
Player's DownTimeGiveUpTime bar is 15/180s, not 180/180s, and RespawnTime is 2s not 20s.

Expected behavior
If you suicide, you should have 180s DownTimeGiveUpTime and 20s RespawnTime

Screenshots
image

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions