]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
backtraces for debugging purposes
authorSamual Lenks <samual@xonotic.org>
Fri, 1 Mar 2013 22:58:23 +0000 (17:58 -0500)
committerSamual Lenks <samual@xonotic.org>
Fri, 1 Mar 2013 22:58:23 +0000 (17:58 -0500)
qcsrc/server/mutators/gamemode_keyhunt.qc

index 5c357a2050e1f5746ecb54ac0995cdf3fd8802bb..4dce7134b6f52e6aab6c360cad6d46dfc3517d4b 100644 (file)
@@ -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);