[Question] Explosive question.

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Spottswoode
Posts: 18
Joined: Tue Jan 17, 2012 8:41 pm

[Question] Explosive question.

Post by Spottswoode »

I want to make an explosive attack, with A_Explode or a similar function, that only affects the 180 degree radius in front of the player. I have figured two ways to try and go about this but I'm not sure what the best one would be. The idea is to make a frontal aoe melee attack with a modular arc.

1.I have thought of using A_Explode from an invisible exploding puff offset halfway into the player's radius. This way the player can make a full frontal attack.
2. It also occurred to me that I could just use BFG spray and limit the number of tracers but I want to be able to limit the effective range. Also the angle covered is too small for my purposes though I could make exploding puffs to compensate.
If you have a different way to go about this, I'd like to hear it.
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:

Re: [Question] Explosive question.

Post by Matt »

According to a recent thread the explosion radius is actually a square, so one possibility is to spawn two explosions, each with half the intended radius, r in front of the player and r to the left/right of the player.

Of course that does leave a gap when you're facing diagonally, so maybe you could just rethink the design or something? :V
User avatar
Spottswoode
Posts: 18
Joined: Tue Jan 17, 2012 8:41 pm

Re: [Question] Explosive question.

Post by Spottswoode »

If it's aligned to the grid, using three squares (middle, left, right) I could functionally make a radius attack. In this case, I would just make one explosion spawned in front of the player and the other two would be half the size of the middle. I think for all intents and purposes it would suffice for what I have in mind. The main issues are that the player must not be able to hit targets behind him with this attack and it must have a very limited range. I think that suggestion passes both criteria sufficiently.
Locked

Return to “Editing (Archive)”