From: Mario Date: Sun, 30 Aug 2015 05:45:40 +0000 (+1000) Subject: Nasty fix for drag cheat X-Git-Tag: xonotic-v0.8.2~1981 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=56d4045219a33eaf7512e7c15261d1776eac4282;p=xonotic%2Fxonotic-data.pk3dir.git Nasty fix for drag cheat --- 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)