Explosions

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
Zell
Posts: 791
Joined: Thu Jul 24, 2003 7:47 am
Location: IN A GODDAMN BOX[In Erie.]

Explosions

Post by Zell »

alright, im new at scripting with Zdoom, but i still know a little bit =), and im wondering, how could you make a good explosion? like not as big as when you destroy the final boss but maybe half that size? any help is apreciated. (i saw something like this on the old forums but that was b4 i had zdoom in WA and by that time the old forums were down =(

Zell
User avatar
Hirogen2
Posts: 2033
Joined: Sat Jul 19, 2003 6:15 am
Graphics Processor: Intel with Vulkan/Metal Support
Location: Central Germany
Contact:

Post by Hirogen2 »

You could - reduce the size of the explosion bitmap or - use ACS and spawn less explosion objects.
User avatar
Zell
Posts: 791
Joined: Thu Jul 24, 2003 7:47 am
Location: IN A GODDAMN BOX[In Erie.]

Post by Zell »

..lol whats the explosion object called? EXPLO?
User avatar
Hirogen2
Posts: 2033
Joined: Sat Jul 19, 2003 6:15 am
Graphics Processor: Intel with Vulkan/Metal Support
Location: Central Germany
Contact:

Post by Hirogen2 »

Nearly. AFAIK the sprite was EXPLxxyy... if you can dig up boris's zdoom test
wad (paci-fist is down), you're lucky. It shows how a wall explodes.
User avatar
Xaser
 
 
Posts: 10772
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Post by Xaser »

Oh, you're looking for the name of the explosion sprite in the wad? If so, then it's MISLB0, MISLC0, and MISLD0. MISLA0 is the rocket sprite, and I don't know hy ID decided to give the explosion graphics the same label as the rocket's (MISL). If you're talking about something else, then never mind. :roll:
User avatar
Enjay
 
 
Posts: 26517
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Post by Enjay »

Ack, I'm missing the info from the old forum. On there I requested a spawnable explosion item but I can't remember if it was implemented of not. I remember I went back and edited a few of my maps shortly afterwards, so maybe, or maybe I made one using dehacked or possibly a Hexen item?

Anyway, the traditional way to do it is to spawn a rocket near a wall and have it hit the wall. A little clumsy, which is why I requested a spawnable explosion.

The reason the explosion has the same sprite name as the rocket is because they are the rocket explosiong sprites.
User avatar
Xaser
 
 
Posts: 10772
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Post by Xaser »

Enjay wrote:The reason the explosion has the same sprite name as the rocket is because they are the rocket explosiong sprites.
Yeah, but they're used elsewhere, like mancubus fireball explosion and the explosion sequence of the end boss.

EDIT: I'm so stupid. The mancubus and end boss were in doom2. The rocket and it's explosion were made before them. My brain is messed up today. Maybe this will help me: Image
User avatar
Hirogen2
Posts: 2033
Joined: Sat Jul 19, 2003 6:15 am
Graphics Processor: Intel with Vulkan/Metal Support
Location: Central Germany
Contact:

Post by Hirogen2 »

Dunno2, look into the zdefs.h and look for Explo*something.
Mighty Duck X-treme
Posts: 272
Joined: Tue Jul 15, 2003 5:48 pm
Location: Chesterfield, Missouri

Post by Mighty Duck X-treme »

Xaser wrote:Maybe this will help me: *Angry smilie*
Uh oh

NOW look what I've done with all the mess I caused here
User avatar
Enjay
 
 
Posts: 26517
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Post by Enjay »

Can't see anything obvious in the source, or by dumping all the actor classes.

I suppose you could define a destructible DECORATE item, and destroy it with a script when you want an explosion. Pretty sure that'd work.
User avatar
Xaser
 
 
Posts: 10772
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Post by Xaser »

YES I ADMIT IT I STOLE THE SMILIE FROM THAT POST!!!

Whoops, had my capslock on! Ouch. All that headbashing has given me a headache. Image
User avatar
Sphagne
Posts: 513
Joined: Wed Jul 16, 2003 3:36 am

Post by Sphagne »

/me tries to cure Xaser's head : Image
Last edited by Sphagne on Thu Jul 24, 2003 3:22 pm, edited 1 time in total.
User avatar
Xaser
 
 
Posts: 10772
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Post by Xaser »

Thanx! Much Better...
User avatar
Biff
Posts: 1061
Joined: Wed Jul 16, 2003 5:29 pm
Location: Monrovia, CA, USA

Post by Biff »

I've made some reasonable explosions for someone who wanted a "land mine" section for his wad. I put some map spots here and there, then wrote a script to make an explosion at one of the map spots. It was pretty simple and worked well. Spawn a rocket just above the ground, using a fairly large -z velocity. The explosion is essentially instant with the script execution. The script also caused a very short earthquake jolt at the same map spot so you could "feel" the explosion. Also, for eye candy, the script spawned a little spray of imp fireballs up from that map spot, random angle, horizontal and vertical velocities within a range which looked good. You might even spawn an archvile flame after the explosion for longer-lasting pleasure. :)

If you wanted a mid-air explosion and that spawnable explosion Enjay mentioned isn't available, you might be able to spawn a rocket in the air, perhaps no velocity, assign it a TID as it's spawned, then follow that with a thing_destroy script to act on the spawned rocket. Follow Cyb/Timmie's example to generate a spherical spray of fireballs or whatever favorite projectiles you wish.

Edit: Tried it, there were a few little problems. It seems invalid to assign a TID to a rocket in flight, or that thing_destroy is not valid when acting on a rocket in flight. A rocket "ready to explode" can be spawned with thing_projectile, but it can't be acted upon by thing_destroy AFAIK. So, just put an invisible bridge thing in the same place as the map spot which you use for thing_projectile and the rocket will explode instantly. You don't even need to assign any velociy to the rocket, it explodes immediately upon "telefragging" the bridge thing.

I also tried it with an exploding barrel because those can be assigned a TID when spawned, and destroyed by script. Problem is, the barrel wants to fall. If you write a dehacked patch to make it float, it will do so but when destroyed it falls to the ground and does not look like a mid-air explosion. So I'd use a rocket to start unless the spawnable explosion is available.
Locked

Return to “Editing (Archive)”