/[james]/t2matchlog/logpositiondata.cs
ViewVC logotype

Diff of /t2matchlog/logpositiondata.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 36 by james, Mon Nov 24 23:57:14 2003 UTC revision 37 by james, Sat Nov 29 23:01:29 2003 UTC
# Line 55  function DefaultGame::gameOver(%game) Line 55  function DefaultGame::gameOver(%game)
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    
# Line 169  function DefaultGame::playerSpawned(%gam Line 170  function DefaultGame::playerSpawned(%gam
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);

Legend:
Removed from v.36  
changed lines
  Added in v.37

  ViewVC Help
Powered by ViewVC 1.1.26