mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- P_DaggerAlert() now puts the emitter into its Pain.Dagger state if it has one, but will still
use the regular Pain state if not. SVN r4034 (trunk)
This commit is contained in:
parent
5f4bcaac3d
commit
8b6b55ce40
2 changed files with 2 additions and 1 deletions
|
@ -53,7 +53,7 @@ void P_DaggerAlert (AActor *target, AActor *emitter)
|
|||
emitter->flags4 |= MF4_INCOMBAT;
|
||||
|
||||
emitter->target = target;
|
||||
FState * painstate = emitter->FindState(NAME_Pain);
|
||||
FState *painstate = emitter->FindState(NAME_Pain, NAME_Dagger);
|
||||
if (painstate != NULL)
|
||||
{
|
||||
emitter->SetState (painstate);
|
||||
|
|
|
@ -221,6 +221,7 @@ xx(Rocket)
|
|||
xx(Plasma)
|
||||
xx(BFG)
|
||||
//xx(Railgun)
|
||||
xx(Dagger)
|
||||
|
||||
// Damage types
|
||||
//xx(Fire) already defined above
|
||||
|
|
Loading…
Reference in a new issue