From 62daa91c07325024ca903cce9344f408107fa252 Mon Sep 17 00:00:00 2001 From: Daniel Gibson Date: Sun, 13 Nov 2022 02:16:12 +0100 Subject: [PATCH] Handle moveable_powerup_adrenaline entity, fix #28 D3BFG does the same, Vanilla d3xp was missing this, probably because while it had scripts for moveable_powerup_adrenaline, it was never used. --- d3xp/Player.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/d3xp/Player.cpp b/d3xp/Player.cpp index d5fdb37..159fcc1 100644 --- a/d3xp/Player.cpp +++ b/d3xp/Player.cpp @@ -804,8 +804,9 @@ void idInventory::AddPickupName( const char *name, const char *icon, idPlayer* o msg.WriteString( name, MAX_EVENT_PARAM_SIZE ); owner->ServerSendEvent( idPlayer::EVENT_PICKUPNAME, &msg, false, -1 ); } - } #endif + } + } /* @@ -906,6 +907,8 @@ bool idInventory::Give( idPlayer *owner, const idDict &spawnArgs, const char *st owner->GivePowerUp( BERSERK, SEC2MS( atof( value ) ) ); //} else if ( !idStr::Icmp( statname, "haste" ) ) { // owner->GivePowerUp( HASTE, SEC2MS( atof( value ) ) ); + } else if( !idStr::Icmp( statname, "adrenaline" ) ) { // DG: this was missing in the d3le source, see #28 + GivePowerUp( owner, ADRENALINE, SEC2MS( atof( value ) ) ); #else } else if ( !idStr::Icmp( statname, "berserk" ) ) { GivePowerUp( owner, BERSERK, SEC2MS( atof( value ) ) );