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
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