Fix long-standing visual bug with pulsegun beam (thanks, RELATIVETOFLOOR flag).
This commit is contained in:
parent
9f6194de2d
commit
064a6ec632
2 changed files with 2 additions and 6 deletions
|
|
@ -80,9 +80,3 @@ This mod requires GZDoom 3.7.0 or later.
|
|||
- Biorifle sludge doesn't handle 3d floors (especially sloped ones) properly.
|
||||
This is due to the unavailability of 3D floor data on ZScript and will be
|
||||
fixed once 3D floors are exported to scripting (still waiting on that PR)
|
||||
|
||||
## Known bugs that are not this mod's fault
|
||||
|
||||
- Pulse gun beams behave oddly when the player is standing on a moving floor.
|
||||
This is an interpolation quirk in GZDoom and I can probably find some hacky
|
||||
way to fix it eventually
|
||||
|
|
|
|||
|
|
@ -473,6 +473,7 @@ Class PulseBolt : Actor
|
|||
}
|
||||
void UpdateBeam( PulseBolt parent, Vector3 x )
|
||||
{
|
||||
bRELATIVETOFLOOR = parent.bRELATIVETOFLOOR;
|
||||
frame = parent.frame;
|
||||
SetOrigin(parent.Vec3Offset(x.x*beamsize,x.y*beamsize,x.z*beamsize),true);
|
||||
A_SetAngle(parent.angle);
|
||||
|
|
@ -513,6 +514,7 @@ Class StarterBolt : PulseBolt
|
|||
return;
|
||||
}
|
||||
Vector3 x, y, z, origin;
|
||||
bRELATIVETOFLOOR = (target.pos.z <= target.floorz); // hack, but kinda works
|
||||
if ( target.player )
|
||||
{
|
||||
[x, y, z] = dt_Matrix4.GetAxes(target.pitch,target.angle,target.roll);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue