THRUTYPE Flag
Moderator: GZDoom Developers
- LilWhiteMouse
- Posts: 2270
- Joined: Tue Jul 15, 2003 7:00 pm
- Location: Maine, US
- Contact:
THRUTYPE Flag
How about a flag similar to THRUGHOST/GHOST combo that allows projectiles to pass through same type actors and inheretitors that fired it.
My problem is I have stacked actors; legs, torso, and turret. I don't want the turret projectiles to impact on the torso and legs if it fires to low, and vice versa. With my proposed flag, I could simply have each part inherit from a parent actor, and give them and their projectiles the flag.
I can't use the ghost flags because I'm already using them for friendly monsters.
My problem is I have stacked actors; legs, torso, and turret. I don't want the turret projectiles to impact on the torso and legs if it fires to low, and vice versa. With my proposed flag, I could simply have each part inherit from a parent actor, and give them and their projectiles the flag.
I can't use the ghost flags because I'm already using them for friendly monsters.
I remember looking desperately for a similar function for an exploding car for a random test of mine. It spits out large amounts of flames before exploding, but since it hasn't exploded yet I wanted the car to still block the player. Because of this, the emitting flames (projectiles so they'd fly out a bit) wouldn't go anywhere since they spawned inside the still-solid car. I finally resorted to using the ghost flags but that means that I can't use them anywhere else without getting some odd effects.
So basically, I support this feature and would put it to good use.
So basically, I support this feature and would put it to good use.

Two people here have mentioned being limited by only having one GHOST flag. Not to derail the idea here, because I think it's a good one, but as a separate suggestion, what about an extension to the GHOST "flag" (now a property I guess) that let's you specify a custom GHOST type. A matching THRUGHOST property would flag projectiles that could fly through that type of GHOST.
Example:
Items with the +THRUGHOST Car flag/property could pass through items with the Car property, however items with a different type (or none) could not.
This should allow for maximum flexibility because then you could have a number of different types that interact with each other (or not).
Or could this be an extension of the custom damage types system?
Example:
Code: Select all
+GHOST Car
Code: Select all
+THRUGHOST Car
This should allow for maximum flexibility because then you could have a number of different types that interact with each other (or not).
Or could this be an extension of the custom damage types system?
- StrikerMan780
- Posts: 486
- Joined: Tue Nov 29, 2005 2:15 pm
- Graphics Processor: nVidia with Vulkan support
- Contact:
Hotwax, you can't have variables on a flag in that form, but maybe this would work:
That would make it so that the projectile with the +THRUGHOST flag would only go through a certain class with the +GHOST Flag.
This could be used in other ways too, even on the Object with teh +GHOST flag, so that NOTHING can hit the object except the Class specified, maybe.
Code: Select all
ACTOR ProjectileThingy
{
Radius 8
Height 8
Damage 10
GhostType "Car"
+THRUGHOST
}
This could be used in other ways too, even on the Object with teh +GHOST flag, so that NOTHING can hit the object except the Class specified, maybe.
- LilWhiteMouse
- Posts: 2270
- Joined: Tue Jul 15, 2003 7:00 pm
- Location: Maine, US
- Contact:
- LilWhiteMouse
- Posts: 2270
- Joined: Tue Jul 15, 2003 7:00 pm
- Location: Maine, US
- Contact:
That only works for projectiles that will travel before hitting their target. If the projectile is capable of impacting almost after launch it obviously doesn't work very well as it'll pass through the target before it has a chance to "arm".Vaecrius wrote:Can't you flag it +noclip to begin with and then change it later?