Lava And Fire Damage

Post » Fri May 27, 2011 7:05 am

I'm working on a mod that has volcanic activity, and I seem to have a problem with the lava. Imagine that I have a creek or stream of lava that is fairly lengthy, but only 6 to 10 feet wide.. In game, at the head of the stream, if you walk on the lava you get fire damage. For most of the length of the stream you can stroll down the middle of it with no effect.

The meshes are identical vanilla Morrowind lava and I can detect no difference between one stretch and the next. I googled looking for a similar problem, but nothing came up. If someone could point me in the right direction, I'd sure appreciate it.
User avatar
Lloyd Muldowney
 
Posts: 3497
Joined: Wed May 23, 2007 2:08 pm

Post » Fri May 27, 2011 2:36 am

Do the lava-layer objects have the right script attached (HurtStandingActor)?
User avatar
R.I.p MOmmy
 
Posts: 3463
Joined: Wed Sep 06, 2006 8:40 pm

Post » Fri May 27, 2011 8:06 am

They all have the following script attached:
begin lavaif ( menumode == 1 )	returnendifif ( CellChanged == 0 )	if ( GetSoundPlaying "lava layer" == 0 )		PlayLoopSound3DVP "lava layer", 1.0, 1.0	endifendifHurtStandingActor, 20.0		;20 pts of damage a secend lava

User avatar
Jessica Nash
 
Posts: 3424
Joined: Tue Dec 19, 2006 10:18 pm

Post » Fri May 27, 2011 8:30 am

Is your character standing deeper below the lava at points in your stream? Because I know that even regular Morrowind lava doesn't always work if the player sinks too far below the mesh.
User avatar
Charity Hughes
 
Posts: 3408
Joined: Sat Mar 17, 2007 3:22 pm

Post » Fri May 27, 2011 3:11 am

Is your character standing deeper below the lava at points in your stream? Because I know that even regular Morrowind lava doesn't always work if the player sinks too far below the mesh.


Really... I'll bet that's it. Do you happen to know if it's better to have the lava just above a flat, level stretch of ground or if it's raised over a v-shaped trench?
User avatar
ILy- Forver
 
Posts: 3459
Joined: Sun Feb 04, 2007 3:18 am

Post » Fri May 27, 2011 11:51 am

Really... I'll bet that's it. Do you happen to know if it's better to have the lava just above a flat, level stretch of ground or if it's raised over a v-shaped trench?

If I remember correctly, the lava needs to be about thigh deep on the Player for the damage to take effect.
So flat ground would probably be easiest to work with.
User avatar
Cameron Wood
 
Posts: 3384
Joined: Wed Oct 31, 2007 3:01 pm

Post » Fri May 27, 2011 12:37 pm

If you need to, you can also used invisible collision walls just below your lava pool in certain areas. If you want the player to be able to sink deep into the lava, you can create a collision surface with the HurtStandingActor script on it, and place it somewhere below the actual lava layer.
User avatar
cheryl wright
 
Posts: 3382
Joined: Sat Nov 25, 2006 4:43 am

Post » Fri May 27, 2011 2:59 am

Thigh deep turned out to be the answer. I've got most of it working as I want now, except for the edges which are only ankle deep. I'm not sure how realistic it is to stand ankle deep in lava without suffering any damage, but I may use the collision idea to patch that up as well.
User avatar
Hussnein Amin
 
Posts: 3557
Joined: Sun Aug 05, 2007 2:15 am

Post » Fri May 27, 2011 2:47 am

If I remember correctly, the lava needs to be about thigh deep on the Player for the damage to take effect.

In all the time I've played MW, I never, ever noticed that :blink: Can't say I've gone swimming in lava much though either. :P

Hm, I guess the problem is you want actors to sink in lava, which won't happen if they collide with the surface - but you need collision for HurtStandingActor to work correctly.
User avatar
KRistina Karlsson
 
Posts: 3383
Joined: Tue Jun 20, 2006 9:22 pm

Post » Fri May 27, 2011 12:57 pm

I found this out the hard way, because I once created an area where the actor could literally swim in the lava, by placing the lava layer over a large pool of water, and placing big red lights under the water to make it red.

Didn't exactly work as intended. :facepalm:
User avatar
Madison Poo
 
Posts: 3414
Joined: Wed Oct 24, 2007 9:09 pm


Return to III - Morrowind