Available for Download: How to Plan Game Environments and Level Designs |
New Challenge 2012: Storytelling Level Design/Game Environment Challenge - Enter Here |
Top Tutorial Topics |
L4D2: How to Create Scavenge Gamemode Part 2February 23, 2010
|
||||||||||||||||||||||||||||||
|
|
|

L4D2 Tutorial covers:
- Setting up the necessary entities for Scavenge gamemode type
- Compiling and running the game in Scavenge gamemode
L4D2 Scavenge Tutorial Part 1 can be viewed here.
![]()
1. Gas Cans
Place 16 gas cans throughout the map.
weapon_scavenge_item_spawn
Name: gascans_scavenge
Disable Shadows: Yes
Flags: Must Exist



2. Point Templates
Insert 2 point_templates
First point_template:
Name: scavenge_misc_spawner
Templates 1-4:
navattr_scavenge_checkpoint
brush_scavenge_boundary
event_scavenge_startarea
Flags: Preserve Entity Names


Second point_template:
Name: scavenge_stuff_spawner
Templates 1-4:
scavenge_weapons
scavenge_items
scavenge_positions
gascans_scavenge
Flags: Preserve Entity Names

3. Logic Relays
Insert 3 logic_relays

logic_relay 1:


Name: spawn_scavenge_postIO
Under Outputs:
My Output Named: onTrigger
Target Entities: template_scavenge_generator
Via this input: ForceSpawn
My Output Named: onTrigger
Target Entities: scavenge_stuff_spawner
Via this input: ForceSpawn
My Output Named: onTrigger
Target Entities: event_scavenge_pour
Via this input: GenerateGameEvent
My Output Named: onTrigger
Target Entities: scavenge_misc_spawner
Via this input: ForceSpawn
My Output Named: onTrigger
Target Entities: navblock_scavenge
Via this input: BlockNav
logic_relay 2:


Name: kill_scavenge_stuff
Under Outputs:
My Output Named: onTrigger
Target Entities: scavenge_misc_spawner
Via this input: Kill
My Output Named: onTrigger
Target Entities: scavenge_stuff_spawner
Via this input: Kill
logic_relay 3:


Name: relay_scavenge_roundstart
Under Outputs:
My Output Named: onTrigger
Target Entities: brush_scavenge_boundary
Via this input: Kill
My Output Named: onTrigger
Target Entities: event_scavenge_startarea
Via this input: Kill
4. Info Game Mode
Insert info_game_mode entity.
Name: info_gamemode


Under Outputs:
My Output Named: onCoop
Target Entities: kill_scavenge_stuff
Via this input: Trigger
My Output Named: onScavengePostIO
Target Entities: spawn_scavenge_postIO
Via this input: Trigger
My Output Named: onVersus
Target Entities:kill_scavenge_stuff
Via this input: Trigger
My Output Named: onSurvival
Target Entities:kill_scavenge_stuff
Via this input: Trigger
5. Director
Insert info_director entity.
Name: director

Under Outputs:
My Output Named: OnScavengeIntensityChanged
Target Entities: case_scvng_intensity
Via this input: inValue
My Output Named: OnScavengeOverTimeStart
Target Entities: relay_scvng_overtime_start
Via this input: Trigger
My Output Named: OnScavengeRoundStart
Target Entities: relay_scavenge_roundstart
Via this input: Trigger
My Output Named: OnScavengeTimerExpired
Target Entities: relay_scavenge_timer_expire
Via this input: Trigger
My Output Named: OnTeamScored
Target Entities: branch_gascan_used
Via this input: SetValue
Parameter: 1
My Output Named: OnTeamScored
Target Entities:@director
Via this input: Runscriptcode
Parameter: DirectorScript.MapScript.LocalScripts.GasCanPoured()
6. Compile and Test
Compile and run your map.
Force a gamemode through console: map mapname scavenge
Type the following commands into the console:
sv_cheats 1
sb_all_bot_team 1
jointeam survivor or infected

|
|
|
© 2008-2011. All articles on World of Level Design™ are copyrighted.
|
Preproduction Blueprint - How to Plan Your Game Environments and Level Designs |
|
PREPRODUCTION BLUEPRINT |
|
How to Plan Your Game Environments and Level Designs - Ebooks (235+ pages) - 18 videos (2+ hours) - Instant Digital Download Regular Price: |
|
SPECIAL DEAL: Save $29 |
Preproduction Blueprint + UDK 11 Day Level Design - Buy Both Guides and Save - Total: 63 videos and 735 pages - Instant Digital Download - Read more about Preproduction Blueprint - Read more about UDK 11 Day Level Design Regular Price: |
LEVEL DESIGN TOPICS |
|
|
|
|