Temporarily removed more debug spam.

This commit is contained in:
Kiri 2023-03-26 11:26:21 -07:00
parent a36a183178
commit fd674d870e

View File

@ -52,7 +52,7 @@ class JumperCablesMapLoader : EventHandler
void RegisterCables(JumperCablesDeployed cableActor) void RegisterCables(JumperCablesDeployed cableActor)
{ {
Console.printf("REGISTERING %d\n", deployedCables.Find(cableActor)); // Console.printf("REGISTERING %d\n", deployedCables.Find(cableActor));
if(deployedCables.Find(cableActor) == deployedCables.size()) { if(deployedCables.Find(cableActor) == deployedCables.size()) {
deployedCables.Push(cableActor); deployedCables.Push(cableActor);
@ -63,13 +63,13 @@ class JumperCablesMapLoader : EventHandler
void UnregisterCables(JumperCablesDeployed cableActor) void UnregisterCables(JumperCablesDeployed cableActor)
{ {
Console.printf("UNREGISTERING %d\n", deployedCables.Find(cableActor)); // Console.printf("UNREGISTERING %d\n", deployedCables.Find(cableActor));
int index = deployedCables.find(cableActor); int index = deployedCables.find(cableActor);
if(index != deployedCables.size()) { if(index != deployedCables.size()) {
deployedCables.delete(index); deployedCables.delete(index);
// FIXME: Remove this. // FIXME: Remove this.
Console.printf("Cables unregistered %d\n", deployedCables.size()); // Console.printf("Cables unregistered %d\n", deployedCables.size());
} }
} }
} }
@ -96,7 +96,7 @@ class JumperCablesDeployed : HDUPK
override void PostBeginPlay() override void PostBeginPlay()
{ {
Console.printf("IS THIS EVEN GETTING CALLED!?\n"); // Console.printf("IS THIS EVEN GETTING CALLED!?\n");
bNoGravity = true; bNoGravity = true;
// Register us with the global event handler so we can // Register us with the global event handler so we can
@ -138,7 +138,7 @@ class JumperCablesDeployed : HDUPK
void DecrementBattery() void DecrementBattery()
{ {
charges -= 1; charges -= 1;
Console.printf("battery used, now: %d", charges); // Console.printf("battery used, now: %d", charges);
if(charges <= 0) { if(charges <= 0) {
charges = 0; charges = 0;
DespawnToBattery(); DespawnToBattery();
@ -294,7 +294,7 @@ class JumperCablesUsable : HDWeapon
TNT1 A 2 A_StartSound("derp/crawl",CHAN_WEAPON,CHANF_OVERLAP); TNT1 A 2 A_StartSound("derp/crawl",CHAN_WEAPON,CHANF_OVERLAP);
TNT1 A 1 { TNT1 A 1 {
invoker.owner.A_Log("Blep"); // invoker.owner.A_Log("Blep");
A_WeaponReady(WRF_NOFIRE | WRF_ALLOWRELOAD | WRF_ALLOWUSER4); A_WeaponReady(WRF_NOFIRE | WRF_ALLOWRELOAD | WRF_ALLOWUSER4);
AttachCables(HDPlayerPawn(invoker.owner)); AttachCables(HDPlayerPawn(invoker.owner));
} }
@ -448,10 +448,10 @@ class JumperCablesUsable : HDWeapon
// If we found something broken, then return the closest // If we found something broken, then return the closest
// thing we found. // thing we found.
if(closestLineInRange) { if(closestLineInRange) {
Console.printf( // Console.printf(
"Dist to line: %f\n", // "Dist to line: %f\n",
GetDistanceToLine( // GetDistanceToLine(
closestLineInRange, linetraceData.hitLocation)); // closestLineInRange, linetraceData.hitLocation));
return closestLineInRange; return closestLineInRange;
} }
@ -489,7 +489,7 @@ class JumperCablesUsable : HDWeapon
// Remove battery from inventory. // Remove battery from inventory.
int batteryCharges = batteryAmmo.TakeMag(true); int batteryCharges = batteryAmmo.TakeMag(true);
Console.printf("batteryCharges: %d", batteryCharges); // Console.printf("batteryCharges: %d", batteryCharges);
if(batteryCharges < 1) { if(batteryCharges < 1) {