-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Force player respawn to match vanilla #554
Conversation
respawning a player may have many things to consider, like, player will have to watch replays, and they're always respawn as pilot if timer runs out.
|
Honestly I think you have overengineered this a lot. Waiting for kill cam to be over first I agree with, but you shouldn't need to set the persistent var or check the gamestate? Players are forced to respawn no matter the gamestate (if they can respawn), and the persistent var should really be being set elsewhere. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as expected, code looks good
As discussed in the review by @catornot there should be a ns_force_respawn
to disable this. Might also be worth using it to get the delay ( eg ns_force_respawn 0
would disable this behaviour, ns_force_respawn 5
would wait 5 seconds before respawning )
I agree, but |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works as expected, code looks good. I was able to join servers without this with no problems
NOTE: I contributed to this PR so would be cool if someone else reviewed this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code looks good and everything worked in testing
5 second cool down
Untitled.1.mp4
0 second cool down :)
Untitled.3.mp4
-1 second cool down worked as expected
Forces player respawn after 5 seconds of the respawn button being available (idk if that's accurate but can be changed whenever)
This should probably be made a private match setting or something? Some servers might want it off, but it is kinda necessary for gamemodes like MFD