From cdf4e40dffd8ea5e95a7cf3b5b724f62139819b6 Mon Sep 17 00:00:00 2001 From: Marisa Kirisame Date: Fri, 6 Sep 2019 14:22:10 +0200 Subject: [PATCH] Restrict Sentry touch actions to the back. --- zscript/miscitems.zsc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zscript/miscitems.zsc b/zscript/miscitems.zsc index 78b4dd3..cbe530e 100644 --- a/zscript/miscitems.zsc +++ b/zscript/miscitems.zsc @@ -2049,7 +2049,8 @@ Class MinigunSentryBase : Actor override void Touch( Actor toucher ) { if ( !toucher.player || !bSPECIAL ) return; - if ( deathmatch ) + if ( abs(DeltaAngle(angle,AngleTo(toucher))) < 120 ) return; + if ( deathmatch || !master ) { if ( master && (toucher != master) && master.CheckLocalView() ) Console.Printf(StringTable.Localize("$M_SENTRYHIJACK"));