Making puff go through actor
Making puff go through actor
I ran into a problem. I am using a custom attack with puff that uses +PUFFGETSOWNER. But the target will be replaced if the puff hits another player. I need the target be the player who fired it (SetActivatorToTarget) no matter what. Any ideas?
And I failed making the puff getting through other players.
Any ideas?
And I failed making the puff getting through other players.
Any ideas?
Last edited by Klofkac on Sat Apr 18, 2015 6:36 pm, edited 1 time in total.
πππ ππππ
RE: Making puff go through actor
I assume you're talking about the blood spawned here?Klofkac wrote:But the target will be replaced if the puff hits another player.
If you want the puff itself to be spawned instead of blood then use something like +PUFFONACTORS or +ALWAYSPUFF
[spoiler][/spoiler]
Code: Select all
<@WaTaKiD> punish me
* Seanphone gets his belt out
<+Seanphone> all right WaTaKiD bend overCode: Select all
<Kokiri> capo whos your fav pony?
<capo> i like them allCode: Select all
cobalt changes topic to 'ZDoom 2.6.1 progress: at r3771, 23 revisions left (98% complete)'
<edward-san> omg
<edward-san> almost finished!!!
<Sean> !!!!!!!!!!!!!!
<Sean> Plot twist: This is the status of Half-Life 3.
<Dusk> plot twist: the percentage count suddenly begins to decline instead
<Sean> Torr makes a forum post "We're going back to 2.5.0"
<Dusk> and we do so incrementallyRE: Making puff go through actor
Blood isn't affecting it in any way, it's that if puff hits another player, the target changes to them instead of the player who fired it, effectively overriding +PUFFGETSOWNER.
Without +PUFFONACTORS it isn't spawned at all, so the script will never execute, which is bad, too.
Without +PUFFONACTORS it isn't spawned at all, so the script will never execute, which is bad, too.
Last edited by Klofkac on Sat Apr 18, 2015 2:46 pm, edited 1 time in total.
πππ ππππ
RE: Making puff go through actor
I know very little about DECORATE, but would giving it the ripping property help?
"For the world is hollow, and I have touched the sky."
RE: Making puff go through actor
I don't know what you're doing but using +PUFFONACTORS and +PUFFGETSOWNER on a bulletpuff works fine for me, the target is always the player who fired it regardless of what I hit.
I can provide the WAD I used if you wish to see for yourself.
I can provide the WAD I used if you wish to see for yourself.
[spoiler][/spoiler]
Code: Select all
<@WaTaKiD> punish me
* Seanphone gets his belt out
<+Seanphone> all right WaTaKiD bend overCode: Select all
<Kokiri> capo whos your fav pony?
<capo> i like them allCode: Select all
cobalt changes topic to 'ZDoom 2.6.1 progress: at r3771, 23 revisions left (98% complete)'
<edward-san> omg
<edward-san> almost finished!!!
<Sean> !!!!!!!!!!!!!!
<Sean> Plot twist: This is the status of Half-Life 3.
<Dusk> plot twist: the percentage count suddenly begins to decline instead
<Sean> Torr makes a forum post "We're going back to 2.5.0"
<Dusk> and we do so incrementallyRE: Making puff go through actor
THRUSPECIES/THRUGHOST?
=== RAGNAROK DM ON ... uh... dead forever? ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===
RE: Making puff go through actor
Leonard, I have checked your wad. I tried to adapt the code to match yours... but, it still didn't do as I needed. Weird.
πππ ππππ
-
Zanieon
- Forum Regular
- Posts: 227
- Joined: Tue Jun 05, 2012 1:17 am
- Location: Somewhere in the future
- Contact:
RE: Making puff go through actor
MTHRUSPECIES only works for hitscans after ZDoom 2.7 and THRUGHOST is a hacky way that is better stay only on Heretic.
RE: Making puff go through actor
I found the error, why it worked so strange. I had SetActivatorToTarget twice... So it changed to the player who fired it crrectly, but then the activator was player already and it changed the activator to player's target. Sorry for everything, it's my messy source code and blindness to blame.
Still, it would be interesting to really know if there is a way in Zandronum for making the puff to go through actor.
Still, it would be interesting to really know if there is a way in Zandronum for making the puff to go through actor.
Last edited by Klofkac on Sat Apr 18, 2015 6:44 pm, edited 1 time in total.
πππ ππππ
RE: Making puff go through actor
If your attack is a hitscan, then I would like to ask:
Is a puff thrustable?
Then you can maybe do an ACS script, using the coordinates of the attacker and the target to calculate a line in the threedimensional space and thrust the puff with a force on the three axes relative to the angle, pitch and... roll? Then you might be able to push the puff in the direction of the attack.
Just a thought, since IIRC you are quite good at ACS and mathematics.
Is a puff thrustable?
Then you can maybe do an ACS script, using the coordinates of the attacker and the target to calculate a line in the threedimensional space and thrust the puff with a force on the three axes relative to the angle, pitch and... roll? Then you might be able to push the puff in the direction of the attack.
Just a thought, since IIRC you are quite good at ACS and mathematics.
Combinebobnt wrote:i can see the forum league is taking off much better than the ctf ones
GalactusToday at 1:07 PM
are you getting uncomfortable jap
feeling something happen down there
-
Arctangent
- Β
- Posts: 82
- Joined: Mon Nov 24, 2014 8:19 am
RE: Making puff go through actor
I'm really not sure if this question makes any sense or not, to be honest. Do you mean the hitscan or the puff? Because bullet puffs by default have no collisions, so you can just give it velocity for one tic and stop it the next. At the same time, though, I'm not really sure why you want to do this, since the bullet puff moving doesn't really accomplish a whole lot.Klofkac wrote: Still, it would be interesting to really know if there is a way in Zandronum for making the puff to go through actor.
-
Zanieon
- Forum Regular
- Posts: 227
- Joined: Tue Jun 05, 2012 1:17 am
- Location: Somewhere in the future
- Contact:
RE: Making puff go through actor
The Bullet Puff defines the properties of the hitscan, like DamageType, on actual ZDoom 2.8 dev builds, if you apply MTHRUSPECIES in the bullet puff, the hitscan will ignore all actors of the same species of the actor who fired it, exactly like projectiles.
RE: Making puff go through actor
Okay, let me re-formulate it...Arctangent wrote: I'm really not sure if this question makes any sense or not, to be honest. Do you mean the hitscan or the puff?
I'm using a hitscan attack (A_FireBullets) which has the puff option set to custom puff, which then uses ACS_ExecuteAlways to do some logic related to the puff's coorditates etc. But other players catch the hitscan before it can hit the wall or floor in the straight line. And I'd like to know if you can make it so when you fire the hitscan, it is not blocked by other players.
πππ ππππ
-
Arctangent
- Β
- Posts: 82
- Joined: Mon Nov 24, 2014 8:19 am
RE: Making puff go through actor
Sounds like you want a rail attack.
Or if you don't, I don't think want you want is quite possible in the engine.
Or if you don't, I don't think want you want is quite possible in the engine.
RE: Making puff go through actor
This sounds cool, but can you make the rail completely silent and invisible? Also:
If this is so, it is possible it wouldn't puff on walls, which is also not desired...pufftype: The puff actor to use. By default, the puff will only spawn in rare circumstances (e.g. when hitting a dormant monster) unless the puff actor has the ALWAYSPUFF flag set. Even if not shown, the selected puff will still be used for applying custom damagetypes and other properties.
πππ ππππ
RE: Making puff go through actor
Yes - put in "none" and "none" for the core and ring colors (I think that it just uses the "Attacksound" property of the weapon).Klofkac wrote: This sounds cool, but can you make the rail completely silent and invisible? Also:If this is so, it is possible it wouldn't puff on walls, which is also not desired...pufftype: The puff actor to use. By default, the puff will only spawn in rare circumstances (e.g. when hitting a dormant monster) unless the puff actor has the ALWAYSPUFF flag set. Even if not shown, the selected puff will still be used for applying custom damagetypes and other properties.
Put +ALWAYSPUFF onto the puff for the puff. That's not exactly hard.
EDIT: Alternatively, make the "Bullets" projectiles with speed 320 and +RIPPER, which is what you need to do if you want them to pass through players (since +THRUSPECIES isn't supported on puffs).
Last edited by Untitled on Mon Apr 27, 2015 3:38 pm, edited 1 time in total.
"I'm in despair! The fact someone would give me the title 'Forum Regular' has left me in despair!"
SamsaraHold http://zandronum.com/forum/showthread.php?tid=3053
Spoiler: Me in a nutshell (Open)Projects:
SamsaraHold http://zandronum.com/forum/showthread.php?tid=3053
