I can't merge your post Crev... wtf?!!
I can't merge your post Crev... wtf?!! log("Player lives is at:"@P.PlayerReplicationInfo.Deaths);
log("LivesLimit is at:"@LivesLimit);
if(P.PlayerReplicationInfo.Deaths < LivesLimit)
P.PlayerReplicationInfo.Deaths = (P.PlayerReplicationInfo.Deaths) + ExtraLivesAwarded;ScriptLog: Player lives is at: 9.000000
ScriptLog: LivesLimit is at: 10
JackGriffin wrote:I tested the ExtraLife and it does not work right. I have this bit of code in it:
- Code: Select all
log("Player lives is at:"@P.PlayerReplicationInfo.Deaths);
log("LivesLimit is at:"@LivesLimit);
if(P.PlayerReplicationInfo.Deaths < LivesLimit)
P.PlayerReplicationInfo.Deaths = (P.PlayerReplicationInfo.Deaths) + ExtraLivesAwarded;
and it logs out like this:ScriptLog: Player lives is at: 9.000000
ScriptLog: LivesLimit is at: 10
P.PlayerReplicationInfo.Deaths = (P.PlayerReplicationInfo.Deaths) + ExtraLivesAwarded;P.PlayerReplicationInfo.Deaths += ExtraLivesAwarded;ScriptLog: Player lives is at: 2.000000
ScriptLog: LivesLimit is at: 10
ScriptLog: Extra lives awarded: 1
ScriptLog: New player lives is: 3.000000
ScriptLog: Player lives is at: 3.000000
ScriptLog: LivesLimit is at: 10
ScriptLog: Extra lives awarded: 1
ScriptLog: New player lives is: 4.000000
ScriptLog: Player lives is at: 4.000000
ScriptLog: LivesLimit is at: 10
ScriptLog: Extra lives awarded: 1
ScriptLog: New player lives is: 5.000000
ScriptLog: Player lives is at: 5.000000
ScriptLog: LivesLimit is at: 10
ScriptLog: Extra lives awarded: 1
ScriptLog: New player lives is: 6.000000
function inventory SpawnCopy( pawn Other )
{
local inventory Copy;
if( Level.Game.ShouldRespawn(self) )
{
Copy = spawn(Class,Other,,,rot(0,0,0));
Copy.Tag = Tag;
Copy.Event = Event;
GotoState('Sleeping');
}
else
Copy = self;
Copy.RespawnTime = 0.0;
Copy.bHeldItem = true;
Copy.GiveTo( Other );
return Copy;
}function inventory SpawnCopy( pawn Other )
{
local inventory Copy;
Copy = Super.SpawnCopy(Other);
Copy.Charge = Charge;
return Copy;
}

Users browsing this forum: No registered users and 2 guests