Left 4 Dead 2

Left 4 Dead 2

[LEGACY] Trash-talking AI Specials
 This topic has been pinned, so it's probably important
goob 29 Oct, 2023 @ 1:39am
how to edit
i want them to say n word :steamsad:
< >
Showing 1-15 of 20 comments
heeelp uuuus!
ChimiChamo  [developer] 29 Oct, 2023 @ 3:41am 
first make sure you have the l4d2 authoring tools installed, you can find it in the tools tab in your library. next navigate to your l4d2 main directory and go to left4dead2/addons/workshop. There you'll find all your installed workshop addons. find 3061938834.vpk and then drag it into bin/vpk.exe in your main l4d2 directory. this will extract the contents of the addon. open the folder titled 3061938834 that has been created and go to scripts/vscripts/director_base_addon.nut. open this file in any text editor and youll find the lines that you can change at the bottom of the script. make sure there is a comma after each line in the array
7\ 29 Oct, 2023 @ 5:05am 
Originally posted by ChimiChamo:
first make sure you have the l4d2 authoring tools installed, you can find it in the tools tab in your library. next navigate to your l4d2 main directory and go to left4dead2/addons/workshop. There you'll find all your installed workshop addons. find 3061938834.vpk and then drag it into bin/vpk.exe in your main l4d2 directory. this will extract the contents of the addon. open the folder titled 3061938834 that has been created and go to scripts/vscripts/director_base_addon.nut. open this file in any text editor and youll find the lines that you can change at the bottom of the script. make sure there is a comma after each line in the array

i edited it and now infected rarely, as in RARELY say their lines, they only say them every like 5 kills. is there any way to change the frequency? it was working js fine but idk maybe changing the lines messed it up. i checked and theres commas, but the infected only say lines rarely and they never say the lines that I made
Last edited by 7\; 29 Oct, 2023 @ 5:39am
ChimiChamo  [developer] 29 Oct, 2023 @ 5:58am 
i may have forgotten to mention something, whoops. You have to drag the folder with the script back into vpk.exe. you then drag the new 3061938834.vpk into your addons folder and unsubscribe from the workshop addon. to change the frequency that the specials talk, you modify the lines near the top reading "if(RandomInt(0,2) == 2)" to different values
Тимур 29 Oct, 2023 @ 11:07am 
25851815512144157567
The Blu Portal 29 Oct, 2023 @ 2:35pm 
What should the values be and which ones do we need to change?
ChimiChamo  [developer] 29 Oct, 2023 @ 2:37pm 
Originally posted by The Blu Portal:
What should the values be and which ones do we need to change?
assuming you mean the randomint thing, that generates a random number from the minimum which there is 0, to the max which there is 2 then theres a check for whether the random number is 2 and if it is do whatever happens next. If you want to make it rarer, youd have to make the max larger, to make it more common, make the max smaller and then change what it equals to since obviously it cant generate a number outside of its range
The Blu Portal 29 Oct, 2023 @ 2:41pm 
Originally posted by ChimiChamo:
Originally posted by The Blu Portal:
What should the values be and which ones do we need to change?
assuming you mean the randomint thing, that generates a random number from the minimum which there is 0, to the max which there is 2 then theres a check for whether the random number is 2 and if it is do whatever happens next. If you want to make it rarer, youd have to make the max larger, to make it more common, make the max smaller and then change what it equals to since obviously it cant generate a number outside of its range
Thanks, ill make it "if(RandomInt(0,1) == 1)"
The Blu Portal 29 Oct, 2023 @ 3:14pm 
Got it, so to edit you want to open your game directory from steam and open a second window of file explorer and get to the same place. In one window do left4dead2 > addons > workshop, find 3061938834 (make sure you boot the game at least once when you subscribe for it to show). In the second window click bin and find vpk.exe. Now drag 3061938834.vpk to vpk.exe. In your first window at the top you should see a folder now, do (folder)3061938834 > scripts > vscripts . Open director_base_addon.nut with notepad. To edit frequency to 100% change all instances of "if(RandomInt(0,2) == 2)" to "if(RandomInt(0,1) == 1)" there should be 4 instances. To edit lines, find "local killLines =" for kill lines "local TankkillLines =" for tank kill lines and "local grablines =" for the grab lines. To add extra lines make sure you have a comma after every one and not one at the end example:
correct
"go back to roblox lmao",
"absolute trash",
victim.GetPlayerName() + " uninstall"
incorrect
"go back to roblox lmao",
"absolute trash"
victim.GetPlayerName() + " uninstall",
Once you are done with editing click file in the top left and save. go back to the workshop (left4dead2 > addons > workshop) and drag the folder 3061938834 to vpk.exe. Now you can load the game and it should be working.
Last edited by The Blu Portal; 29 Oct, 2023 @ 3:14pm
ChimiChamo  [developer] 29 Oct, 2023 @ 3:38pm 
Thanks for doing my job for me lol, I should mention though that doing randomint(0,1) would be a 50% chance, as the generated number will either be 0 or 1
Seraphim 29 Oct, 2023 @ 11:49pm 
Me when the infected tells me to "Slit my wrists and do a hand stand in a salt bath"
PRR6755 30 Oct, 2023 @ 4:10pm 
after reading this, I compiled an even more accurate version of this mod. complete with unfiltered swearing that screams mid 2010s rage lobbies.
ThePlayzPaidOff 31 Oct, 2023 @ 3:59am 
Originally posted by ChimiChamo:
first make sure you have the l4d2 authoring tools installed, you can find it in the tools tab in your library. next navigate to your l4d2 main directory and go to left4dead2/addons/workshop. There you'll find all your installed workshop addons. find 3061938834.vpk and then drag it into bin/vpk.exe in your main l4d2 directory. this will extract the contents of the addon. open the folder titled 3061938834 that has been created and go to scripts/vscripts/director_base_addon.nut. open this file in any text editor and youll find the lines that you can change at the bottom of the script. make sure there is a comma after each line in the array
Haha, the author is helping randoms drop the N bomb. XD
Jay 3 Nov, 2023 @ 10:34am 
Latest update has a few commas missing from the end of some of the lines. Maybe that's why it has stopped working for some people.
SWalk42 13 Nov, 2023 @ 10:41am 
well people do N bomb sometimes
and using the v2 version of this mod you get a 3 n word bomb *by the way v2 surports this at the same time and is made by diffrent people*
< >
Showing 1-15 of 20 comments
Per page: 1530 50