diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-07-07 22:25:59 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-07-07 22:25:59 +0100 |
commit | 07b7eafd5c1845c70510b695446c23973fed1d4d (patch) | |
tree | 8452fd02d8356a65f07089c20318a8de95975125 /Northstar.CustomServers/scripts/vscripts/_powerup.gnut | |
parent | 53194543e43f8a645ba83ddb464028ba0c3b9d70 (diff) | |
download | NorthstarMods-07b7eafd5c1845c70510b695446c23973fed1d4d.tar.gz NorthstarMods-07b7eafd5c1845c70510b695446c23973fed1d4d.zip |
add fra, featured modes and some private lobby v2 stuff
Diffstat (limited to 'Northstar.CustomServers/scripts/vscripts/_powerup.gnut')
-rw-r--r-- | Northstar.CustomServers/scripts/vscripts/_powerup.gnut | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Northstar.CustomServers/scripts/vscripts/_powerup.gnut b/Northstar.CustomServers/scripts/vscripts/_powerup.gnut index a6a117af..03b9fcfc 100644 --- a/Northstar.CustomServers/scripts/vscripts/_powerup.gnut +++ b/Northstar.CustomServers/scripts/vscripts/_powerup.gnut @@ -81,7 +81,7 @@ bool function OnPowerupCollected( entity player, entity healthpack ) { // hack because i couldn't figure out any other way to do this without modifying sh_powerup // ensure we don't kill the powerup if it's a battery the player can't pickup - if ( ( powerup.index == ePowerUps.titanTimeReduction || powerup.index == ePowerUps.LTS_TitanTimeReduction ) && PlayerHasBattery( player ) ) + if ( ( powerup.index == ePowerUps.titanTimeReduction || powerup.index == ePowerUps.LTS_TitanTimeReduction ) && ( player.IsTitan() || PlayerHasMaxBatteryCount( player ) ) ) return false // idk why the powerup.destroyFunc doesn't just return a bool? would mean they could just handle stuff like this in powerup code |