Explosions duplicating?

Post » Sat May 28, 2011 4:10 pm

Hey everyone. So I was making a mod to show a friend the G.E.C.K. and decided that a sniper rifle that uses explosive rounds would be a good thing to make. I decided I wanted to use this mod for myself, but it's ridiculously overpowered. After researching it a bit (and spending a good half-hour looking for the pieces of some raiders) i figured out that the further the bullet travels, the more explosions there are. I used a copy of the regular sniper projectile and just added an explosion to it. The rifle only fires a single projectile. Does anyone know how to fix this?
User avatar
Hope Greenhaw
 
Posts: 3368
Joined: Fri Aug 17, 2007 8:44 pm

Post » Sat May 28, 2011 1:11 pm

Try looking at how things like missiles work, and set your projectile up just like that. But start with a bullet so its not a giant missile shooting, and dont give it any gravity (so it wont arc) and it should work better. I am not sure why it would have more further, you probably just accidently messed up a setting somewhere. Is it possible the gun fires more than 1 projectile per fire? Then there are always like, say, 5 explosion, they are just all inside eachother when your very close to what you hit.
User avatar
roxxii lenaghan
 
Posts: 3388
Joined: Wed Jul 05, 2006 11:53 am

Post » Sat May 28, 2011 6:56 am

Try looking at how things like missiles work, and set your projectile up just like that. But start with a bullet so its not a giant missile shooting, and dont give it any gravity (so it wont arc) and it should work better. I am not sure why it would have more further, you probably just accidently messed up a setting somewhere. Is it possible the gun fires more than 1 projectile per fire? Then there are always like, say, 5 explosion, they are just all inside eachother when your very close to what you hit.

I fired one at my feet and it didn't deal much damage. Just seemed like a typical frag explosion (which is what I used for this. But for some reason, when I shot a mole rat from one end of town to the other (basically), it took about a second for the explosions to stop appearing. I'm somewhat baffled by this.
User avatar
leigh stewart
 
Posts: 3415
Joined: Mon Oct 23, 2006 8:59 am

Post » Sat May 28, 2011 7:47 pm

Nearly ALL projectiles are type:missile.. that simply means they move from point A (projectile node on the gun) to point B, whatever that is, and use the rules you setup on the projectile to govern HOW they do that (like arc, speed, and whatnot).

When you attach an "explode on impact" type explosion to your custom projectile, the damage settings listed on the guns first tab, along with the accompanying impact data set, are NOT used... they are swapped out for the damage settings and the impact data set that the explosion uses instead. The end result damage is the same as if you placed ONE of that kind of explosion at the impact site manually, it's NOT the combination of the guns damage plus the explosions damage. The reason your explosive projectile is so damaging is because it is exactly the same as if a frag grenade went off at the enemies feet, depending on the radius and damage settings used on that particular explosion. All you did is change the form it's delivered on the target with... which is correct, but you have to edit the explosions damage amount down a bit (not the radius), so use a custom copy of an explosion as well.

Damage from an exploding projectile is calculated from the impact site on the target (how high up on the enemy it is) down to the ground. If the impact site is higher up from the ground then the explosions damage radius is large, (meaning the explosions damage radius does not reach the ground) then no damage will be dealt at all... although the explosion FX will still play. (If within the damage radius amount, the explosion damage radiates UP from the ground at an actors location, non-actor damage seems to be calculated differently). For this reason, it's best to leave the explosions damage radius large (so that head shots will register damage on tall enemies), or include a script effect to apply even damage to the target and forego using the explosion damage completely. If not, then you'll be forced to shoot low on the enemy to damage them.

My guess the reason explosions take longer from start to finish when they're in the distance is because after you pass the point where the impacts will leave a blast decal on the ground/target, the computations for the explosion itself get shuffled to lower priority... meaning they get updated less often than nearer stuff. So it literally IS staying in the blowup stage longer, and the further out you go, the less often it gets updated and they last even longer. It's hardcoded so no use trying to reverse it the way it should be.. although it is possible to use a lower damage shot, and apply more explosions on the target the nearer it is to the player. The scripting of that wasn't worth the effort for me, and would only really work on actors, so I never went there.
User avatar
Steve Fallon
 
Posts: 3503
Joined: Thu Aug 23, 2007 12:29 am


Return to Fallout 3