I thought he said early ejaculations at first was like wtf.
Wet dreams though.
Turns out they're using my ancient and horribly put together sound library.... please don't use that, it's trash lol.
I've taken it down because I've neglected to handle the problems it has for years now and I don't feel like fixing/remaking it. I may do so after Lux is finished because I did make a custom sound system for that which works a LOT better, but I've got too much else to work on to adapt it into a library to replace the one that's currently up there. |
Bravo1 wrote:
I may do so after Lux is finished because I did make a custom sound system for that which works a LOT better, but I've got too much else to work on to adapt it into a library to replace the one that's currently up there. I'll be lurking, waiting, watching. |
Bl4ck Adam wrote:
Bravo1 wrote: There's an easy fix for now, which is to check if the mob has a client, and if it does, then send it. That way only the players will have it sent to them. An even better way to do it would be to look at all the clients in the world (instead of all the mobs in view(100), then check if their mob is within the maximum range, and if they are, send the sound. |
Bravo1 wrote:
An even better way to do it would be to look at all the clients in the world (instead of all the mobs in view(100), then check if their mob is within the maximum range, and if they are, send the sound. Oh man, looping through view() to find potential players is such a terrible idea. hearers()/viewers()? Even worse. Pre-populate a per-layer list of players then just measure delta x/y per-player to filter input. Dealing with the tilemap when not necessary is just a waste of processing power. This approach assumes that you never set the location of a player manually... Because fuck people who do that. If you want to get real fancy, you can use a quadtree. Standard movement overrides (Tile-based): atom Map segmentation stub: var Example Chat stub: #define WHISPER_RANGE 3 |
Oh man, looping through view() to find potential players is such a terrible idea. hearers()/viewers()? Even worse. Yeah, that's why I told them not to. I made the library so long ago and I look at it now and all I can do is reel back in disgust lol. |
I made the library so long ago and I look at it now and all I can do is reel back in disgust lol. I remember when I thought setting oversized bounding boxes on the map was faster than view(). Holy crap was it not. Learning and growing man... Wild ride. |
![]() ![]() Spent last night and the wee hours of this morning on rewriting the way projectiles are handled. projectiles are much more efficient and accuracy is a lot more.. accurate? lol I still need to port over a handful of other projectiles still but this is progress! |
Wet dreams though.