55 |
logpos_file.writeLine("L " @ %client SPC %client.score); |
logpos_file.writeLine("L " @ %client SPC %client.score); |
56 |
} |
} |
57 |
for (%team = 1; %team <= %game.numTeams; %team++) |
for (%team = 1; %team <= %game.numTeams; %team++) |
58 |
logpos_file.writeLine("Z " @ %team SPC $TeamScore[%team]); |
logpos_file.writeLine("Z " @ %team SPC $TeamScore[%team] SPC |
59 |
|
getTaggedString(%game.getTeamName(%team))); |
60 |
logpos_file.close(); |
logpos_file.close(); |
61 |
$logpos_gameover = true; |
$logpos_gameover = true; |
62 |
|
|
170 |
function DefaultGame::onClientKilled(%game, %clVictim, %clKiller, %damageType, |
function DefaultGame::onClientKilled(%game, %clVictim, %clKiller, %damageType, |
171 |
%implement, %damageLocation) |
%implement, %damageLocation) |
172 |
{ |
{ |
173 |
|
if (%damageType == $DamageType::Impact || |
174 |
|
(isObject(%implement) && (%implement.getClassName() $= "Turret" || |
175 |
|
%implement.getClassName() $= "VehicleTurret" || |
176 |
|
%implement.getClassName() $= "FlyingVehicle"))) |
177 |
|
if (%controller = %implement.getControllingClient()) |
178 |
|
%clKiller = %controller; |
179 |
logpos_file.writeLine("K " @ %clVictim SPC %clKiller SPC %damageType); |
logpos_file.writeLine("K " @ %clVictim SPC %clKiller SPC %damageType); |
180 |
Parent::onClientKilled(%game, %clVictim, %clKiller, %damageType, |
Parent::onClientKilled(%game, %clVictim, %clKiller, %damageType, |
181 |
%implement, %damageLocation); |
%implement, %damageLocation); |