View Issue Details

IDProjectCategoryView StatusLast Update
0000546Gameplay + OpenGL[All Projects] Bugpublic2017-04-06 10:55
ReporterPillowBlaster 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Summary0000546: GETOWNER flag is not working as intended
Descriptionhttps://zdoom.org/wiki/Actor_flags#GETOWNER so far I tried this flag, it simply isn't doing what says on the tin - the trail actor keeps targeting the projectile - unless I am missing something stupid here. Tried with gzdoom g2.4.0, and gzdoom-x64-2.5pre-268-gca4888e.
Steps To ReproduceHere's a testing rocket launcher I made. It fires rockets that spawn exploding trails, which aren't supposed to harm the player, yet they still do.

On regular fire, it fires a decorate-based rocket, also summons particles that warp to target pointer. They are clearly still warping to the projectile instead of the player.

The alt-fire sends a zscript-based rocket, in case this was supposed to only work with zscript.
TagsNo tags attached.

Relationships

Activities

Major Cooke

Major Cooke

2017-04-06 09:06

reporter   ~0001259

Last edited: 2017-04-06 09:08

View 2 revisions

Two things wrong here.

  1. Your DTrail actor is not a projectile. Try giving it the Projectile property. A_Explode tends not to behave properly unless it's specifically coming from a missile or monster.
  2. You're using the SXF_ORIGINATOR flag. When used, it uses the actual spawning actor instead of transferring truly from the shooter. Try removing that.


Blue Shadow

Blue Shadow

2017-04-06 09:08

reporter   ~0001260

Last edited: 2017-04-06 09:09

View 2 revisions

Looking at the code of the FastProjectile class, the check for the flag is done on the fast projectile itself, not the trail.

https://github.com/coelckers/gzdoom/blob/master/wadsrc/static/zscript/shared/fastprojectile.txt#L29

Major Cooke

Major Cooke

2017-04-06 09:09

reporter   ~0001261

Last edited: 2017-04-06 09:10

View 2 revisions

That too! Corrected the wiki.

PillowBlaster

PillowBlaster

2017-04-06 10:54

reporter   ~0001262

Last edited: 2017-04-06 10:55

View 2 revisions

That'd explain a whole lot, cause I forgot to mention that I do have the projectile applied to the zscripted trail as well.

EDIT: Not that it should really matter, cause it should work without it as well, so far I tried on this, corrected case.

Issue History

Date Modified Username Field Change
2017-04-06 07:34 PillowBlaster New Issue
2017-04-06 09:06 Major Cooke Note Added: 0001259
2017-04-06 09:08 Major Cooke Note Edited: 0001259 View Revisions
2017-04-06 09:08 Blue Shadow Note Added: 0001260
2017-04-06 09:09 Major Cooke Note Added: 0001261
2017-04-06 09:09 Blue Shadow Note Edited: 0001260 View Revisions
2017-04-06 09:10 Major Cooke Note Edited: 0001261 View Revisions
2017-04-06 09:34 Graf Zahl Status new => closed
2017-04-06 09:34 Graf Zahl Resolution open => no change required
2017-04-06 10:54 PillowBlaster Note Added: 0001262
2017-04-06 10:55 PillowBlaster Note Edited: 0001262 View Revisions