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?
Saber mais
Saeru 102 22 out. 2023 às 0:03
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?
< >
A mostrar 1-8 de 8 comentários
Jo 267 25 out. 2023 às 22:25 
yes
NB 57 26 out. 2023 às 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; } }
Última alteração por NB; 26 out. 2023 às 6:34
Saeru 102 28 out. 2023 às 2:51 
Originalmente postado por 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 out. 2023 às 10:05 
mmm , sending you a friend request to share you the script.
Última alteração por NB; 28 out. 2023 às 10:06
YuYu 6 de jan. às 20:22 
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 de jan. às 22:12 
Originalmente postado por 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.
Última alteração por NB; 6 de jan. às 22:17
YuYu 6 de jan. às 23:13 
Originalmente postado por NB:
Originalmente postado por 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!
kurochama 79 7 de jan. às 6:13 
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.
Última alteração por kurochama; 7 de jan. às 6:15
< >
A mostrar 1-8 de 8 comentários
Por página: 1530 50