Temporarily removed more debug spam.
This commit is contained in:
parent
a36a183178
commit
fd674d870e
22
zscript.zs
22
zscript.zs
@ -52,7 +52,7 @@ class JumperCablesMapLoader : EventHandler
|
||||
|
||||
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()) {
|
||||
deployedCables.Push(cableActor);
|
||||
|
||||
@ -63,13 +63,13 @@ class JumperCablesMapLoader : EventHandler
|
||||
|
||||
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);
|
||||
if(index != deployedCables.size()) {
|
||||
deployedCables.delete(index);
|
||||
|
||||
// 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()
|
||||
{
|
||||
Console.printf("IS THIS EVEN GETTING CALLED!?\n");
|
||||
// Console.printf("IS THIS EVEN GETTING CALLED!?\n");
|
||||
bNoGravity = true;
|
||||
|
||||
// Register us with the global event handler so we can
|
||||
@ -138,7 +138,7 @@ class JumperCablesDeployed : HDUPK
|
||||
void DecrementBattery()
|
||||
{
|
||||
charges -= 1;
|
||||
Console.printf("battery used, now: %d", charges);
|
||||
// Console.printf("battery used, now: %d", charges);
|
||||
if(charges <= 0) {
|
||||
charges = 0;
|
||||
DespawnToBattery();
|
||||
@ -294,7 +294,7 @@ class JumperCablesUsable : HDWeapon
|
||||
TNT1 A 2 A_StartSound("derp/crawl",CHAN_WEAPON,CHANF_OVERLAP);
|
||||
|
||||
TNT1 A 1 {
|
||||
invoker.owner.A_Log("Blep");
|
||||
// invoker.owner.A_Log("Blep");
|
||||
A_WeaponReady(WRF_NOFIRE | WRF_ALLOWRELOAD | WRF_ALLOWUSER4);
|
||||
AttachCables(HDPlayerPawn(invoker.owner));
|
||||
}
|
||||
@ -448,10 +448,10 @@ class JumperCablesUsable : HDWeapon
|
||||
// If we found something broken, then return the closest
|
||||
// thing we found.
|
||||
if(closestLineInRange) {
|
||||
Console.printf(
|
||||
"Dist to line: %f\n",
|
||||
GetDistanceToLine(
|
||||
closestLineInRange, linetraceData.hitLocation));
|
||||
// Console.printf(
|
||||
// "Dist to line: %f\n",
|
||||
// GetDistanceToLine(
|
||||
// closestLineInRange, linetraceData.hitLocation));
|
||||
return closestLineInRange;
|
||||
}
|
||||
|
||||
@ -489,7 +489,7 @@ class JumperCablesUsable : HDWeapon
|
||||
|
||||
// Remove battery from inventory.
|
||||
int batteryCharges = batteryAmmo.TakeMag(true);
|
||||
Console.printf("batteryCharges: %d", batteryCharges);
|
||||
// Console.printf("batteryCharges: %d", batteryCharges);
|
||||
|
||||
if(batteryCharges < 1) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user