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?
Află mai multe
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?
< >
Se afișează 1-8 din 8 comentarii
Jo 263 25 oct. 2023 la 22:25 
yes
NB 57 26 oct. 2023 la 6:34 
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; } }
Editat ultima dată de NB; 26 oct. 2023 la 6:34
Postat inițial de 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 la 10:05 
mmm , sending you a friend request to share you the script.
Editat ultima dată de NB; 28 oct. 2023 la 10:06
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
Postat inițial de 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.
Editat ultima dată de NB; 6 ian. la 22:17
Postat inițial de NB:
Postat inițial de 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.
Editat ultima dată de kurochama; 7 ian. la 6:15
< >
Se afișează 1-8 din 8 comentarii
Per pagină: 1530 50