Blockland Forums > Suggestions & Requests

Earthquake effect explosion

Pages: (1/2) > >>

TheArmyGuy:

I'm looking for an 'explosion' that just makes a player's screen vibrate, kind of like the hammer hit, but with a huge range. Like, server-wide range. It sounds relatively simple to me, since it doesn't need any fancy particles or anything. Any help would be very much appreciated.

SWAT One:

It can be done, but not without a little damage.  There needs to be at least 1 damage  for the explosions to work.

Gravity Cat:


--- Quote from: SWAT One on July 03, 2013, 02:31:56 PM ---It can be done, but not without a little damage.  There needs to be at least 1 damage  for the explosions to work.

--- End quote ---
Explosion damage has nothing to do with camera shake.



You could spawn an explosion with tiny radius on every player, resulting in everyone experiencing the same amount of shake.


Titanium Man:


--- Quote from: SWAT One on July 03, 2013, 02:31:56 PM ---It can be done, but not without a little damage.  There needs to be at least 1 damage  for the explosions to work.

--- End quote ---
why talk about something like you know it when actually you don't know stuff about

the fields which control camera shake in an explosion are bolded below
you can take any mod (except default mods) and edit the bolded fields

--- Quote ---datablock ExplosionData(rocketExplosion)
{
   //explosionShape = "";
   explosionShape = "./explosionSphere1.dts";
   soundProfile = rocketExplodeSound;

   lifeTimeMS = 350;

   particleEmitter = rocketExplosionEmitter;
   particleDensity = 10;
   particleRadius = 0.2;

   emitter[0] = rocketExplosionRingEmitter;

   faceViewer     = true;
   explosionScale = "1 1 1";

  shakeCamera = true;
   camShakeFreq = "10.0 11.0 10.0"; <- speed of shaking
   camShakeAmp = "3.0 10.0 3.0"; <- how strong shake is
   camShakeDuration = 0.5; <-how long it lasts, pretty sure its in seconds
   camShakeRadius = 20.0; <-radius, editing this field to something like 100000 will be pretty much server-wide

   // Dynamic light
   lightStartRadius = 10;
   lightEndRadius = 25;
   lightStartColor = "1 1 1 1";
   lightEndColor = "0 0 0 1";

   damageRadius = 3;
   radiusDamage = 100;

   impulseRadius = 6;
   impulseForce = 4000;
};

--- End quote ---

edit; i found a "shake" explosion made by swollow which is invisible, and only causes a shake
https://dl.dropboxusercontent.com/u/50959273/Explosion_Rumble.zip
just edit the "shakeCamera" part to fit your needs

Swollow:

I can make that explosion bigger if you want

Edit:
Here is one that has a much bigger range, shakes more, and for a longer duration

https://dl.dropboxusercontent.com/u/50959273/Explosion_EarthQuake.zip

Pages: (1/2) > >>

Go to full version