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?
Más información
Saeru 102 22 OCT 2023 a las 12:03 a. m.
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?
< >
Mostrando 1-8 de 8 comentarios
Jo 267 25 OCT 2023 a las 10:25 p. m. 
yes
NB 57 26 OCT 2023 a las 6:34 a. m. 
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 edición por NB; 26 OCT 2023 a las 6:34 a. m.
Saeru 102 28 OCT 2023 a las 2:51 a. m. 
Publicado originalmente 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 OCT 2023 a las 10:05 a. m. 
mmm , sending you a friend request to share you the script.
Última edición por NB; 28 OCT 2023 a las 10:06 a. m.
YuYu 6 ENE a las 8:22 p. m. 
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 ENE a las 10:12 p. m. 
Publicado originalmente 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 edición por NB; 6 ENE a las 10:17 p. m.
YuYu 6 ENE a las 11:13 p. m. 
Publicado originalmente por NB:
Publicado originalmente 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 ENE a las 6:13 a. m. 
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 edición por kurochama; 7 ENE a las 6:15 a. m.
< >
Mostrando 1-8 de 8 comentarios
Por página: 1530 50