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
3. 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.
4. 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.
Home Terms of Use/Trademarks/Disclaimers Privacy Policy Donate About Contact
All content on this website is copyrighted ©2008-2024 World of Level Design LLC. All rights reserved.
Duplication and distribution is illegal and strictly prohibited.
World of Level Design LLC is an independent company. World of Level Design website, its tutorials and products are not endorsed, sponsored or approved by any mentioned companies on this website in any way. All content is based on my own personal experimentation, experience and opinion. World of Level Design™ and 11 Day Level Design™ are trademarks of AlexG.
Template powered by w3.css