Bug #301

session<NUM> and sessionstats<NUM> cvars are not cleaned/reset after /map_restart

Added by IR4T4 almost 6 years ago. Updated over 3 years ago.

Status:New% Done:

0%

Priority:Normal
Assignee:-
Category:Mod generic
Target version:2.78
OS: Arch:

Description

As the title says - clients don’t start with empty stats.

History

#1 Updated by IR4T4 almost 6 years ago

  • Target version changed from 2.71rc2 to 2.78

#2 Updated by Spyhawk over 4 years ago

I cannot reproduce, is this issue still valid? Stats seem reset after map_restart.

#3 Updated by Saukko over 4 years ago

Yeah. Same here, can’t reproduce.

-*S

#4 Updated by IR4T4 over 4 years ago

  • Subject changed from Client weapon stats aren't reset after /map_restart cmd to session<NUM> and sessionstats<NUM> cvars are not cleaned/reset after /map_restart

Title is updated and more precise. Basically we don’t call G_WriteClientSessionData while map_restart process.

#5 Updated by Spyhawk over 4 years ago

IR4T4 wrote:

Basically we don’t call G_WriteClientSessionData while map_restart process.

I’m actually not sure we should do that. For example, client→sess.sessionTeam or client→sess.playerWeapon shouldn’t be reset, right? We might want to call G_deleteStats() instead.

#6 Updated by IR4T4 over 3 years ago

We have to have a closer look here. I’m not sure if all these stat values should be cleaned in campaign mode f.e.

Also available in: Atom PDF