[Logo]
 
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Resurrection for Medics?!  XML
Forum Index -> Druids RPG Development
Author Message
TheDruidXpawX

Wicked Sick!
[Avatar]

Joined: 12/19/2004 18:32:13
Messages: 1946
Offline

Heya all.

I'm wondering if any of you have some ideas on this.

When a player is killed, there's a period where the game can still interact with their body before it disappears.

I've been thinking that if a medic shoots the corpse, and has some amount of adrenaline, that it resurrects the player.

I think there's a couple ways to do this.
1) Just detonating the corpse and re-spawning them at the same location.

2) Causing the PlayerController to re-possess the corpse, and setting the physics model to walking, and the health to some small value.

I'm wondering if anyone has even looked at any related code, or has any ideas.

Skin download: http://www.disastrousconsequences.com/dcforum/posts/list/1189.page

The fundamental problem is this: The first word we learn as children is NO. From that point forward society teaches women that saying no isn't polite, and society teaches men to respect those who wont take no for an answer.

The world is what you make of it, my friend. If it doesn't fit, you make alterations. -- Stella, The Morning Star
v0rTeX

Wicked Sick!
[Avatar]

Joined: 12/19/2004 20:59:52
Messages: 562
Offline

The only code even close to this I've looked at comes from a 4 pack of adrenaline combos that includes the Revive combo. I stole the code, hacked out the awful sound effects, raised the adrenaline cost, and used it on our server.

Of course the idea of having a revive combo isn't really very close to having a skill that requires a medic be near a corpse when it dies. Do you know exactly how long a body would still be available for the resurrection to take place? I do like the idea that they have to get to the body within a certain time frame rather than just bring someone back whenever they want to.
Szlat

Wicked Sick!

Joined: 05/18/2005 18:32:41
Messages: 2124
Location: UK
Offline

How about using the same idea as the Ghost skill? Essentially just have them Ghosting on the spot for however long you want. Ghost makes the player look faded as he is ghosting - use a similar effect, but perhaps have the player fading in and out.

Perhaps allow medics to heal the player. If at the end of the "Ghost time" the player has less than 150 health, kill them, otherwise bring them out of Ghost.

Or you could have a special "Revive" skill or medic artifact. Looks for players in the suspended state within a certain radius, and adrenaline permitting "revives" them.

You would have to automatically load every player with the "revive Ghost" skill, or have it as a skill players can buy? Ghost level 4?

You would have to sort out contention between the real Ghost skill and the new "revive Ghost".

But it should be possible.
Szlat

Wicked Sick!

Joined: 05/18/2005 18:32:41
Messages: 2124
Location: UK
Offline

Szlat wrote:
How about using the same idea as the Ghost skill? Essentially just have them Ghosting on the spot for however long you want. Ghost makes the player look faded as he is ghosting - use a similar effect, but perhaps have the player fading in and out.

Perhaps allow medics to heal the player. If at the end of the "Ghost time" the player has less than 150 health, kill them, otherwise bring them out of Ghost. 

Could put in a new low cost level 1 of Ghost, and shuffle the existing levels 1-3 to 2-4. The new level of Ghost, which operates first everytime you go below zero health, sets your health to -150 and leaves you immobile. During the next 10 seconds, medics can heal you, but monsters cannot harm. If at the end of 10 seconds you have more than zero health, you re-enter the land of the living, and the medics get a resurrection bonus. If you are still below zero health, then you die (or Ghost levels 2-4 kick in if you have them).

It may be difficult to stop exploits, so the bonus cannot be too large. Medics will get the healing bonus anyway. Will have to make it so the medic only gets the resurrection bonus if the death was not self inflicted.
BotFodder

Wicked Sick!
[Avatar]

Joined: 01/13/2006 15:23:41
Messages: 1239
Location: Florida
Offline

Ghost may be the way to go; I'm not so sure that a "corpse" is necessarily "there" according to the server. Because of how shots act (client side vs server side) when going "through" (or not) a corpse, I've held an opinion (not necessarily correct, but an educated guess) that corpses are client side artifacts - IOW, they don't actually exist on the server for a player to be able to interact with them in any truly meaningful way.

Unless there's a configuration option on the server we don't know about ... or perhaps we need to "create" player corpse objects. Or perhaps little crosses that show up where a player died for however long we want a player to be ressurectable ...

I use the Futurama Prof. Farnsworth Skin: http://www.disastrousconsequences.com/dcforum/posts/list/1595.page
WM: (DC)BotFodder 170
MM: (DC)BotDoctor 141
AM: (DC)BotBooster 147
http://ericdives.com/ - My DC Newbie FAQ: http://tinyurl.com/lz229
Twitter: http://twitter.com/ericdives
[WWW] aim icon [MSN]
 
Forum Index -> Druids RPG Development
Go to: