Using VScript for map agnostic mod

cidra

L1: Registered
Oct 10, 2023
1
0
Would it be possible to use VScript to make a mod that can be applied to any map, either at runtime or at compile time (just-in-time)? Sourcemod looks quite limited and I was searching for all possible ways of making mods in TF2.
 

worMatty

Repacking Evangelist
aa
Jul 22, 2014
1,258
999
Yes, you can run a script on the server on any map. If you want it to happen automatically you might need to get the server to add a line to their server.cfg file to execute it, or create a mapspawn.nut file with some instructions, but if a map has its own mapspawn.nut file it might override. And of course SourceMod can run VScripts.

What is it you wanted to do using VScript that you can't do using SourceMod?