<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
My guess is that the game-engine destroys/resets them rather than a
python script<br>
<br>
<div class="moz-signature"><big><font face="Verdana" size="-2"><big>Mortis<br>
<a href="http://etbf.kicks-ass.net">European Tactical Battlefield Forces</a></big></font></big></div>
<br>
<br>
Forrest Thiessen schreef:
<blockquote cite="mid42F28420.4030306@alum.mit.edu" type="cite">
  <pre wrap="">Yes, getting your points back is a feature: it's in the Python code in
Battlefield 2/python/bf2/stats/stats/py (look for the onPlayerConnect
function); it keeps a copy of all players' bf2.PlayerManager.PlayerScore
objects, even disconnected players. When new players connect, it tries
to match their profile ID against the profile IDs of any of the
"disconnected" PlayerScore objects it has.  If it finds a match
(presumably because you were disconnected from the game and are now
rejoining) it copies your old PlayerScore object into your new Player
object, and you're back, good as new. If you come back in the same round
you left, you pick up just where you left off, score-wise.

Looking through the code, I don't see anywhere where these saved copies
of PlayerScore objects *ever* get erased. The scores within for
connected players get reset at the beginning of each round, but the
datastructures look like they stay there intact until the server is
restarted.

--Forrest (aka "Woody")

Brian Hughes wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">The unranked server DOES remember scores etc when u reconnect during the
same round. Have observed this on our server on numerous occasions

Brian


 

    </pre>
    <blockquote type="cite">
      <pre wrap="">-----Original Message-----
From: "Einar S. Ids&oslash;" [<a class="moz-txt-link-freetext" href="mailto:esi@itk.ntnu.no">mailto:esi@itk.ntnu.no</a>]
Sent: 04 August 2005 14:54
To: <a class="moz-txt-link-abbreviated" href="mailto:bf1942@icculus.org">bf1942@icculus.org</a>
Subject: Re: [bf1942] Zombie players?

Jani Partanen wrote:
   

      </pre>
      <blockquote type="cite">
        <pre wrap="">On Thu, 4 Aug 2005, "Einar S. Ids&oslash;" wrote:

     

        </pre>
        <blockquote type="cite">
          <pre wrap="">Well, yes. The game does indeed reattach you to your stats after a
disconnect if you reenter during the same round (which is also the
reason why we have no bans lasting less than the time until the round
runs out).
       

          </pre>
        </blockquote>
        <pre wrap="">Is this a ranked server feature or both?
     

        </pre>
      </blockquote>
      <pre wrap="">You mean the reattaching to your disconnected playerobject? I don't
know, but definitely for ranked servers. Guess it's not as important for
unranked servers, but it may still be enabled on those. Anyone tried
this on an unranked server?

Einar
   

      </pre>
    </blockquote>
    <pre wrap="">


 

    </pre>
  </blockquote>
  <pre wrap=""><!---->

  </pre>
</blockquote>
</body>
</html>