PDA

View Full Version : [EXTENSION] IntMaps


kidfearless
03-31-2020, 15:16
I decided to make this extension after seeing Illusion9's stock for intmaps using stringmaps. It's probably not faster than stringmaps but was a fun project to work on. Big thanks to xutaxkamay for teaching me how to build sourcemod extensions.

It has a couple of benefits over normal stringmaps in that arrays, cells, and strings are stored separately from each other and so their keys can overlap.
String and array sizes are tracked and so you can get the size of the buffer needed before retrieving them.
It comes with 3 callback functions to easily iterate over the values and passes copies and sizes along with them.

I only have tested this on Windows but it should work the same on Linux... hopefully.

Download Link:
https://github.com/kidfearless/intMaps_ext/releases

Source:
https://github.com/kidfearless/intMaps_ext