TeleportFog targets the actor being teleported

Moderator: GZDoom Developers

Post Reply
User avatar
StrikerMan780
Posts: 486
Joined: Tue Nov 29, 2005 2:15 pm
Graphics Processor: nVidia with Vulkan support
Contact:

Make teleport fog target the actor that teleported

Post by StrikerMan780 »

Would it perhaps be possible to make teleport fog target the actor that had teleported? I want to do inventory checks on players that go through teleporters, and change the fog's appearance based on this. (For Team-Colored Fogs in DM in my case.)

I can think of a few other uses for this... Such as giving the player an inventory item that disrupts teleportation, which causes the player to get killed, and show a strange teleport fog. Another use could be a Powerup that makes it so there is a radius damage around the player when they teleport, killing nearby monsters and players.

This should affect the fog that shows when players spawn in DM as well.

Feature request on Zandronum - http://zandronum.com/tracker/view.php?id=1133
Gez
 
 
Posts: 17938
Joined: Fri Jul 06, 2007 3:22 pm

Re: Make teleport fog target the actor that teleported

Post by Gez »

StrikerMan780 wrote:I can think of a few other uses for this...
Giving different teleport fogs to different monsters (e.g., a larger fog for cyberdemons and a smaller one for lost souls).
User avatar
StrikerMan780
Posts: 486
Joined: Tue Nov 29, 2005 2:15 pm
Graphics Processor: nVidia with Vulkan support
Contact:

Re: Make teleport fog target the actor that teleported

Post by StrikerMan780 »

Yep, that too.
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Make teleport fog target the actor that teleported

Post by NeuralStunner »

I strongly approve of this idea.

However, I'd like to consider what would happen in a case of two fog actors: Source and destination. Ideally, one could diferrentiate between the two in order to make better effects.

Further, it would be most helpful if the telefog could spawn into a different state for respawning actors, as opposed to sharing the same one as teleports. (Or even better, allow telport/actor-respawn/item-respawn actors to be selected through [wiki=GameInfo_definition]MapInfo/GameInfo[/wiki].)
User avatar
Nightfall
Posts: 555
Joined: Thu Aug 06, 2009 4:00 am
Location: Finland

Re: Make teleport fog target the actor that teleported

Post by Nightfall »

Maybe re-use the Melee and Crash states again?
User avatar
Demolisher
Posts: 1749
Joined: Mon Aug 11, 2008 12:59 pm
Graphics Processor: nVidia with Vulkan support
Location: Winchester, VA
Contact:

TeleportFog targets the actor being teleported

Post by Demolisher »

http://forum.zdoom.org/viewtopic.php?f=15&t=34322 - Feature

Small change, simply sets the teleport fog's target field to the thing being teleported.
Attachments
P_Teleport Change.zip
Diff
(570 Bytes) Downloaded 72 times
User avatar
Demolisher
Posts: 1749
Joined: Mon Aug 11, 2008 12:59 pm
Graphics Processor: nVidia with Vulkan support
Location: Winchester, VA
Contact:

Re: Make teleport fog target the actor that teleported

Post by Demolisher »

User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: TeleportFog targets the actor being teleported

Post by randi »

Added in r4190.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”