From e0390c973bd73f513e9cdd84f5a49e762033dc91 Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Fri, 12 Apr 2024 17:43:40 -0700 Subject: [PATCH] Trample Steam: fix player fling when jumping --- README.md | 1 + scripts/zm/replaced/_zm_equip_springpad.gsc | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 8a242f6a..f9812b3f 100644 --- a/README.md +++ b/README.md @@ -838,6 +838,7 @@ * No longer gets destroyed from kills * Gets destroyed after activating 15 times * Does fast cooldown when player activates +* Fixed an issue where players were not flung correctly when activating the Trample Steam while in the air ### Head Chopper * No longer gets destroyed from kills diff --git a/scripts/zm/replaced/_zm_equip_springpad.gsc b/scripts/zm/replaced/_zm_equip_springpad.gsc index d2aac098..54fe1be5 100644 --- a/scripts/zm/replaced/_zm_equip_springpad.gsc +++ b/scripts/zm/replaced/_zm_equip_springpad.gsc @@ -112,6 +112,7 @@ player_fling(origin, angles, velocity, weapon) trace = physicstrace(origin, torigin, vectorscale((-1, -1, 0), 15.0), (15, 15, 30), self); self setorigin(aorigin); + self setvelocity((0, 0, 0)); wait_network_frame(); self setvelocity(velocity); }