Left 4 Dead 2

Left 4 Dead 2

Learn How To Script
11 Comments
Loser  [author] 12 Jul, 2021 @ 9:22am 
If you are coming here from True Weapon RNG, same program requirements and majority of steps above. Only difference being you'll be matching vpk numbers to the True Weapon RNG picture instead of this addon. Remember to un comment the risky weapons you wish to enable for each game mode you'd like them in. If you're going to enable grenades, be sure to un comment local grenades at the top as well.
Loser  [author] 8 Oct, 2020 @ 12:24am 
@AlfredENeuman thank you for the support. Hopefully you found something new or interesting.
AlfredENeuman 7 Oct, 2020 @ 8:12pm 
I gave this a thumbs up and I think it is great you did this (and why didn't somebody else do it sooner?) Even though I'm already a script modder with 41 to my credit I'm going to look this over anyway- you are never too old to learn something new and maybe I will.
Loser  [author] 6 Oct, 2020 @ 11:51pm 
@Woke Up Like This, yes you can. Just follow the the instructions above. The same set of steps apply to any weapon, melee and mission file scripts on the workshop.
Woke Up Like This 6 Oct, 2020 @ 5:23pm 
Is it possible to change the stats of scripts which i have already downloaded (weapon addon scripts downloaded from workshop)
Loser  [author] 5 Oct, 2020 @ 11:16pm 
Folder path is scripts > vscripts
Loser  [author] 5 Oct, 2020 @ 11:16pm 
@サエル Saeru Yes but you would need a vscript to do that.

You'll have to do this for each individual gamemode that you want like coop, realism, survival, etc. Make a text file and name it coop. Change the file extention from .txt to .nut, open it and copy paste this below.

DirectorOptions <-
{

DefaultItems =
[
"weapon_tonfa"
]

function GetDefaultItem( idx )
{
if ( idx < DefaultItems.len() )
{
return DefaultItems[idx];
}
return 0;
}
}
Saeru 5 Oct, 2020 @ 1:22pm 
is it possible to change the starting (or default) pistol with other weapon? like tonfa(nightstick).
Loser  [author] 5 Oct, 2020 @ 5:51am 
You're welcome. Enjoy.
Woke Up Like This 5 Oct, 2020 @ 5:34am 
Cheers for this. Ive always wondered how people changed the stats of weapons. Cheers :)
PapaDogg 5 Oct, 2020 @ 3:58am 
This should be really helpful for getting new people into doing it and not having to constantly request stuff. Good idea.