From 56d4045219a33eaf7512e7c15261d1776eac4282 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 30 Aug 2015 15:45:40 +1000 Subject: [PATCH] Nasty fix for drag cheat --- qcsrc/server/cheats.qc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/cheats.qc b/qcsrc/server/cheats.qc index 4d5821c81..82bc90361 100644 --- a/qcsrc/server/cheats.qc +++ b/qcsrc/server/cheats.qc @@ -1033,7 +1033,13 @@ void Drag_Update(entity dragger) draggee.ltime = max(servertime + serverframetime, draggee.ltime); // fixes func_train breakage - te_lightning1(dragger, dragger.origin + dragger.view_ofs, curorigin); + vector vecs = '0 0 0'; + if(dragger.weaponentity.movedir_x > 0) + vecs = dragger.weaponentity.movedir; + + vector dv = v_right * -vecs_y + v_up * vecs_z; + + te_lightning1(draggee, dragger.origin + dragger.view_ofs + dv, curorigin); } float Drag_CanDrag(entity dragger) -- 2.39.2