Grenade Damage

Discuss Halo 2 modding, progress on figuring things out, mapfiles...you know the drill. Cheating discussion not allowed.
Post Reply
Kyman2008





Posts: 21
Joined: Fri Aug 26, 2005 12:05 pm

Grenade Damage

Post by Kyman2008 »

How do I make it so a plasma grenade only does damage if you get stuck with it? Also, is there a way to make it explode on impact? Thanks
[users]platesofpaper





Posts: 79
Joined: Mon May 29, 2006 6:20 pm
Location: Phoenix, AZ
Contact:

Post by [users]platesofpaper »

I haven't tried this, but I looked in Dothalo and I think I found it.

1. Go to the jpt! tag.

2. Scroll down to objects/weapons/plasma_grenade/damage_effects/plasma_grenade_boarding_explosion, objects/weapons/plasma_grenade/damage_effects/plasma_grenade_equipment_explosion,
and objects/weapons/plasma_grenade/damage_effects/plasma_grenade_explosion.

3. Change the Minimum Damage, the Damage[min], and the damage[max] to 0 on those three. (Leave the objects/weapons/plasma_grenade/damage_effects/plasma_grenade_attached_explosion at its default)

Hope that helped (and is correct)!


EDIT- (I missed the second part of your question)
And for your second question:

1. Go to the proj tag.

2. Scroll down to the plasma grenade.

3. Change the minimum and maximum explosion delay to zero.

Again, I hope that helped (and is right, again) :oops:
Last edited by [users]platesofpaper on Sun Jun 04, 2006 9:07 pm, edited 2 times in total.
Image
DeviousDave





Posts: 185
Joined: Mon Dec 05, 2005 9:08 pm

Post by DeviousDave »

Yes, there's a dammage event for the nade being stuck and a seperate one for it exploding on the ground. Just null out the one or set the dammage to 0 fot the on-ground explosion. I think it's just one of the dependancies in the for the plasma nade in the proj tag. Just find the one that has to do with dammage (jpt! would be the tag class) and explosion on the ground.

I don't know about exploding on impact though. sorry.

[edit]
Planesofpaper, you beat me to it but I guess my way is different. I haven't actually tried it wither but I was looking around awhile ago (when I made my br the shoots out blue blobs.. just looks cool but I used the pnade without any dammage or bounce) and saw stuff related to its explosion and weather it was attached or not.

Your seems better because it's eaiser to change back... idk now that I think about it my way is pretty much the same, your changing values, I'm nulling dependencies. Same effect.
Kyman2008





Posts: 21
Joined: Fri Aug 26, 2005 12:05 pm

Post by Kyman2008 »

I saw that too plates before I started this thread but it still didn't work. I was still getting damage from grenades that didn't stick you. Anyway, I switched the attached damage for the grenade to a head shot with the sniper rifle. Now, it's working fine. I'm not sure if the whole swapping damage thing worked of making the range of damage for the grenade 1E-15. Thanks for your help though. But still, I can't figure out how to get the grenade to go off on impact. I tried setting the explosion delay to 0 but still nothing.... Any other ideas?
User avatar
xXxCocoFangxXx





Posts: 3756
Joined: Thu Sep 08, 2005 9:57 am
Contact:

Post by xXxCocoFangxXx »

It has to be in the jpt! tag.
Image
[users]platesofpaper





Posts: 79
Joined: Mon May 29, 2006 6:20 pm
Location: Phoenix, AZ
Contact:

Post by [users]platesofpaper »

You could try changing the bounce life/bounce distance before exploding to zero, as well as change the min/max explosion delays to something like 0.0001.
Image
SyrinEldarin





Posts: 115
Joined: Thu Apr 06, 2006 12:32 pm
Location: Canadia.

Post by SyrinEldarin »

You have to duplicate the plasma nade proj tag first. Then change the time of the duplicated grenade to 0.
DeviousDave





Posts: 185
Joined: Mon Dec 05, 2005 9:08 pm

Post by DeviousDave »

Could you explain to me how that works? I'm interested. How exactally does that make it explode on impact?
SyrinEldarin





Posts: 115
Joined: Thu Apr 06, 2006 12:32 pm
Location: Canadia.

Post by SyrinEldarin »

Unless you've got 1.0. From what he said, it sounds like he's got 1.1, and you can't change the timer of a grenade unless it's duplicated, in 1.1. That's why I said duplicate it :P. If it's gonna be on impact with walls as well, though, the bounce life should be set to 0 too. That seems pointless with the 'damage only on stuck' thing, though.
DeviousDave





Posts: 185
Joined: Mon Dec 05, 2005 9:08 pm

Post by DeviousDave »

Interesting. I didn't know that. Makes sense. Wouldn't you then have to change the dependancies in the globals tag to the duped pnade instead of the regular one, and have the map spawn the duped ones instead of the regular ones?
SyrinEldarin





Posts: 115
Joined: Thu Apr 06, 2006 12:32 pm
Location: Canadia.

Post by SyrinEldarin »

Yup, if you wanted to go all the way. But I didn't bother saying that, cause it's kinda obvious =P
Kyman2008





Posts: 21
Joined: Fri Aug 26, 2005 12:05 pm

Post by Kyman2008 »

Ok... I duplicated and then swapped the tags but now the grenades won't blow up... Now what?
Kyman2008





Posts: 21
Joined: Fri Aug 26, 2005 12:05 pm

Post by Kyman2008 »

Anyone? I have no idea what else is wrong.
User avatar
WaywornMmmmm




Coroner

Posts: 1341
Joined: Sat Nov 05, 2005 5:17 am
Location: U.S.A

Post by WaywornMmmmm »

First don't double post. After you have accomplished that, open your map in dothalo. Go to whatever tag has the timer in it. Then chnage the timer to something like 0.001 or a small number. Then save changes.

The reason it might have not have exploaded would be because the timer was removed. This is just a guess and I'm not sure if it will work. Don't be mad at me.
Kyman2008





Posts: 21
Joined: Fri Aug 26, 2005 12:05 pm

Post by Kyman2008 »

It's weird... If I set the explosion delay to anything less than .1, it won't blow up. However, if I set the explosion delay to .1, it still takes the grenade like 2-3 seconds to blow up after you've been stuck.
SyrinEldarin





Posts: 115
Joined: Thu Apr 06, 2006 12:32 pm
Location: Canadia.

Post by SyrinEldarin »

Even after you duplicated? That's mighty odd.
Kyman2008





Posts: 21
Joined: Fri Aug 26, 2005 12:05 pm

Post by Kyman2008 »

Yeah, even after I have duplicated it. Should I have renamed it? Right now, I am using the projectile named Plasma_grenade2 and I switched all the tags that were originally pointing to Plamsa_grenade. That's all you have to do to duplicate it, right?
Post Reply