Customizable death shake (#10375)
This commit is contained in:
@@ -695,7 +695,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
||||
type.deathExplosionEffect.at(x, y, bounds() / 2f / 8f);
|
||||
}
|
||||
|
||||
float shake = hitSize / 3f;
|
||||
float shake = type.deathShake < 0 ? hitSize / 3f : type.deathShake;
|
||||
|
||||
if(type.createScorch){
|
||||
Effect.scorch(x, y, (int)(hitSize / 5));
|
||||
|
||||
@@ -66,6 +66,8 @@ public class UnitType extends UnlockableContent implements Senseable{
|
||||
accel = 0.5f,
|
||||
/** size of one side of the hitbox square */
|
||||
hitSize = 6f,
|
||||
/** shake on unit death */
|
||||
deathShake = -1f,
|
||||
/** shake on each step for leg/mech units */
|
||||
stepShake = -1f,
|
||||
/** ripple / dust size for legged units */
|
||||
|
||||
Reference in New Issue
Block a user