Re: [HELP] Instant revive?
FrontEndWarZ.cpp
Search
Quote:
var[2].SetBoolean(timeLeftToRevive<=(timeToReviveInSec-0)); // show revive button after 0 minutes after death to prevent abuse
Replace with
Quote:
var[2].SetBoolean(true);
This will allow for Instant Revive.. i believe..
Either that or you can edit the Function in the Database to return timeToReviveInSec as 0 always regardless. This is probably more sensible.
Re: [HELP] Instant revive?
you are the man dude..thank you..changed the database..I hadn't used "0" there because using it in the FrontEndWarZ caused errors..which could've been something I overlooked..but it works fine now..much appreciated GetRekt!!!
note/question
I had already had my revive button enabled..my question being now..disabling the timer?
Would changing the (60-int (time) here to zero cancel it out..or am I looking in the wrong place?
if(bDead)
{
float time = r3dGetTime() - TimeOfDeath;
int t = R3D_MAX(60-int(time), 0);
hudMain->updateDeadTimer(t);
}
{
float bloodAlpha = 1.0f-R3D_MIN(r3dGetTime()-lastTimeHit, 1.0f);
hudMain->setBloodAlpha(bloodAlpha);
}