From 494ec674c1475f74e90356a3dc737d3a90a0ae37 Mon Sep 17 00:00:00 2001 From: Eddoursul Date: Wed, 24 Jan 2024 17:57:20 +0100 Subject: [PATCH] Removed removal of the protected flag from bounty targets (no need) --- scripts/_00e_nq_bounty01_targetscript.pex | Bin 1858 -> 1575 bytes .../scripts/_00e_nq_bounty01_targetscript.psc | 14 +++----------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/scripts/_00e_nq_bounty01_targetscript.pex b/scripts/_00e_nq_bounty01_targetscript.pex index 22e622e898c844a4ac998701ff4cbd2b57315e25..1f1d56368b3eb67e51c1ca145c00d183c0991489 100644 GIT binary patch delta 772 zcmZ9I&rTXq6vn?Ze*{GaM1>+16m0>K7HVq~R@Qw@?8c>`Fh&wOQ*khH#WRpux^rW? zZ2AJG57I~I19a8z-f?W>y~)fu-}&8hzI%Tq=x7ATno!81XTnW?I2!5ZsSOaG}fnWy2$C1lok zo#kkzGOsRU>6R5v-@qoSaHdGIVO5Z3!z}^dM~^Wm+9HAq12xx z$WP=;k}t`JdKFUk*bdppURzHFB-?mICQAWsa?Mfq(k4*ItbX6@7!)mpbSA`2#}`q z8f?l_Obf3g6IeThIwM*HNisN?3jGT%J!=Tq=NsE3Ydw~if z>4jANiTfP0^!YRlyo8opt@#3OyqNOu#+)d6&}!MbY&otDt=<#dA4^|TC$!#bx$apc z`@z5sI@0Tge5%C{*c{DXNJW)-Mp~T9Oe_C$n0|db8L^{=>=<26qA49YzV34DsK{ZH z$^g2aF4So@UO4;s9W?5W72-&~1(2^N4&QJ*arPQ&XqhPYCX!4i-%Sevk*A#GHcEo5uusKS z%Wf-?Z1W(Hb_ciO>rq3;wb7(pJBq?|yGJ#vB2MR*M)p(V73Do&MRB@6parw@L`VWw(d=z>UAXn~v(|SDPB>n0)D39+_P)7d? zXd{~%Iiea>@2nbpAI+A=<9LZ4(F#4mTBS95ilqYuqB1#VZPF%fW9^ugp(4%*KyYRL zq6KT=p2dkpo4-O!)~F(*xw1&RWT8c>&@zyQp@>5d0Qy*?iqNZ>^Wb_2S>_V-82SW# z0#|lL&=Wzc*qKU~1g#+s@6$OiMPJL>Z+rjm#D3QXA^bl8q2dJyQ#*ypj|YrA*hbvp0Qq< zAe0-UU^M{IOf~Goey`zv92)21Q;iu6?Ufmzxe3f{4TGHt7jyurIV1EC13H5EV?0Zc zcZ~KU&543p)g?Wnf3z3&1fvU%x+?H3#zq_@PE*FxqbfRj~aJ DF-dOP diff --git a/source/scripts/_00e_nq_bounty01_targetscript.psc b/source/scripts/_00e_nq_bounty01_targetscript.psc index 054992de..23981d4a 100644 --- a/source/scripts/_00e_nq_bounty01_targetscript.psc +++ b/source/scripts/_00e_nq_bounty01_targetscript.psc @@ -4,7 +4,7 @@ Scriptname _00E_NQ_Bounty01_TargetScript extends ReferenceAlias ; Script handles Bandit appearance and checks if bounty job is done ; SCRIPT CHANGE TILL MAY 2018 ; Added-in Body Clean-up suggested by gavrant for performance reasons, check out WIDeadBodyCleanupScript for original code -; Eddoursul, January 2024: Made bounty targets protected instead of essential +; Eddoursul, January 2024: Made bounty targets protected instead of essential. Protected actors can be killed by apparitions as well. ; ==================================================================================== ; EVENTS @@ -13,6 +13,8 @@ Scriptname _00E_NQ_Bounty01_TargetScript extends ReferenceAlias Event OnCellAttach() ;FIRE WHEN PLAYER ENTERS THE CELL THE NEEDED ACTOR IS IN If NQ_Bounty01.GetCurrentStageID() == __Config_iEnableAtStage && GetReference().IsDisabled() GetReference().Enable() ; Enable the bandit when he is needed in the quest + + ; Technically, not required since 2.1, adding this in case of overwrite by an outdated mod (GetReference() as Actor).GetActorBase().SetEssential(false) Endif EndEvent @@ -28,16 +30,6 @@ Event OnDeath(Actor akKiller) BountyScript._00E_NQ_Bounty01_Status = 2 ;Unlock bounty board to receive your gold EndEvent -Event OnEnterBleedout() - Actor aTarget = GetReference() as Actor - if aTarget.IsInCombat() - ; Allow minions to deal the final blow - aTarget.GetActorBase().SetProtected(false) - ; Technically, not required since 2.1, adding this in case of overwrite by an outdated mod - aTarget.GetActorBase().SetEssential(false) - endif -endEvent - ; ==================================================================================== ; PROPERTIES ; ====================================================================================