{new_thread_prefill}within this framework, what do i have to
replace [if the player killed the enemy ] with ?
var int FragCount;
function ScoreKill(Pawn Killer, Pawn Other)
{
if ((Killer != Other) && (Other != None) && (Killer != None))
{
if ( [if the player killed the enemy ] )
{
FragCount += 1;
}
else { [ enemy killed the player ]
FragCount = 0;
}
}
if ( (Other != None) && ((Killer == None) || (Killer == Other)) )
{
FragCount = 0;
}
Super.ScoreKill(Killer, Other);
}
defaultproperties
{
FriendlyName="Frag/Death Count Mutator"
Description="Counts Frags since last death."
}
thx.
replace [if the player killed the enemy ] with ?
var int FragCount;
function ScoreKill(Pawn Killer, Pawn Other)
{
if ((Killer != Other) && (Other != None) && (Killer != None))
{
if ( [if the player killed the enemy ] )
{
FragCount += 1;
}
else { [ enemy killed the player ]
FragCount = 0;
}
}
if ( (Other != None) && ((Killer == None) || (Killer == Other)) )
{
FragCount = 0;
}
Super.ScoreKill(Killer, Other);
}
defaultproperties
{
FriendlyName="Frag/Death Count Mutator"
Description="Counts Frags since last death."
}
thx.
Comment