- Added support for AttackZOffset to P_RailAttack.
- Fixed: ParseDrawTextureTags read DTA_RenderStyle as ERenderStyle, not FRenderStyle. SVN r726 (trunk)
This commit is contained in:
parent
17e9a2c8fd
commit
78164aab40
4 changed files with 17 additions and 3 deletions
|
|
@ -3137,7 +3137,17 @@ void P_RailAttack (AActor *source, int damage, int offset, int color1, int color
|
|||
|
||||
x1 = source->x;
|
||||
y1 = source->y;
|
||||
shootz = source->z - source->floorclip + (source->height >> 1) + 8*FRACUNIT;
|
||||
|
||||
shootz = source->z - source->floorclip + (source->height >> 1);
|
||||
|
||||
if (source->player != NULL)
|
||||
{
|
||||
shootz += FixedMul (source->player->mo->AttackZOffset, source->player->crouchfactor);
|
||||
}
|
||||
else
|
||||
{
|
||||
shootz += 8*FRACUNIT;
|
||||
}
|
||||
|
||||
angle = (source->angle - ANG90) >> ANGLETOFINESHIFT;
|
||||
x1 += offset*finecosine[angle];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue