fx.module
README.md
bots.fx
The bots' hit effects. Fx.new() gives each bot component its own pooled emitter: fx:sparks(point, dirX, dirZ, strength) throws a shower of hot orange-white spark-streak sprite cards (bots.textures.sparkStreak on the additive spark/sparkWhite materials, laid along their flight and turned to the camera) with a flash of point light at a weapon or hazard contact, fx:smoke(on, anchor) pours camera-facing black smoke-puff sprites (bots.textures.smokePuff on the multiply-blended smoke material, fading out by tint) off a destroyed bot, fx:tick(dt) advances them every frame. Pool entities are temporary and created on first use. Used by bots.botcore (weapon hits) and the HavocBot / RiptideBot components (hazard hits, destruction).