Backported changes from experimental branch.
Fixed crash on screen flashes due to misuse of StaticEventHandler.Find instead of EventHandler.Find (oops).
This commit is contained in:
parent
691fb8cee6
commit
d69eaa682f
8 changed files with 60 additions and 18 deletions
|
|
@ -306,7 +306,14 @@ Class UTRocketLauncher : UTWeapon
|
|||
{
|
||||
Super.Tick();
|
||||
if ( !Owner ) return;
|
||||
if ( LockedOn && (!LockedTarget || (LockedTarget.Health <= 0) || !LockedTarget.bIsMonster || LockedTarget.bKilled || LockedTarget.bCorpse || !LockedTarget.bShootable) )
|
||||
if ( Owner.Health <= 0 )
|
||||
{
|
||||
LockedTarget = null;
|
||||
LockedOn = false;
|
||||
crosshair = 0;
|
||||
return;
|
||||
}
|
||||
if ( LockedOn && (!LockedTarget || (LockedTarget.Health <= 0) || !LockedTarget.bIsMonster || LockedTarget.bKilled || LockedTarget.bCorpse || !LockedTarget.bShootable || (Owner.player.ReadyWeapon != self)) )
|
||||
{
|
||||
LockedTarget = null;
|
||||
LockedOn = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue