From 70f9b3b65566b9b330cbfd6b0392c24d250a4431 Mon Sep 17 00:00:00 2001 From: Alexander Kromm Date: Wed, 25 Dec 2019 20:51:00 +0700 Subject: [PATCH] move cloned monsters a bit --- cvarinfo.txt | 1 + zscript/x5_EventHandler.zs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/cvarinfo.txt b/cvarinfo.txt index 5b5c87e..9315a1f 100644 --- a/cvarinfo.txt +++ b/cvarinfo.txt @@ -1,2 +1,3 @@ server int x5_multiplier = 100; server bool x5_raise_divided = false; +server int x5_thrust = 2; diff --git a/zscript/x5_EventHandler.zs b/zscript/x5_EventHandler.zs index 9669432..124bf01 100644 --- a/zscript/x5_EventHandler.zs +++ b/zscript/x5_EventHandler.zs @@ -172,6 +172,8 @@ class x5_EventHandler : EventHandler spawned.target = original.target; spawned.tracer = original.tracer; spawned.CopyFriendliness(original, false); + + spawned.Thrust(x5_thrust, random(0, 360)); } // private: ////////////////////////////////////////////////////////////////////