Como crear el modo de juego Scavenge

1. Entidades requeridas para el modo Scavenge:

Safe Starting Area
Generator
Scavenge Items (weapons, items, 16 gascans)
info_director
4 info_survivor_positions
2 point_templates
3 logic_relays
info_gamemode
func_nav_blocker
func_nav_attribute_region

2. Scavenge Generator

Copia el Scavenge generator desde los instances que tienes en la carpeta mapsrc o usa la entidad func_instance para insertar el generador.

Como somos un poco personajes, recomiendo copiar y pegar todo, ya que todavia no se muy bien si lo de los instances va bien del todo.

L4D2: How to Create Scavenge Gamemode

L4D2: How to Create Scavenge Gamemode

3. Info_Game_Event_Proxy

Inserta la entidad info_game_event_proxy

Ponle los siguientes parametros:
Name: event_scavenge_startarea
Name of Event to Generate: explain_scavenge_leave_area
Range: 600
Flags: Fire Automatically

L4D2: How to Create Scavenge Gamemode

4. Info_game_event_proxy

Crea el safe starting area, usando 4 bloques.

Ponle la siguiente textura effects/scavenge_boundary en los lados de las caras, tanto dentro como fuera y en las demas cara pon la textura no draw, como en la imagen.

Convierte todos los bloques a la entidad func_brush con tie to entity.

Name: brush_scavenge_boundary

L4D2: How to Create Scavenge Gamemode

L4D2: How to Create Scavenge Gamemode

5. Checkpoint Region

Crea un bloque que ocupe todo el generador y el safe starting area y ponle la textura trigger.

Conviertelo en la siguiente entidad con tie to Entity: func_nav_attribute_region

Name: navattr_scavenge_checkpoint
Flags: checkpoint

L4D2: How to Create Scavenge Gamemode

L4D2: How to Create Scavenge Gamemode

L4D2: How to Create Scavenge Gamemode

6. Nav Blocker

Crea dos bloques con la textura trigger justo bajo el generador, como en la figura.

Conviertelo en la entidad: func_nav_blocker

Name: navblock_scavenge

L4D2: How to Create Scavenge Gamemode

L4D2: How to Create Scavenge Gamemode

7. Info_Survivor_Positions

Pon en el mapa 4 info_survivor_positions.

L4D2: How to Create Scavenge Gamemode

A los 4 info_survivors ponle a todos lo siguiente:

Name: scavenge_positions
Gamemode: scavenge

L4D2: How to Create Scavenge Gamemode

Y para cada survivor_position asignales su correspondiente nombre.

Nick, Rochelle, Coach, Ellis

8. Weapons and Items

Ahora se `pueden ponr algunas armas para nuestro mapa scavenge, para esto usa la entidad weapon_item_spawn.

Name: scavenge_items
Flags: Must Exist

L4D2: How to Create Scavenge Gamemode

L4D2: How to Create Scavenge Gamemode


9. Gas Cans

Crea 16 entidades que van a ser las latas de gasolina.

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

10. Point Templates

Crea 2 point_templates

Para el primero de los point_template:

Name: scavenge_misc_spawner
Templates 1-3:

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

El segundo de los 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

10. Logic Relays

Crea 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

En Outputs pon los siguiente 5 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

En Outputs pon los siguiente 2 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

En Outputs pon los siguiente 2 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

11. Info Game Mode

Crea la entidad info_game_mode.

Name: info_gamemode

L4D2: How to Create Scavenge Gamemode

L4D2: How to Create Scavenge Gamemode

En Outputs pon los siguiente 4 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

12. Director

Crea la entidad info_director.

Name: director

L4D2: How to Create Scavenge Gamemode

En Outputs pon los siguiente 6 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()

13. Compilando y testeando

Compila el mapa.

Cuando te haya cargado el juego abre la consola y pon lo siguiente:
map nombredetumapa scavenge

Pon los siguientes comandos en la consola:

sv_cheats 1
sb_all_bot_team 1
jointeam survivor or infected
(Para testearlo como superviviente o infectado)

L4D2: How to Create Scavenge Gamemode

No hay comentarios: