PUFFGETSOWNER on Blood actors makes them target the owner

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: PUFFGETSOWNER on Blood actors makes them target the owner

Re: PUFFGETSOWNER on Blood actors makes them target the owne

by Theshooter7 » Sun Nov 07, 2010 7:17 pm

Graf Zahl wrote:P_BloodSplatter did not need to be handled because it spawns the blood as a projectile which always gets an owner.
Ah, ok. I wasn't sure since I'm still poking at the source code and learning things, so that's more for me to know. ;)
Nash wrote:I can imagine using this to calculate the height difference between the blood actor and the owner to simulate headshots...
That's exactly one of the things I intended this for. :D

Re: PUFFGETSOWNER on Blood actors makes them target the owne

by Graf Zahl » Sun Nov 07, 2010 1:30 am

Added. But it had to be copied to P_RipperBlood, too.
P_BloodSplatter did not need to be handled because it spawns the blood as a projectile which always gets an owner.

Re: PUFFGETSOWNER on Blood actors makes them target the owne

by Caligari87 » Sun Nov 07, 2010 1:23 am

Nash wrote:I can imagine using this to calculate the height difference between the blood actor and the owner to simulate headshots...
:shock: Do want! I imagine it could be used with various other calculations to simulate other types of hits too.

8-)

Re: PUFFGETSOWNER on Blood actors makes them target the owne

by Nash » Sun Nov 07, 2010 12:17 am

I can imagine using this to calculate the height difference between the blood actor and the owner to simulate headshots...

PUFFGETSOWNER on Blood actors makes them target the owner

by Theshooter7 » Sat Nov 06, 2010 1:33 pm

As the title states, this simple patch will allow it so that if you put PUFFGETSOWNER on a spawned blood actor, the blood will target the owner of the blood.

Note: as far as I could tell, P_SpawnBlood is the only function that handles spawning blood actors (and not particles, which is what P_BloodSplatter(2) are for, I think). If I'm wrong and the patch is incomplete, just let me know. :)
Attachments
bloodowner.zip
(476 Bytes) Downloaded 45 times

Top