Left 4 Dead 2

Left 4 Dead 2

Your own custom apocalypse
Discover and download new maps, Add-ons, Mutations and more! Want to try your hand at modding or want to upload your mod to Steam?
Learn More
Saeru 102 22 Oct, 2023 @ 12:03am
Does anyone know an addon that change the starting secondary weapon with a melee?
i wanted to change the starting weapon set from the survivors bc i have an addon that changes the night stick/ tonfa with knucles, so i wanted to start with this melee, how ever, i dont know how to make vscripts or scrips at all, does anyone know if an addon like this exist or even is possible to replace the dual pistols at the start?
< >
Showing 1-8 of 8 comments
Jo 263 25 Oct, 2023 @ 10:25pm 
yes
NB 57 26 Oct, 2023 @ 6:34am 
Just set this function on scriptedmode and you are ready to go , for reference
DirectorOptions <- { ActiveChallenge = 1 DefaultItems = [ "tonfa", ] function GetDefaultItem( idx ) { if ( idx < DefaultItems.len() ) { return DefaultItems[idx]; } return 0; } }
Last edited by NB; 26 Oct, 2023 @ 6:34am
Saeru 102 28 Oct, 2023 @ 2:51am 
Originally posted by NB:
Just set this function on scriptedmode and you are ready to go , for reference
DirectorOptions <- { ActiveChallenge = 1 DefaultItems = [ "tonfa", ] function GetDefaultItem( idx ) { if ( idx < DefaultItems.len() ) { return DefaultItems[idx]; } return 0; } } [/quote] i've tried doing it, but it seems that doesn't work, i'm making a .nut file called scriptedmode and copy paste the code, and then putting it into -scripts -vscripts, am i missing something?
NB 57 28 Oct, 2023 @ 10:05am 
mmm , sending you a friend request to share you the script.
Last edited by NB; 28 Oct, 2023 @ 10:06am
YuYu 6 Jan @ 8:22pm 
is it possible to publish the script as a vscript mod perhaps? idk coding and all that but would like to do a similar thing like having knives as default weapons or whatnot
NB 57 6 Jan @ 10:12pm 
Originally posted by YuYu:
is it possible to publish the script as a vscript mod perhaps? idk coding and all that but would like to do a similar thing like having knives as default weapons or whatnot
am a bit rusty on this , but i can help , just send a friend request and them i can easily give u access to the file on private.

avoid giving me steam points , those things are expensive to get save them for someone or somethin u like on the shop.

edit: if offline i might return in a couple of days.
Last edited by NB; 6 Jan @ 10:17pm
YuYu 6 Jan @ 11:13pm 
Originally posted by NB:
Originally posted by YuYu:
is it possible to publish the script as a vscript mod perhaps? idk coding and all that but would like to do a similar thing like having knives as default weapons or whatnot
am a bit rusty on this , but i can help , just send a friend request and them i can easily give u access to the file on private.

avoid giving me steam points , those things are expensive to get save them for someone or somethin u like on the shop.

edit: if offline i might return in a couple of days.
oh ok ty!
You can also try this:
melee_first_spawn <- { function OnGameEvent_player_first_spawn(event) { local player = GetPlayerFromUserID(event.userid); if(player.IsSurvivor()) { player.GiveItem("tonfa"); } } } __CollectGameEventCallbacks(melee_first_spawn);
Put this code inside "director_base_addon.nut", & it will work automatically. this will make all survivors get tonfa when they spawn for the first time.

Edit: Ah never mind. I was late to notice that this is an old thread, so I think the thread owner already found the solution.
Last edited by kurochama; 7 Jan @ 6:15am
< >
Showing 1-8 of 8 comments
Per page: 1530 50