From 5fa306b4159449ebe8f6f1360e12b7ee96770bd7 Mon Sep 17 00:00:00 2001 From: Anton Sarukhanov <code@ant.sr> Date: Sat, 5 Sep 2020 11:28:25 -0400 Subject: [PATCH] Throw players even farther. --- scripts/bsSpaz.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/bsSpaz.py b/scripts/bsSpaz.py index 3accc30..5213e53 100644 --- a/scripts/bsSpaz.py +++ b/scripts/bsSpaz.py @@ -1746,6 +1746,19 @@ class PlayerSpaz(Spaz): try: pickedUpBy = msg.node.sourcePlayer except Exception: pickedUpBy = None if pickedUpBy is not None and pickedUpBy.exists(): + # Yeet + mag = 2500 + velocityMag = 1500 + radius = 0 + velocity = [10, 20, 10] + forceDirection = [20, 200, 100] + pos = self.node.position + self.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]) self.lastPlayerAttackedBy = pickedUpBy self.lastAttackedTime = bs.getGameTime() self.lastAttackedType = ('pickedUp', 'default') -- GitLab