|
|
|
|
Tutorial Topics |
L4D2: How to Create Survival Gamemode Part 2February 06, 2010
|
|
|
|

L4D2 Tutorial covers:
- Making all the entities previously covered in Part 1 working together.
*L4D1 Survival Gamemode Tutorial here.
![]()
1. Point_Template
Insert point_template entity
Name: survival_stuff_spawner
Templates are the name of the items we previously places. Such as the radio, weapons and items.
Templates 1-4:
survival_items
survival_weapons
survival_glow
survival_radio

2. Logic_Relays
We need 2 logic_relays in our survival map

First logic_relay:
Name: spawn_survival_stuff_postIO

Under Outputs:
My Output Named: onTrigger
Target Entities: survival_stuff_spawner
Via this input: ForceSpawn

Under flags make sure to check Allow Fast Retrigger

Second logic_relay:
Name: kill_survival_stuff

Under Outputs:
My Output Named: onTrigger
Target Entities: survival_positions
Via this input: Kill
My Output Named: onTrigger
Target Entities: survival_explainer_proxy
Via this input: Kill

Under flags make sure to check Allow Fast Retrigger

4. Info_gamemode
Our last entity.
info_gamemode
Name: survival_gamemode

Under Outputs:
My Output Named: onCoop
Target Entities: kill_survival_stuff
Via this input: Trigger
My Output Named: onScavenge
Target Entities: kill_survival_stuff
Via this input: Trigger
My Output Named: onVersus
Target Entities: kill_survival_stuff
Via this input: Trigger
My Output Named: onSurvivalPostIO
Target Entities: spawn_survival_stuff_postIO
Via this input: Trigger

Basically it tells the game to kill or spawn our items we inserted for specific gamemodes. Depending which gamemode our map was started in.
5. Test
Compile and run your map. You will need to go into console and force a survival game mode to start for your map.
map mapname survival
Until you have a missions.txt and addoninfo with vpk, that is how you will need to test your game modes.

trigger_finale Outputs:
My Output Named: UseStart
Target Entity: survival_explainer_proxy
Via this input: Kill

5. Func_Brush
Surround your trigger_finale with a basic brush, and with invisible texture applied to it.

Press Ctrl+T = tie to entity and select func_brush
Name: survival_glow
Parent: survival_radio
Render Mode: Glow

6. Weapons and Items
Now we can insert some entities that will spawn us some weapons and items.
weapon_item_spawn entity
Name: survival_items

Make sure that under flags, you have Spawned Items Must Exist is checked.

This is the setup for weapons. Its similar to items. Only differnce is I named weapons as surival_weapons. It keeps my scene more organized instead of name all items the same name.
weapon_melee_spawn

Again, make sure that under flags, you have Spawned Items Must Exist is checked.

|
|
|
© 2008-2013. All articles on World of Level Design™ are copyrighted.
|
Preproduction Blueprint - How to Plan Your Game Environments and Level Designs |
|
How to Plan Your Game Environments and Level Designs - Ebooks (235+ pages) - 18 videos (2+ hours) - Instant Digital Download Regular Price: (Save $12 w/Code) Use Discount Code: blueprint12
|
|
|