Author Topic: Resurrect Command  (Read 7230 times)

Also a team resurrect version of the item! Resurrects a team member that you want to resurrect!

Revival beads, go!

I might actually be able to pull of making an item that resurrects another player of your choice later down the road. Some charm of a sort that when used, disappears and you then select the player from the Player List that you want to resurrect.

As for now i'll try and work on preventing abuse in the said way, but I am not the best coder in the world so it will take me quite some time before it properly works.

You could do a container search for $TypeMasks::CorpseObjectType.

Your script should give the resurrected player at least one life if they are in a TDM minigame to prevent issues.

I get a dead player TDM camera glitch when i jump after being resurrected

Well, yeah. You're technically dead so it'll do the camera modes. If he gives you a life, then it won't.

I don't know how to give a player a life. I tried looking through the TDM code to find out how to add one in, but I was unsuccessful.

As for the abuse-prevention I have tried several things, but I can't figure out the proper way to check if the player you're resurrecting was the last player you resurrected or not.

I've been trying to use getWord, but then decided getRecord would be better. However, setRecord is killing me - my lack of skill in coding is making this difficult.

Somewhere after if the victim is a real player check:
if(%client.lastRessurection == %victim)
{
    messageClient(%client, '', "You cannot resurrect the same person twice in a row");
    return;
}


%client.lastRessurection = %victim;

Now we need to make 1-Up Mushroom items. :D

Can the admin resurrect while he is dead?
If so, change that :x

Why? If he's dead it shouldn't limit him to not be able to.

The script limits admins from resurrecting themselves anyways.

Why? If he's dead it shouldn't limit him to not be able to.

The script limits admins from resurrecting themselves anyways.
It would be sort of impossible to win?

Would be interesting if it were more like this:
-List of contents describing downed system of Zombie Mod here-

It would be sort of impossible to win?
I'm having difficulty understanding what you're trying to say. Do you mean that the admin resurrects other players on his own team while he is dead?

I'm having difficulty understanding what you're trying to say. Do you mean that the admin resurrects other players on his own team while he is dead?
Okay...
I mean that if the admin dies, he can't resurrect his teamates anymore.
Kind of like that game in GoW2 where if your leader dies, teamates can't come back to life.

I made this command mainly for the TDM (even though it doesn't peoperly add you another life) when you are unfairly killed in a TDM with lives, so you can be brought back to life without having to reconnect to the server.

EDIT: Anti-abuse is working correctly now thanks to some help from Kalphiter. Seems I was just making things harder than they should have been and putting things in the wrong places.
« Last Edit: October 16, 2009, 08:40:34 PM by Shappeh »