[DECORATE] Ownership of rail shot from puff

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
IvanDobrovski
Posts: 83
Joined: Mon Aug 08, 2016 4:05 am

[DECORATE] Ownership of rail shot from puff

Post by IvanDobrovski »

I have a puff fired from a bullet attack like so:

Code: Select all

A_FireBullets(0, 0, -1, 0, "SomePuff", FBF_NORANDOMPUFFZ, 768)
Now, this puff shoots some rail attacks around. Like so:

Code: Select all

A_CustomRailgun(10,0,None,None,RGF_SILENT|RGF_NOPIERCING|RGF_EXPLICITANGLE,0,10,"SomeOtherPuff",frandom(-180.0, 180.0),frandom(-45.0, 45.0),192,0,0,0,"Trails")
So, these rail attacks hurt me and I'm not the owner of them. What can I do about this? Damagefactors won't help because I need the ownership on my side for other effects to work. (Like monsters giving items on death)
User avatar
IvanDobrovski
Posts: 83
Joined: Mon Aug 08, 2016 4:05 am

Re: [DECORATE] Ownership of rail shot from puff

Post by IvanDobrovski »

So I have taken a look at the source and it appears that the puff is the owner, not the player, because the A_CustomRailgun originates from the puff. This makes me wonder: Why is there no flag like A_CustomMissile has CMF_TRACKOWNER for other damage code pointers? I think this would be useful. Actually, the fact that this is even missing in these is quite weird.
Locked

Return to “Editing (Archive)”