Skip to content

Commit

Permalink
Remove bad sling destruction logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
caligari87 committed Mar 10, 2020
1 parent 0129c10 commit c15eaed
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions modules/sling/bootstrap.zsc
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@ class UaS_Sling_Bootstrap : EventHandler {
//initialize additional player inventory
override void PlayerEntered(PlayerEvent e) {
PlayerInfo player = players[e.PlayerNumber];
if(!UaS_SlingEnabled) {
player.mo.TakeInventory("SlingInitialized", 1);
player.mo.TakeInventory("UaS_WeaponSling", 1);
return;
}
if(level.time > 1) { return; }
if(!UaS_SlingEnabled) { return; }
if(player.mo.countinv("SlingInitialized")) { return; }
if(UaS_SlingStart == true) {
player.mo.Giveinventory("UaS_WeaponSling", 1);
Expand Down

0 comments on commit c15eaed

Please sign in to comment.