generated from MrSphay/codex-agent-repository-kit
Restore cinematic explosion impact
All checks were successful
Build / build (push) Successful in 12m15s
All checks were successful
Build / build (push) Successful in 12m15s
This commit is contained in:
@@ -16,7 +16,7 @@ public class DeafnessConcussionEffect {
|
||||
DeafnessConcussionEffect.intensity = Math.max(DeafnessConcussionEffect.intensity, intensity);
|
||||
totalTicks = Math.max(1, (int)Math.round(Math.max(1.0, silentSeconds) * 20.0));
|
||||
ticksRemaining = Math.max(ticksRemaining, totalTicks);
|
||||
LowPassConcussionEffect.setDeafnessGain((float)Math.max(0.18, 1.0 - intensity * 0.75));
|
||||
LowPassConcussionEffect.setDeafnessGain((float)Math.max(0.12, 1.0 - intensity * 0.82));
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ public class DeafnessConcussionEffect {
|
||||
}
|
||||
--ticksRemaining;
|
||||
double remaining = ticksRemaining / Math.max(1.0, totalTicks);
|
||||
LowPassConcussionEffect.setDeafnessGain((float)Math.max(0.18, lerp(1.0, 1.0 - intensity * 0.75, easeOutQuad(remaining))));
|
||||
LowPassConcussionEffect.setDeafnessGain((float)Math.max(0.12, lerp(1.0, 1.0 - intensity * 0.82, easeOutQuad(remaining))));
|
||||
}
|
||||
|
||||
public static double lerp(double a, double b, double t) {
|
||||
|
||||
Reference in New Issue
Block a user