[MP4] [SCRIPT MODE][Solved] Not able to disable respawn

Moderators: w1lla, NADEO

Post Reply
User avatar
toffe
Posts: 782
Joined: 15 Jun 2013, 10:57
Location: The Netherlands
Contact:

[MP4] [SCRIPT MODE][Solved] Not able to disable respawn

Post by toffe »

Respawn disabled it will give up on respawn instead of just ignoring the button. Had several servers with several controllers that had this issue on the matchday today. Please look into all the script bugs asap as now litterly every competition is broken.
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: [MP4] [SCRIPT MODE] Not able to disable respawn

Post by Eole »

Are you talking about the S_AllowRespawn setting? It is the intended behavior that when it is set to False, the respawn button will have the same effect that the restart button. It was like that since the first version of the scripts I think.
What you want is probably a new setting that gives you full control over the behavior of the respawn button?
You can try with the modifications from this commit. It adds a new setting S_RespawnBehaviour that you can set to 2 if you want to ignore the respawn button.
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
User avatar
toffe
Posts: 782
Joined: 15 Jun 2013, 10:57
Location: The Netherlands
Contact:

Re: [MP4] [SCRIPT MODE] Not able to disable respawn

Post by toffe »

So it's not a bug, haha nice :P.
Okay, the new setting would be useful then. I can't test right now, but I assume it would work like you committed and tested yourself.

Thanks,
Toffe
nevermind1993
Posts: 6
Joined: 11 May 2017, 18:09

Re: [MP4] [SCRIPT MODE][Solved] Not able to disable respawn

Post by nevermind1993 »

Hello,

Even thought that option will definitely help, I observed the following behavior.

If you disable respawn (set S_AllowRespawn to False) - it happens as described above so I'm assuming S_RespawnBehaviour changes.
But if you enable it again, the respawn behaviour will not change, as it will still act as a retire even though S_AllowRespawn is True.

Apparently only if you toggle between the S_AllowRespawn option you won't be able to enable it again, most likely because of this second option you have mentioned also changes.

I tested it on three servers. I did the toggle option on 2 of them, and now both are stuck with no respawn. On the third server where the S_AllowRespawn was never False, respawn still works as it should.

I'd suggest still taking a look over the script regarding these 2 variables.

Thanks,
MnM| nevermind
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: [MP4] [SCRIPT MODE][Solved] Not able to disable respawn

Post by Eole »

Technically you can only use one setting at a time. If S_RespawnBehaviour is set to anything beside 0, then the value of S_AllowRespawn will be completely ignored. If S_RespawnBehaviour is set to 0, then the S_AllowRespawn setting will take effect.

By default S_AllowRespawn = True and S_RespawnBehaviour = 0

The settings should work as follow:
S_RespawnBehaviour = 0
S_AllowRespawn = True
-> Player respawns when pressing the respawn button

S_RespawnBehaviour = 0
S_AllowRespawn = False
-> Player gives-up when pressing the respawn button

S_RespawnBehaviour = 1
S_AllowRespawn = True/False
-> Player respawns when pressing the respawn button

S_RespawnBehaviour = 2
S_AllowRespawn = True/False
-> Nothing happens when pressing the respawn button

S_RespawnBehaviour = 3
S_AllowRespawn = True/False
-> Player gives-up when pressing the respawn button before crossing the first checkpoint, player respawns when pressing the respawn button after crossing the first checkpoint

S_RespawnBehaviour = 4
S_AllowRespawn = True/False
-> Player gives-up when pressing the respawn button
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
nevermind1993
Posts: 6
Joined: 11 May 2017, 18:09

Re: [MP4] [SCRIPT MODE][Solved] Not able to disable respawn

Post by nevermind1993 »

Thanks a lot for your detailed example.
This really helps a lot.
Post Reply

Return to “Trackmania² Reports”

Who is online

Users browsing this forum: No registered users and 0 guests