VPlugin: Difference between revisions
From TF2 Classified Wiki
More actions
No edit summary |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{stub}} | {{stub}} | ||
{{ambox|contents=There is likely missing and incorrect information as there's little to no documentation on how VPlugins work.}} | {{ambox|contents=There is likely missing and incorrect information as there's little to no documentation on how VPlugins work.}} | ||
'''VPlugins''' are Vscript code that uses a built-in system in ''Team Fortress 2 Classified'' | '''VPlugins''' are Vscript code that uses a built-in system in ''Team Fortress 2 Classified'' to automatically load and apply scope isolation. The intended use of them is for server plugins built on top of VScript. TF2C comes with several VPlugins out of the box, most of which are disabled by default. VPlugins were introduced with the [[3.1.0]] update. | ||
== Usage == | == Usage == | ||
Squirrel files can be placed in <code>tf2classified/vplugins</code>. It's possible to also include secondary files in a subdirectory that can be imported from the plugin. The top-level scripts in this folder can be toggled on and off using the configuration file located at <code>tf2classified/cfg/vplugins.cfg</code>. By default the game will add an entry for any plugins not explicitly in the file. Plugins can be disabled by prepending them with a minus symbol. Changes take effect on map load. | Squirrel files can be placed in <code>tf2classified/vplugins</code>. It's possible to also include secondary files in a subdirectory that can be imported from the plugin. The top-level scripts in this folder can be toggled on and off using the configuration file located at <code>tf2classified/cfg/vplugins.cfg</code>. By default the game will add an entry for any plugins not explicitly in the file. Plugins can be disabled by prepending them with a minus symbol. Changes take effect on map load. | ||