From: Samual Lenks Date: Fri, 1 Mar 2013 22:58:23 +0000 (-0500) Subject: backtraces for debugging purposes X-Git-Tag: xonotic-v0.7.0~62^2~23^2~50 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=48e843b3fc0244d8324f550d48c2893149124c2c;p=xonotic%2Fxonotic-data.pk3dir.git backtraces for debugging purposes --- diff --git a/qcsrc/server/mutators/gamemode_keyhunt.qc b/qcsrc/server/mutators/gamemode_keyhunt.qc index 5c357a205..4dce7134b 100644 --- a/qcsrc/server/mutators/gamemode_keyhunt.qc +++ b/qcsrc/server/mutators/gamemode_keyhunt.qc @@ -405,6 +405,8 @@ void kh_Key_Collect(entity key, entity player) //a player picks up a dropped ke PlayerScore_Add(player, SP_KH_PICKUPS, 1); } key.kh_dropperteam = 0; + + backtrace("keyhunt pickup\n"); Send_Notification(NOTIF_ANY, world, MSG_INFO, APP_TEAM_ENT_4(key, INFO_KEYHUNT_PICKUP_), player.netname); kh_Key_AssignTo(key, player); // this also updates .kh_state @@ -513,6 +515,7 @@ void kh_WinnerTeam(float teem) // runs when a team wins // Samual: Teem?.... TE first = FALSE; } + backtrace("keyhunt capture\n"); Send_Notification(NOTIF_ANY, world, MSG_INFO, APP_TEAM_NUM_4(teem, INFO_KEYHUNT_CAPTURE_), keyowner); first = TRUE; @@ -627,7 +630,8 @@ void kh_LoserTeam(float teem, entity lostkey) // runs when a player pushes a fl --j; } } - + + backtrace("keyhunt lost\n"); Send_Notification(NOTIF_ANY, world, MSG_INFO, APP_TEAM_ENT_4(lostkey, INFO_KEYHUNT_LOST_), lostkey.kh_previous_owner.netname); play2all(kh_sound_destroy);