diff --git a/scripts/bsSpaz.py b/scripts/bsSpaz.py index e5480bd498268a66ad5c1b85a66442168af7a732..6f9c916785a1dc84954ebde3961d3ac997586293 100644 --- a/scripts/bsSpaz.py +++ b/scripts/bsSpaz.py @@ -1746,6 +1746,20 @@ class PlayerSpaz(Spaz): try: pickedUpBy = msg.node.sourcePlayer except Exception: pickedUpBy = None if pickedUpBy is not None and pickedUpBy.exists(): + # Yeet + mag = 500 + velocityMag = 1000 + radius = 0 + V_MULT = (50, 10, 50) + V_ADD = (0, 10, 0) + v = tuple( + (v * vm) + va for v, vm, va in zip( + pickedUpBy.actor.node.velocity, V_MULT, V_ADD)) + pos = self.node.position + self.node.handleMessage( + "impulse", pos[0], pos[1], pos[2], + v[0], v[1], v[2], + mag, velocityMag, radius, 0, v[0], v[1], v[2]) self.lastPlayerAttackedBy = pickedUpBy self.lastAttackedTime = bs.getGameTime() self.lastAttackedType = ('pickedUp', 'default')