TF2-DMB / CBaseNPC

Provides a friendly interface for plugins to use in order to create custom NPCs on the game Team Fortress 2
37 stars 6 forks source link

Prepare proper handling of multi dimensional arrays #9

Closed Kenzzer closed 3 years ago

Kenzzer commented 3 years ago

As of alliedmodders/sourcepawn@ba26ae3f2b4fbe6e26955655fc1e11981fcaea54 Plugins compiled on sourcepawn 1.11 will have different 2D arrays. This PR prepares the eventual fix that will be needed for it.

However since SP 1.11 will land with SM 1.11, which has yet to land on stable branch. It would be unwise to update our sourcemod source code installations, just to get access to the new function that was added on IPluginRuntime. As this will make the compiled extension only available on SM 1.11.

This is why those preprocessing if statements #if SOURCEPAWN_API_VERSION >= 0x0211 have been added, so when the time comes, we can provide CBaseNPC builds on SM 1.10 and SM 1.11. We will remove those statements, once SM 1.12 lands on stable branch, which will probably happen in several years from now.