From 97eaa31e5f78c70d5d1977247ef047ae547e3a89 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 player even farther. --- scripts/bsSpaz.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/bsSpaz.py b/scripts/bsSpaz.py index dc82c37..d5a29d4 100644 --- a/scripts/bsSpaz.py +++ b/scripts/bsSpaz.py @@ -1744,6 +1744,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