- made P_AimLineAttack work through sector portals.
Note: Test output not removed yet!
This commit is contained in:
parent
c160121f45
commit
f5fd0df077
16 changed files with 466 additions and 334 deletions
|
|
@ -293,7 +293,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_M_Saw)
|
|||
S_Sound (self, CHAN_WEAPON, hitsound, 1, ATTN_NORM);
|
||||
|
||||
// turn to face target
|
||||
angle = t.SourceAngleToTarget();
|
||||
angle = t.angleFromSource;
|
||||
if (angle - self->angle > ANG180)
|
||||
{
|
||||
if (angle - self->angle < (angle_t)(-ANG90/20))
|
||||
|
|
@ -344,7 +344,7 @@ static void MarinePunch(AActor *self, int damagemul)
|
|||
if (t.linetarget)
|
||||
{
|
||||
S_Sound (self, CHAN_WEAPON, "*fist", 1, ATTN_NORM);
|
||||
self->angle = t.SourceAngleToTarget();
|
||||
self->angle = t.angleFromSource;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue