Game Modding | Call of Duty: Black Ops 3 | Scripting
ModmeBot:
Thread By: Ducky Huge thanks to HarryBO21 for helping me work out where to place the code for it to be overwriting the default setup.
Each player gets a different weapon as opposed to Kyassuru style random weapon from pool.
Instructions:
<ol><li>Copy
from
</li> <li>Open the script file and navigate to
and replace the entire function with the following code:</li> </ol>
3. Replace the four weapon names (e.g.
) with the four the weapons (their weaponfile names/what you put after
in the zone file) you want s to spawn with (e.g.
). 4. Open
and add
to the top of the file with the rest of the
's. 5. In the
of
add
6. Open
and add
ModmeBot:
Reply By: Unity_N For step 6, shouldn't you paste that line of code in mapname.zone instead of mapname.gsc?
ModmeBot:
Reply By: itznvy Is it possible for you to script where each character has their own randomized weapon? For example Dempsey may spawn with an m1911, but Nikolai may spawn with a Mauser.
ModmeBot:
Reply By: Ducky
itznvy Is it possible for you to script where each character has their own randomized weapon? For example Dempsey may spawn with an m1911, but Nikolai may spawn with a Mauser.
Unless I'm misunderstanding you, that's exactly what this script does.
ModmeBot:
Reply By: Ducky
Unity_N For step 6, shouldn't you paste that line of code in mapname.zone instead of mapname.gsc?
Good spot, thanks. I've fixed it.
ModmeBot:
Reply By: The Black Death
Ducky itznvy Is it possible for you to script where each character has their own randomized weapon? For example Dempsey may spawn with an m1911, but Nikolai may spawn with a Mauser. Unless I'm misunderstanding you, that's exactly what this script does.
I think he means that each character gets their own random weapon pool.
if so: I tweaked it a bit to result in this.
Under
Put:
The code provides information on how to use the pool, by the way.
Now, replace:
with:
if this was what you needed, hopefully I helped. :)
<em>I probably messed up the code due to my little experience with GSC, but you never know...</em>
ModmeBot:
Reply By: Ducky Yeah, that looks like it if that's what they meant.
ModmeBot:
Reply By: itznvy That's what i meant. I tried that script and i spawned in without a weapon. This is what i put in zm_usermap.gsc Tell me if there's any issues as I really don't know how to script