DoktorSAS / VanityTS

VanitiyTS is a trickshot mod for call of duty games and clients.
GNU General Public License v3.0
4 stars 3 forks source link

VanityTS Trickshot MOD

The VanityTS is a trickshot gamemode mod ported over multiple clients and games.

Supported Games

Usage

Download the files from the git and open the folder of the game you want to play with. After that select the folder or the folders inside and copy it into the correct appdata folder, such as %localappdata%\plutonium\storaga\<client>\ or %localappdata%\xlabs\data\<client>\ where the client can be T4,T5,T6,IW5. In the cases of iw6x, s1x, h1-mod would be different, for exemple H1-MOD Call of Duty: Modern Warfare Remastered %localappdata%\h1-mod\data\cdata\ is the correct folder, for AlterWare clients would be %gameclient%\<client>\scripts\ ) while for T7 put the compiled file in BOIII Game Folder\BOIII\scripts\maps\mp\gametypes\ or put the mp_vanityts into the mods folder

Binds

How to edit the mod

Modifying the menu is quite simple, you just need to know a minimum of gsc or basic programming to be able to do it. In any case I arrange for you a short guide on how to modify the menu.

Add option to the menu

To add an option to the menu we need to know how the addOption(...) function work. The function need different arguments to work as intended.

addOption(<level: integer>, <parent page: string>, <option name: string>, <function pointer: ptr>, <arguments: string>);
Argument Description Value exemple
level The level rappresent the required role to view and get the access to the option 1
parent page It rappresent the page to return when press the go back button "default"
option name It rappresent the name to display on the menu "Print GUID"
function pointer Pointer to the function to call once pressed on the option ::printGuid
arguments It rappresent the arguments that are being through to the called method "dksas", for multiple args "radar_mp;UAV"

Lets make an exemple, "what we need to to do add a function to display player guid?"

buildOptions()
{
    if ((self.menu["options"].size == 0) || (self.menu["options"].size > 0 && self.menu["options"][0].page != self.menu["page"]))
    {
        self.menu["ui_options_string"] = "";
        self.menu["options"] = [];
        switch (self.menu["page"])
        {
        ...
        case "default":
        default:
            if (isInteger(self.menu["page"]))
            {
                ...
            }
            else
            {
                if (self.menu["page"] == "")
                {
                    self.menu["page"] = "default";
                }
                addOption(0, "default", "Trickshot", ::openSubmenu, "trickshot");
                addOption(0, "default", "Scorestreaks", ::openSubmenu, "scorestreaks");
                addOption(2, "default", "Players", ::openSubmenu, "players");
                addOption(0, "default", "Print GUID", ::printGuid); // -> add an option to the default page
            }
            break;
        }
    }
}

printGuid()
{
    self iprintln(self.guid);
}

Disclaimer

Those scripts have been created purely for the purposes of academic research. Project maintainers are not responsible or liable for misuse of the software. Use responsibly.