Jump to content
Sign in to follow this  
Tankbuster

custom explosions more powerful on DS than in preview?

Recommended Posts

One of the custom explosions that my IED kit uses is as below.

class CfgAmmo
{
class GrenadeHand;
class tky_tinybomb: GrenadeHand
{
	hit = 10;
	indirectHit = 8;
	indirectHitRange = 5;
	cost = 100000;
	fusedistance = 0;
	cratereffects = "HEShellCrater";
	explosioneffects = "HEShellExplosion";
	soundhit[] = {"\tky_ied_kit\sounds\IED_small",5,1,1500};
};	

In editor preview, when that is spawned near the player (~ 8 metres) is usually wounds him pretty badly, occasionally it kills him. It took a lot of testing to get the power of the explosion just right.

But when I move the addon and test mission to a dedicated server, the same explosion kills the player every single time.

I'm pretty sure I've ruled out PEBKAC with lots of debug.

Does anyone know why this might be?

TIA

Tanky

---------- Post added at 16:10 ---------- Previous post was at 15:56 ----------

PS, the server is only running my IED addon - nothing else.

PPS tried it on two different dedicated servers - same results

Share this post


Link to post
Share on other sites

Have you checked the distance between explosion and player and compare if there is any difference between editor and DS readings?

Maybe explosion happens in slightly different place in DS environment.

Share this post


Link to post
Share on other sites

The explosions are created b y a trigger and I always walk the player into the trigger slowly. The trigger radius is 6m, so yes, the distance is always 6m.

It's possible the explosion is in s slightly different place. The reconfigged grenade you see there is created with a createVehicle array command in open ground so I think it's unlikely.

I've been fiddling with the values to make them the same given what server enviroment is in use. Basically, to get the same on te DS as in preview, I've had to change the indirecthit to 5 from what you see in the OP. Most odd.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×