swwmgz_m/zscript/utility
Marisa the Magician 8d0a087e6c Reduce perf hit of bullet trails by only spawning underwater bubbles actually underwater, instead of always spawning them and then relying on them despawning themselves after checking their own water level.
Further optimization could be possible if I found a way to divide the trace results into segments based on intersections with water volumes. This would save on countless calls to Vec3Offset and PointInSector. Something to keep in mind, I suppose.
While I was at it, I did make the underwater check into a new utility function. It is more or less based on how updating water level is done internally, but saves time by just checking a single point rather than an actor's full height.
Not sure if I'll need to use it elsewhere, but if that turns out to not be the case I'll change it to a private function of the SWWMBulletTrail class afterwards.
2025-03-14 16:23:20 +01:00
..
swwm_utility.zsc Bump zscript ver to 4.14.1, plus a whole lot of stuff. 2025-03-13 14:50:58 +01:00
swwm_utility_achievements.zsc Bump zscript ver to 4.14.1, plus a whole lot of stuff. 2025-03-13 14:50:58 +01:00
swwm_utility_blast.zsc Bump zscript ver to 4.14.1, plus a whole lot of stuff. 2025-03-13 14:50:58 +01:00
swwm_utility_compat.zsc Bump zscript ver to 4.14.1, plus a whole lot of stuff. 2025-03-13 14:50:58 +01:00
swwm_utility_info.zsc Unconditional blood replacement, new blood decals, corpse blood pools. 2025-03-07 17:27:59 +01:00
swwm_utility_item.zsc Reset weapon pickup voicelines only when inventory is wiped. 2023-11-27 15:44:23 +01:00
swwm_utility_map.zsc Reduce perf hit of bullet trails by only spawning underwater bubbles actually underwater, instead of always spawning them and then relying on them despawning themselves after checking their own water level. 2025-03-14 16:23:20 +01:00
swwm_utility_math.zsc Better integer exponentiation using squaring (thanks, phantombeta ♥) 2025-02-04 10:31:35 +01:00
swwm_utility_string.zsc Clean SWWMUtility.SuperscriptNum up a bit (even though it's not used). 2025-02-04 21:18:39 +01:00