mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
- HITTARGET, HITMASTER and HITTRACER now apply to actors that bounce off of other actors.
This commit is contained in:
parent
24f1bfae99
commit
31ad642843
1 changed files with 4 additions and 0 deletions
|
@ -3003,6 +3003,10 @@ bool P_BounceActor(AActor *mo, AActor *BlockingMobj, bool ontop)
|
|||
{
|
||||
if (mo->bouncecount > 0 && --mo->bouncecount == 0) return false;
|
||||
|
||||
if (mo->flags7 & MF7_HITTARGET) mo->target = BlockingMobj;
|
||||
if (mo->flags7 & MF7_HITMASTER) mo->master = BlockingMobj;
|
||||
if (mo->flags7 & MF7_HITTRACER) mo->tracer = BlockingMobj;
|
||||
|
||||
if (!ontop)
|
||||
{
|
||||
fixed_t speed;
|
||||
|
|
Loading…
Reference in a new issue