setstats
View Cart
Category Tutorial TopicsLevel DesignGame Environment Art+DesignGame Modeling: MayaUnreal Engine 4UDKCryEngine 3 SDKCounter-Strike: Global OffensiveLeft4Dead 1 and 2Time Management and ProductivityGetting StartedBrowse Full Tutorial List

L4D2: How to Create Scavenge Gamemode Part 2

Category: Source: L4D2
February 23, 2010

L4D2: How to Create Scavenge Gamemode

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

L4D2: How to Create Scavenge Gamemode

L4D2: How to Create Scavenge Gamemode

L4D2: How to Create Scavenge Gamemode

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

L4D2: How to Create Scavenge Gamemode

L4D2: How to Create Scavenge Gamemode

Second point_template:

Name: scavenge_stuff_spawner

Templates 1-4:
scavenge_weapons
scavenge_items
scavenge_positions
gascans_scavenge

Flags: Preserve Entity Names

L4D2: How to Create Scavenge Gamemode

3. Logic Relays

Insert 3 logic_relays

L4D2: How to Create Scavenge Gamemode

logic_relay 1:

L4D2: How to Create Scavenge Gamemode

L4D2: How to Create Scavenge Gamemode

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:

L4D2: How to Create Scavenge Gamemode

L4D2: How to Create Scavenge Gamemode

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:

L4D2: How to Create Scavenge Gamemode

L4D2: How to Create Scavenge Gamemode

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

L4D2: How to Create Scavenge Gamemode

L4D2: How to Create Scavenge 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

L4D2: How to Create Scavenge Gamemode

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

L4D2: How to Create Scavenge Gamemode

Updated & Revised - Preproduction Blueprint: How to Plan Your Game Environments and Level Designs

© 2008-2017. All articles on World of Level Design™ are copyrighted.
Not to be reproduced without prior written consent.