Coop Respawning

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
Post Reply
User avatar
camaxide
Posts: 382
Joined: Thu Jun 11, 2015 8:38 am

Coop Respawning

Post by camaxide »

Is there a way to disable respawning in Coop? eventually only make a player respawn if the remaining player(s) reach the exit and get to the next map?
I use a mod that allows resurection, and would like to disable the respawn when pressing use.
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

Re: Coop Respawning

Post by Matt »

The crudest way is to have a custom ZScript playerpawn with the following to turn off all player Use key input:

Code: Select all

    override void DeathThink()
    {
        if(player)player.cmd.buttons&=~BT_USE;
        super.DeathThink();
    } 
Post Reply

Return to “General”