mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-29 07:42:01 +00:00
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.
This commit is contained in:
parent
2e1dc5ce3e
commit
62daa91c07
1 changed files with 4 additions and 1 deletions
|
@ -804,8 +804,9 @@ void idInventory::AddPickupName( const char *name, const char *icon, idPlayer* o
|
||||||
msg.WriteString( name, MAX_EVENT_PARAM_SIZE );
|
msg.WriteString( name, MAX_EVENT_PARAM_SIZE );
|
||||||
owner->ServerSendEvent( idPlayer::EVENT_PICKUPNAME, &msg, false, -1 );
|
owner->ServerSendEvent( idPlayer::EVENT_PICKUPNAME, &msg, false, -1 );
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -906,6 +907,8 @@ bool idInventory::Give( idPlayer *owner, const idDict &spawnArgs, const char *st
|
||||||
owner->GivePowerUp( BERSERK, SEC2MS( atof( value ) ) );
|
owner->GivePowerUp( BERSERK, SEC2MS( atof( value ) ) );
|
||||||
//} else if ( !idStr::Icmp( statname, "haste" ) ) {
|
//} else if ( !idStr::Icmp( statname, "haste" ) ) {
|
||||||
// owner->GivePowerUp( HASTE, SEC2MS( atof( value ) ) );
|
// 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
|
||||||
} else if ( !idStr::Icmp( statname, "berserk" ) ) {
|
} else if ( !idStr::Icmp( statname, "berserk" ) ) {
|
||||||
GivePowerUp( owner, BERSERK, SEC2MS( atof( value ) ) );
|
GivePowerUp( owner, BERSERK, SEC2MS( atof( value ) ) );
|
||||||
|
|
Loading…
Reference in a new issue