summaryrefslogtreecommitdiff
path: root/README.md
blob: 223626d6d3de30ccb451bba08067cd3b4cd4b873 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# bo2-plutonium-gsc

A bunch of mods for black ops 2 zombies

## Install

### With Pre-Compiled Mod

Download the mod binaries from the releases and drag and drop them into `%localappdata%\Plutonium\storage\t6\scripts\zm`, if this destination does not exist, then proceed to create it.

### Manually Compiling the Mod

1. You can write/download any GSC of your choice. If you are writing it from scratch/have the source code, note that you will need to compile it.

2. If you want to write from scratch you can use the code below and given on the ![plutonium forum website](https://plutonium.pw/docs/modding/loading-mods/#t6)

```
init() // entry point
{
    level thread onplayerconnect();
}

onplayerconnect()
{
    for(;;)
    {
        level waittill("connected", player);
        player thread onplayerspawned();
    }
}

onplayerspawned()
{
    self endon("disconnect");
    for(;;)
    {
        self waittill("spawned_player");
        self iprintlnbold("^2GSC from %LocalAppdata%\\Plutonium\\storage\\t6\\scripts\\zm\\test.gsc ^1(Compiled)");
    }
}
```

3. Using the GSC Compiler (from GSC Toolkit), simply drag and drop your raw GSC script ontop of Compiler.exe and it should spit out a compiled version.

![Compilation Process](images/OWtguHd.gif)

*Note: If you get an error, make sure your script isn't already precompiled (open it, and if it looks like gibberish, it is already compiled)*

![Error](images/JgwqeCy.png)

4. Grab the compiled binary, and drag and drop it into `%localappdata%\Plutonium\storage\t6\scripts\zm`, if this destination does not exist, then proceed to create it.

## Using

When launching your server or a custom game, you will know if all has gone well or not if the console prints Custom script 'scripts/mp/yourScriptName' loaded.

![Script Loaded](images/oVlCBnI.png)

## Available Mods

* Zombie Counter;
* Health Counter;
* Tombstone in Solo;
* Perkaholic(All perks in first round);
* A Cat Has 9 Lifes(Custom amount of lives in Afterlife Mode);
* Set Allowed Perk Count by Player;
* Set Initial Player Perks;
* Set Mystery Box Price;