Left 4 Dead 2

Left 4 Dead 2

[LEGACY] Trash-talking AI Specials
 Denna tråd har blivit fäst, så den är troligtvis viktig
goob 29 okt, 2023 @ 1:39
how to edit
i want them to say n word :steamsad:
< >
Visar 1-15 av 20 kommentarer
heeelp uuuus!
ChimiChamo  [utvecklare] 29 okt, 2023 @ 3:41 
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
katwu 29 okt, 2023 @ 5:05 
Ursprungligen skrivet av 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
Senast ändrad av katwu; 29 okt, 2023 @ 5:39
ChimiChamo  [utvecklare] 29 okt, 2023 @ 5:58 
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 okt, 2023 @ 11:07 
25851815512144157567
The Blu Portal 29 okt, 2023 @ 14:35 
What should the values be and which ones do we need to change?
ChimiChamo  [utvecklare] 29 okt, 2023 @ 14:37 
Ursprungligen skrivet av 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 okt, 2023 @ 14:41 
Ursprungligen skrivet av ChimiChamo:
Ursprungligen skrivet av 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 okt, 2023 @ 15:14 
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.
Senast ändrad av The Blu Portal; 29 okt, 2023 @ 15:14
ChimiChamo  [utvecklare] 29 okt, 2023 @ 15:38 
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 okt, 2023 @ 23:49 
Me when the infected tells me to "Slit my wrists and do a hand stand in a salt bath"
PRR6755 30 okt, 2023 @ 16:10 
after reading this, I compiled an even more accurate version of this mod. complete with unfiltered swearing that screams mid 2010s rage lobbies.
Ursprungligen skrivet av 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:34 
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:41 
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*
< >
Visar 1-15 av 20 kommentarer
Per sida: 1530 50