You are viewing our Forum Archives. To view or take place in current topics click here.
Ultimate L4D2 Modding Guide+ Mod Tool(Create a usersettings)
Posted:

Ultimate L4D2 Modding Guide+ Mod Tool(Create a usersettings)Posted:

Monkey
  • TTG Contender
Status: Offline
Joined: Mar 31, 200915Year Member
Posts: 3,163
Reputation Power: 289
Status: Offline
Joined: Mar 31, 200915Year Member
Posts: 3,163
Reputation Power: 289
Ultimate Guide to Modding L4D2
First let's start with the basics. This is a basic User Settings layout. I have only added sv_cheats 1 which you need in any modded file. Now instead of having some of these binds you can do other binds.

sv_cheats 1

bind "A_BUTTON" "+jump;+menuAccept"
bind "B_BUTTON" "+reload"
bind "X_BUTTON" "+use"
bind "Y_BUTTON" "lastinv"
bind "L_SHOULDER" "+duck"
bind "R_SHOULDER" "+lookspin"
bind "BACK" "togglescores"
bind "START" "gameui_activate"
bind "STICK1" "vocalize smartlook"
bind "STICK2" "+zoom"
bind "UP" "impulse 100"
bind "RIGHT" "slot4"
bind "DOWN" "slot5"
bind "LEFT" "slot3"
bind "S1_DOWN" "+menuDown"
bind "S1_UP" "+menuUp"
bind "L_TRIGGER" "+attack2"
bind "R_TRIGGER" "+attack"
joy_cfg_preset "0"
joy_inverty "0"
joy_legacy "0"
joy_movement_stick "0"
joy_pitchsensitivity "-0.8"
joy_yawsensitivity "-2.25"
option_duck_method "1"


Now we move on to what you can bind. I will just give some basics commands.

Lets says you wanted A Button to spawn a witch. So then you would have it setup like this.

bind "A_BUTTON" "z_spawn witch"

Here are all the spawn commands.

z_spawn witch
z_spawn tank
z_spawn hunter
z_spawn smoker
z_spawn boomer
z_spawn spitter
z_spawn jockey
z_spawn charger
z_spawn mob


Now let say you wanted your B Button to give you a health pack. You have this for you B Button bind.

bind "B_BUTTON" "give first_aid_kit"

Here are all the give commands.


give defibrillator
give adrenaline
give first_aid_kit
give molotov
give pain_pills
give pipe_bomb
give upgradepack_explosive
give upgradepack_incendiary
give vomitjar
give smg
give smg_mp5
give smg_silenced
give rifle
give rifle_ak47
give rifle_desert
give rifle_sg552
give sniper_awp
give sniper_military
give sniper_scout
give hunting_rifle
give pistol
give pistol_magnum
give shotgun_chrome
give shotgun_spas
give autoshotgun
give pump_shotgun
give grenade_launcher
give baseball_bat
give chainsaw
give cricket_bat
give crowbar
give fireaxe
give katana
give electric_guitar
give gascan
give oxygentank
give propanetank
give gnome
give frying_pan
give machete
give cola_bottles
give fireworkcrate



Here are some other commands that are frequently used.


respawn

warp_far_survivor_here

warp_all_survivors_here

god (use 0 for off 1 for on)

sv_infinite_ammo (use 0 for off 1 for on)

upgrade_add LASER_SIGHT

noclip

ent_remove (deletes what your looking at)

ent_setname picked;ent_fire picked setparent !activator (picks up what your looking at must be host)

ent_fire picked clearparent (drops what your looking at must be host)

buddha (kind of like god you lose health but do not die)

ent_setname tp (used to choose what to teleport)

ent_teleport tp;ent_setname tpdone (used to teleport)

name (put the name you want after this)

z_ghost_delay_min 0; z_ghost_delay_max 0 (makes you respawn in 3 seconds default is 10 and 20)

r_drawothermodels (set to 1 to turn off and 2 to turn on)

host_timescale (change game speed)

sv_gravity (change gravity)

prop_dynamic_create (for making props)

phys_shoot (shoots potted plants?)

upgrade_add explosive_ammo

upgrade_add incendiary_ammo

achievement_unlock_all

changelevel

z_removeitems (removes all survivors items..pistols never go away)

survivor_no_pounce_or_hang 1 (charger,jockey,hunter, and smokers special attack has no effect)

sb_add (add a missing bot good for if you deleted someone)

sb_takecontrol bot name here (use Rochelle,Nick,Ellis,or Coach)



Here is all the maps that should work the changelevel command.

c1m1_hotel
c1m2_streets
c1m3_mall
c1m4_atrium
c2m1_highway
c2m2_fairgrounds
c2m3_coaster
c2m4_barns
c2m5_concert
c3m1_plankcountry
c3m2_swamp
c3m3_shantytown
c3m4_plantation
c4m1_milltown_a
c4m2_sugarmill_a
c4m3_sugarmill_b
c4m4_milltown_b
c4m5_milltown_escape
c5m1_waterfront
c5m2_park
c5m3_cemetery
c5m4_quarter
c5m5_bridge
credits

For anyone wondering there is no secret map on the xbox 360 disc.


There are tons more but as I do not have all of those perfected yet I won't post them.

Now we will discuss bindToggle. You can use the bindToggle command to use one button to turn on and off certain mods like god mode or infinite ammo. It would look like this

bindToggle "X_BUTTON" "infinite_ammo"

Quite simple but can save button usage.





Here is an alias tutorial. Please read the entire thing otherwise some of this will not make since.

Ok first off for aliases you will want to start with making sure you have the following at the top.

unbind all
sv_cheats 1

It must have unbind all before sv_cheats 1 as far as I know. w0lfschild would probably know more about this.


So after this you must list all of the commands you want to use. For this I will make it quite simple and say only the one for spawning a witch and one for spawning a tank. I will have it so they both use A Button but you will have to hold down a different button to use each. As well as having A Button available as it's default use for jumping.


So far we have this.


unbind all
sv_cheats 1



Under that we will type in our aliases for witch and tank. Always make sure you do not name your alias something being used currently by yourself or the game. So you cannot name your alias tank.

alias "tnk" "z_spawn tank"
alias "wtch" "z_spawn witch"

Now we must make a default alias.

alias "default" "bind A_BUTTON +jump;+menuAccept; bind B_BUTTON +reload; bind X_BUTTON +use; bind Y_BUTTON lastinv; bind L_SHOULDER +duck; bind R_SHOULDER +tnk1; +lookspin; bind BACK togglescores; bind START gameui_activate; bind STICK1 vocalize smartlook; bind STICK2 +zoom; bind UP +wtch1; impulse 100; bind RIGHT slot4; bind DOWN slot5; bind LEFT slot3; bind S1_DOWN +menuDown; bind S1_UP +menuUp; bind L_TRIGGER +attack2; bind R_TRIGGER +attack"

So just to recap this is what we have so far.


unbind all
sv_cheats 1

alias "tnk" "z_spawn tank"
alias "wtch" "z_spawn witch"

alias "default" "bind A_BUTTON +jump;+menuAccept; bind B_BUTTON +reload; bind X_BUTTON +use; bind Y_BUTTON lastinv; bind L_SHOULDER +duck; bind R_SHOULDER +tnk1; +lookspin; bind BACK togglescores; bind START gameui_activate; bind STICK1 vocalize smartlook; bind STICK2 +zoom; bind UP +wtch1; impulse 100; bind RIGHT slot4; bind DOWN slot5; bind LEFT slot3; bind S1_DOWN +menuDown; bind S1_UP +menuUp; bind L_TRIGGER +attack2; bind R_TRIGGER +attack"



Now we need to make an alias for each of spawning a tank and spawning a witch. For the tank we do this.

alias "+tnk1" "bind A_BUTTON z_spawn tank; bind B_BUTTON +reload; bind X_BUTTON +use; bind Y_BUTTON lastinv; bind L_SHOULDER +duck; bind BACK togglescores; bind START gameui_activate; bind STICK1 vocalize smartlook; bind STICK2 +zoom; bind RIGHT slot4; bind DOWN slot5; bind LEFT slot3; bind S1_DOWN +menuDown; bind S1_UP +menuUp; bind L_TRIGGER +attack2; bind R_TRIGGER +attack"

And for the witch this.

alias "+wtch1" "bind A_BUTTON z_spawn witch; bind B_BUTTON +reload; bind X_BUTTON +use; bind Y_BUTTON lastinv; bind L_SHOULDER +duck; bind BACK togglescores; bind START gameui_activate; bind STICK1 vocalize smartlook; bind STICK2 +zoom; bind RIGHT slot4; bind DOWN slot5; bind LEFT slot3; bind S1_DOWN +menuDown; bind S1_UP +menuUp; bind L_TRIGGER +attack2; bind R_TRIGGER +attack"

Now we must make an alias to restore default settings when you let go of the button to use the other settings.

alias "-tnk1" "default"
alias "-wtch1" "default"

Here is what we have so far.


unbind all
sv_cheats 1

alias "tnk" "z_spawn tank"
alias "wtch" "z_spawn witch"

alias "default" "bind A_BUTTON +jump;+menuAccept; bind B_BUTTON +reload; bind X_BUTTON +use; bind Y_BUTTON lastinv; bind L_SHOULDER +duck; bind R_SHOULDER +tnk1; +lookspin; bind BACK togglescores; bind START gameui_activate; bind STICK1 vocalize smartlook; bind STICK2 +zoom; bind UP +wtch1; impulse 100; bind RIGHT slot4; bind DOWN slot5; bind LEFT slot3; bind S1_DOWN +menuDown; bind S1_UP +menuUp; bind L_TRIGGER +attack2; bind R_TRIGGER +attack"

alias "+tnk1" "bind A_BUTTON z_spawn tank; bind B_BUTTON +reload; bind X_BUTTON +use; bind Y_BUTTON lastinv; bind L_SHOULDER +duck; bind BACK togglescores; bind START gameui_activate; bind STICK1 vocalize smartlook; bind STICK2 +zoom; bind RIGHT slot4; bind DOWN slot5; bind LEFT slot3; bind S1_DOWN +menuDown; bind S1_UP +menuUp; bind L_TRIGGER +attack2; bind R_TRIGGER +attack"

alias "+wtch1" "bind A_BUTTON z_spawn witch; bind B_BUTTON +reload; bind X_BUTTON +use; bind Y_BUTTON lastinv; bind L_SHOULDER +duck; bind BACK togglescores; bind START gameui_activate; bind STICK1 vocalize smartlook; bind STICK2 +zoom; bind RIGHT slot4; bind DOWN slot5; bind LEFT slot3; bind S1_DOWN +menuDown; bind S1_UP +menuUp; bind L_TRIGGER +attack2; bind R_TRIGGER +attack"

alias "-tnk1" "default"
alias "-wtch1" "default"



Ok now we just have to finish this off with our final 4 bindings and configs.

bind "R_SHOULDER" "+tnk1"
bind "UP" "impulse 100;+wtch1"
bind "S1_DOWN" "+menuDown"
bind "S1_UP" "+menuUp"
joy_cfg_preset "0"
joy_inverty "0"
joy_legacy "0"
joy_movement_stick "0"
joy_pitchsensitivity "-0.8"
joy_yawsensitivity "-2.25"
option_duck_method "1"

Now by now if yo haven't caught on to what the + and -'s are I will explain. When you use + it means that when that button is pressed down that is when it will work. When you use - it will only work when that button is not pressed.

Here is our final settings.


unbind all
sv_cheats 1

alias "tnk" "z_spawn tank"
alias "wtch" "z_spawn witch"

alias "default" "bind A_BUTTON +jump;+menuAccept; bind B_BUTTON +reload; bind X_BUTTON +use; bind Y_BUTTON lastinv; bind L_SHOULDER +duck; bind R_SHOULDER +tnk1; +lookspin; bind BACK togglescores; bind START gameui_activate; bind STICK1 vocalize smartlook; bind STICK2 +zoom; bind UP +wtch1; impulse 100; bind RIGHT slot4; bind DOWN slot5; bind LEFT slot3; bind S1_DOWN +menuDown; bind S1_UP +menuUp; bind L_TRIGGER +attack2; bind R_TRIGGER +attack"

alias "+tnk1" "bind A_BUTTON z_spawn tank; bind B_BUTTON +reload; bind X_BUTTON +use; bind Y_BUTTON lastinv; bind L_SHOULDER +duck; bind BACK togglescores; bind START gameui_activate; bind STICK1 vocalize smartlook; bind STICK2 +zoom; bind RIGHT slot4; bind DOWN slot5; bind LEFT slot3; bind S1_DOWN +menuDown; bind S1_UP +menuUp; bind L_TRIGGER +attack2; bind R_TRIGGER +attack"

alias "+wtch1" "bind A_BUTTON z_spawn witch; bind B_BUTTON +reload; bind X_BUTTON +use; bind Y_BUTTON lastinv; bind L_SHOULDER +duck; bind BACK togglescores; bind START gameui_activate; bind STICK1 vocalize smartlook; bind STICK2 +zoom; bind RIGHT slot4; bind DOWN slot5; bind LEFT slot3; bind S1_DOWN +menuDown; bind S1_UP +menuUp; bind L_TRIGGER +attack2; bind R_TRIGGER +attack"

alias "-tnk1" "default"
alias "-wtch1" "default"

bind "R_SHOULDER" "+tnk1"
bind "UP" "impulse 100;+wtch1"
bind "S1_DOWN" "+menuDown"
bind "S1_UP" "+menuUp"
joy_cfg_preset "0"
joy_inverty "0"
joy_legacy "0"
joy_movement_stick "0"
joy_pitchsensitivity "-0.8"
joy_yawsensitivity "-2.25"
option_duck_method "1"



Some things that should be noted. You can only bind one alias per button. If you need more than one thing on a button be sure to put it under one alias. For example if I wanted the tank and witch spawn on one alias I'd put this.

alias "wtchtnk" "z_spawn witch; z_spawn tank"


Note: This is NOT mine, it is a copy/paste with some bb code fixes. Copy/Pasted from (NEW LINKS COMING) No, You can download the L4D2 mod tool (NEW LINKS COMING)

Use the sticky if you want a link/better tutorial.


Last edited by Monkey ; edited 9 times in total

The following 1 user thanked Monkey for this useful post:

TTG_CoDModz (03-18-2010)
#2. Posted:
Monkey
  • TTG Contender
Status: Offline
Joined: Mar 31, 200915Year Member
Posts: 3,163
Reputation Power: 289
Status: Offline
Joined: Mar 31, 200915Year Member
Posts: 3,163
Reputation Power: 289
Thats better, I think the list I have is bigger than the sticky so if it is I will post that in another topic o_O


Last edited by Monkey ; edited 3 times in total
#3. Posted:
TTG_Zac
  • TTG Fanatic
Status: Offline
Joined: Feb 05, 201014Year Member
Posts: 4,537
Reputation Power: 0
Status: Offline
Joined: Feb 05, 201014Year Member
Posts: 4,537
Reputation Power: 0
wow nice post mate! That will help loadsa L4D2 modders out 8)
#4. Posted:
Feargoyle
  • TTG Addict
Status: Offline
Joined: Dec 09, 200914Year Member
Posts: 2,075
Reputation Power: 250
Status: Offline
Joined: Dec 09, 200914Year Member
Posts: 2,075
Reputation Power: 250
Well the ultimate part of the title was necessary haha.
But a nice post none the less.
8)
#5. Posted:
Kibblre
  • TTG Senior
Status: Offline
Joined: Dec 15, 200914Year Member
Posts: 1,936
Reputation Power: 130
Status: Offline
Joined: Dec 15, 200914Year Member
Posts: 1,936
Reputation Power: 130
Does achievement_unlock_all still work in L4D2 or was that patched in the first game? If it still works, fail on Valve.
#6. Posted:
Monkey
  • TTG Contender
Status: Offline
Joined: Mar 31, 200915Year Member
Posts: 3,163
Reputation Power: 289
Status: Offline
Joined: Mar 31, 200915Year Member
Posts: 3,163
Reputation Power: 289
Kibblre wrote Does achievement_unlock_all still work in L4D2 or was that patched in the first game? If it still works, fail on Valve.


I'm pretty sure it still works. They have that command in every game, it's not like they actually use it so why do they put it back in?
#7. Posted:
cadets
  • Wise One
Status: Offline
Joined: Jun 29, 200914Year Member
Posts: 560
Reputation Power: 33
Status: Offline
Joined: Jun 29, 200914Year Member
Posts: 560
Reputation Power: 33
Really Nice Post well done monkey
#8. Posted:
Monkey
  • TTG Contender
Status: Offline
Joined: Mar 31, 200915Year Member
Posts: 3,163
Reputation Power: 289
Status: Offline
Joined: Mar 31, 200915Year Member
Posts: 3,163
Reputation Power: 289
Updated. Staff feel free to delete my 2nd post in this topic, I don't need it anymore.
#9. Posted:
Kibblre
  • TTG Senior
Status: Offline
Joined: Dec 15, 200914Year Member
Posts: 1,936
Reputation Power: 130
Status: Offline
Joined: Dec 15, 200914Year Member
Posts: 1,936
Reputation Power: 130
TTG_Monkey wrote
Kibblre wrote Does achievement_unlock_all still work in L4D2 or was that patched in the first game? If it still works, fail on Valve.


I'm pretty sure it still works. They have that command in every game, it's not like they actually use it so why do they put it back in?


It's because they basically ported the PC version to an Xbox disc and left all the console commands in.

Also, I remember a mod box released that contained all the programs for 360 modding like XPort, Modio, ExGT, etc. Do you remember the name of it?
#10. Posted:
Kibblre
  • TTG Senior
Status: Offline
Joined: Dec 15, 200914Year Member
Posts: 1,936
Reputation Power: 130
Status: Offline
Joined: Dec 15, 200914Year Member
Posts: 1,936
Reputation Power: 130
Also, where's the mod tool? I can't use Valve Editor with the L4D2 US files.

Never mind; I'm an idiot.
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.