Collecting some more usage statistics: selected game mode, mission, submarine, content package, traitors on/off, kills

This commit is contained in:
Joonas Rikkonen
2018-07-10 14:05:27 +03:00
parent 51f2455ada
commit c7e220d222
13 changed files with 72 additions and 18 deletions
@@ -1948,8 +1948,19 @@ namespace Barotrauma
AnimController.Frozen = false;
GameServer.Log(LogName+" has died (Cause of death: "+causeOfDeath+")", ServerLog.MessageType.Attack);
GameServer.Log(LogName + " has died (Cause of death: " + causeOfDeath + ")", ServerLog.MessageType.Attack);
string characterType = "Unknown";
if (this == controlled)
characterType = "Player";
else if (IsRemotePlayer)
characterType = "RemotePlayer";
else if (AIController is EnemyAIController)
characterType = "Enemy";
else if (AIController is HumanAIController)
characterType = "AICrew";
GameAnalyticsSDK.Net.GameAnalytics.AddDesignEvent("Kill:" + characterType + ":" + SpeciesName + ":" + causeOfDeath);
if (OnDeath != null) OnDeath(this, causeOfDeath);
KillProjSpecific();