From 32673a4fd2390f6630878f4e33f370e59296beed Mon Sep 17 00:00:00 2001
From: Anton Sarukhanov <code@ant.sr>
Date: Sat, 5 Sep 2020 11:26:27 -0400
Subject: [PATCH] Prevent using bombs

---
 scripts/bsSpaz.py | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/scripts/bsSpaz.py b/scripts/bsSpaz.py
index 8637e86..b2868a7 100644
--- a/scripts/bsSpaz.py
+++ b/scripts/bsSpaz.py
@@ -1395,6 +1395,20 @@ class Spaz(bs.Actor):
                                                  _BombDiedMessage()))
         self._pickUp(bomb.node)
 
+        # yeet bomb
+        mag = 4000
+        velocityMag = 2000
+        radius = 0
+        velocity = [150, 130, 100]
+        forceDirection = [0, 200, 0]
+        pos = self.node.position
+        bomb.node.handleMessage(
+            "impulse", pos[0], pos[1], pos[2],
+            velocity[0], velocity[1], velocity[2],
+            mag, velocityMag, radius, 0,
+            forceDirection[0], forceDirection[1],
+            forceDirection[2])
+
         for c in self._droppedBombCallbacks: c(self, bomb)
         
         return bomb
-- 
GitLab