- Fixed: The StrifePlayer couldn't obtain his default inventory because
APlayerPawn::GiveDefaultInventory gave him some HexenArmor even though he doesn't need it. - Added custom blood type properties to DECORATE. - Converted Blood to DECORATE and made some minor changes to the code in preparation for custom blood types. - Converted the bot helper things to DECORATE. - Added damage type specific crash states. SVN r395 (trunk)
This commit is contained in:
parent
4467cd6563
commit
0ba809234e
20 changed files with 337 additions and 215 deletions
|
|
@ -641,9 +641,11 @@ void AActor::Die (AActor *source, AActor *inflictor)
|
|||
|
||||
if ((health<gibhealth || flags4 & MF4_EXTREMEDEATH) && !(flags4 & MF4_NOEXTREMEDEATH))
|
||||
{ // Extreme death
|
||||
diestate = FindState (2, NAME_Death, NAME_Extreme);
|
||||
diestate = GetClass()->ActorInfo->FindStateExact (2, NAME_Death, NAME_Extreme);
|
||||
// if a non-player mark as extremely dead for the crash state.
|
||||
if (diestate != NULL && player == NULL && health >= gibhealth) health = gibhealth-1;
|
||||
}
|
||||
else
|
||||
if (diestate == NULL)
|
||||
{ // Normal death
|
||||
diestate = FindState (NAME_Death);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue