Forums »
Modding » Zarkonnen, a couple questions about particles/effects...
Zarkonnen, a couple questions about particles/effects...
Want to participate?
Register an account.
Forums »
Modding » Zarkonnen, a couple questions about particles/effects...
Lieutenant, Engineering Corps
Hi Zarkonnen,
Can you please point me to the right part of the source code, which is responsible for how often particles are emitted by the projectile in flight? Because even when I make so that particle has 1000% chance to spawn from the projectile in-flight (configured in via Weapon Appearance class), it still hits some upper limit that set somewhere in the source code. And location of this "upper limit" will help me a lot.
Aerial Emperor
The code for emitting shot particles is in Shot.java, right at the start of the tick function. The limit you're hitting is that because shot emission is a probability, it will at most spawn one particle per frame, so 60 particles per second.