Changes for next Lost Mission release

got them from Arl, they were done by Samson
This commit is contained in:
Daniel Gibson 2025-02-05 01:27:01 +01:00
parent 0e6e3519b2
commit f1cf9267b0
2 changed files with 6 additions and 5 deletions

View file

@ -8779,8 +8779,8 @@ idPlayer::AddAIKill
=============
*/
void idPlayer::AddAIKill( void ) {
#ifndef _D3XP
// koz we want to do this for LM
// #ifndef _D3XP
int max_souls;
int ammo_souls;
@ -8801,7 +8801,7 @@ void idPlayer::AddAIKill( void ) {
StartSound( "snd_soulcube_ready", SND_CHANNEL_ANY, 0, false, NULL );
}
}
#endif
// #endif
}
/*

View file

@ -3487,11 +3487,12 @@ void idAI::Killed( idEntity *inflictor, idEntity *attacker, int damage, const id
kv = spawnArgs.MatchPrefix( "def_drops", kv );
}
#ifndef _D3XP
//koz do this for LM
//#ifndef _D3XP
if ( ( attacker && attacker->IsType( idPlayer::Type ) ) && ( inflictor && !inflictor->IsType( idSoulCubeMissile::Type ) ) ) {
static_cast< idPlayer* >( attacker )->AddAIKill();
}
#endif
//#endif
#ifdef _D3XP
if(spawnArgs.GetBool("harvest_on_death")) {