Resurrect: Ability to revive players in coop

Sprites, textures, sounds, code, and other resources belong here. Share and share-alike!
Forum rules
Before posting your Resource, please make sure you can answer YES to any of the following questions:
  • Is the resource ENTIRELY my own work?
  • If no to the previous one, do I have permission from the original author?
  • If no to the previous one, did I put a reasonable amount of work into the resource myself, such that the changes are noticeably different from the source that I could take credit for them?
If you answered no to all three, maybe you should consider taking your stuff somewhere other than the Resources forum.

Consult the Resource/Request Posting Guidelines for more information.

Please don't put requests here! They have their own forum --> here. Thank you!

Resurrect: Ability to revive players in coop

Postby sylandro » Wed Jun 14, 2017 2:31 pm

A while back I read a post of someone asking for the ability to revive dead players in coop without respawning: https://forum.zdoom.org/viewtopic.php?f=3&t=51692&start=0. There were some hacky proposals implemented through ACS, but none felt very natural. Through ZScript, I've been able to implement this very quickly without a hassle.

For those who haven't read the original thread, what you get is the following:

- A custom key (defaults to R) that can be used to revive a dead player, if you're standing next to its corpse.
- The cvar resurrect_seconds controls how many seconds it takes to revive a player (defaults to 3).
- The cvar resurrect_life controls the amount of health the player is revived with (defaults to 1).
- A custom menu to modify the above values.
- The mod is universal, should work with any IWAD/PWAD.
- Only works in cooperative mode.
- If you want to fully disable respawning, you should start the game with the sv_norespawn gameplay flag enabled. That way you're forced to load a game if everyone falls.

Image

Requires GZDoom 3.1.0+!

Download:
http://www.mediafire.com/file/jaf551q46gz38y8/Resurrect.pk3
sylandro
 
Joined: 17 Feb 2015

Re: Resurrect: Ability to revive players in coop

Postby cmw1986 » Thu Jun 15, 2017 5:31 pm

Do they come back as zombies or fully human?.
cmw1986
 
Joined: 09 Jan 2012

Re: Resurrect: Ability to revive players in coop

Postby sylandro » Thu Jun 15, 2017 5:32 pm

Fully human, with 1 HP (tweakable through the resurrect_life cvar).
sylandro
 
Joined: 17 Feb 2015

Re: Resurrect: Ability to revive players in coop

Postby cmw1986 » Thu Jun 15, 2017 5:34 pm

Okay, just wondering. 8-)
cmw1986
 
Joined: 09 Jan 2012

Re: Resurrect: Ability to revive players in coop

Postby Jblade » Fri Jun 16, 2017 2:09 pm

This is pretty cool, hopefully it gets some good use in servers and stuff.
User avatar
Jblade
 
Joined: 25 Jun 2010
Location: England

Re: Resurrect: Ability to revive players in coop

Postby PandaDoomer » Sat Jun 17, 2017 1:38 am

cmw1986 wrote:Do they come back as zombies or fully human?.


I think it would be pretty cool if a player not revived in time would turn into a hostile zombieman.
User avatar
PandaDoomer
I suck at making DOOM mods.
 
Joined: 12 Apr 2015
Location: FL, USA
Discord: PedroThePanda64#1661

Re: Resurrect: Ability to revive players in coop

Postby camaxide » Thu Dec 13, 2018 11:22 am

This pk3 is simply amazing.. been using it for hours and hours in Coop already.. :)
This version 2.4 however got activator and activatee mixed up in the text on screen so when player 1 resurrects player 2 it says player 1 is being resurrect by player 2 and vice versa. Is there an easy fix?
I tried going through the code but could not pinpoint where I need to make the change :)
Would be nice with a 2.5 with that solved.
User avatar
camaxide
 
Joined: 11 Jun 2015


Return to Resources

Who is online

Users browsing this forum: Trendiction.de [Bot] and 3 guests