THRUTYPE Flag

Moderator: GZDoom Developers

Post Reply
User avatar
LilWhiteMouse
Posts: 2270
Joined: Tue Jul 15, 2003 7:00 pm
Location: Maine, US
Contact:

THRUTYPE Flag

Post by LilWhiteMouse »

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.
User avatar
Nash
 
 
Posts: 17500
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Post by Nash »

I also thought of this awhile ago but never got around to requesting it.
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Post by Xaser »

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. :P
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

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:

Code: Select all

+GHOST Car

Code: Select all

+THRUGHOST Car
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?
User avatar
StrikerMan780
Posts: 486
Joined: Tue Nov 29, 2005 2:15 pm
Graphics Processor: nVidia with Vulkan support
Contact:

Post by StrikerMan780 »

Hotwax, you can't have variables on a flag in that form, but maybe this would work:

Code: Select all

ACTOR ProjectileThingy
{
Radius 8
Height 8
Damage 10
GhostType "Car"
+THRUGHOST
}
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.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Yes, that should work.
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

Sounds great.
User avatar
LilWhiteMouse
Posts: 2270
Joined: Tue Jul 15, 2003 7:00 pm
Location: Maine, US
Contact:

Post by LilWhiteMouse »

Does anyone know of any hacks to fake the ghost flags effect? For one of my projectiles, I toggle noclip on until it's had enough time to clear the parts. It's fine as a ranged only effect, but I need something else that works at point blank range as well.
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

Post by Matt »

Can't you flag it +noclip to begin with and then change it later?
User avatar
LilWhiteMouse
Posts: 2270
Joined: Tue Jul 15, 2003 7:00 pm
Location: Maine, US
Contact:

Post by LilWhiteMouse »

Vaecrius wrote:Can't you flag it +noclip to begin with and then change it later?
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".
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”