Skip to content

Commit

Permalink
Change special weapon dropping & disowning logic
Browse files Browse the repository at this point in the history
  • Loading branch information
wallabra committed Feb 3, 2024
1 parent cea76d3 commit 9aa9b03
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
3 changes: 2 additions & 1 deletion Classes/MushBeacon.uc
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ simulated event Tick(float TimeDelta)
{
Super.Tick(TimeDelta);

if (IsInState('Pickup') || Owner == None)
if (IsInState('Pickup') && Owner == None && Inventory == None)
{
Destroy();
return;
Expand Down Expand Up @@ -208,4 +208,5 @@ defaultproperties
MinBeaconBotRating=400
MaxBeaconBotRating=2500
BeaconBotRatingFalloff=12
bCanThrow=false
}
10 changes: 4 additions & 6 deletions Classes/Sporifier.uc
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ simulated function FindMMI() {
simulated function Tick(float TimeDelta)
{
Super.Tick(TimeDelta);
if (IsInState('Pickup') || Owner == None)

if (IsInState('Pickup') && Owner == None && Inventory == None)
{
Destroy();
return;
Expand Down Expand Up @@ -218,10 +218,7 @@ simulated function Tick(float TimeDelta)
Warn("Sporifier"@ self @"had a non-Mush owner,"@ Owner);
}

if (!PRL.bDead) {
Pawn(Owner).TossWeapon();
}

Pawn(Owner).DeleteInventory(Self);
Destroy();
return;
}
Expand Down Expand Up @@ -332,4 +329,5 @@ defaultproperties
bWarnTarget=false
SporifierFirerate=1.5
bAlwaysAutoSpot=false
bCanThrow=false
}
4 changes: 2 additions & 2 deletions buildconfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

export name="Mush Match"
export package=MushMatch
export version=1.3.5-pre2
export build=20235101
export version=1.3.5-pre3
export build=20240601
export debug=1
export makeint=1
export incl_readme=1
Expand Down

0 comments on commit 9aa9b03

Please sign in to comment.