2023-11-30 22:58:15 -06:00
2023-10-12 13:43:16 -06:00
2023-09-22 13:02:20 -06:00
2023-11-30 20:20:58 -06:00
2023-09-01 11:18:24 -06:00
2023-09-10 15:07:18 -06:00
2023-09-01 11:18:24 -06:00
2023-09-07 14:26:08 -06:00
2023-09-10 18:33:43 -06:00
2023-11-30 22:58:15 -06:00

T4SP-Server-Plugin

A plugin that has code that hopefully compiles and the game will load it to do things. Stability not guaranteed.

Requires Git (https://git-scm.com/), Premake5 (https://premake.github.io/), and MSVC 2022 (https://visualstudio.microsoft.com/vs/features/cplusplus/) to build.

Features

FileIO

This plugin provides FileIO interface to GSC for reading and writing files, this is exact to CoD4x's interface.

However, all reads and writes will take place strictly and only in the scriptdata folder.

All files will be closed upon GSC restart (map_restart or fast_restart or missionfailed, etc).

  • <int> FS_TestFile(<filename string>) Returns true if the file exists, false otherwise.
    if (FS_TestFile("test.txt"))
    {
      PrintConsole("Found test.txt!");
    }
    
  • <int> FS_Remove(<filename string>) Deletes the file, return true if successful.
    if (FS_Remove("test.txt"))
    {
      PrintConsole("test.txt was deleted!");
    }
    

Installation

Move the t4sp-server-plugin.dll to %LOCALAPPDATA%\Plutonium\storage\t4\plugins\, the plugin will be loaded when you start up a dedicated server for Plutonium T4SP.

Credits

Description
A plugin that has code that hopefully compiles and the game will load it to do things. Stability not guaranteed.
Readme AGPL-3.0 2.5 MiB
Languages
C++ 99.9%