This article's documentation is for anything that uses the Source engine. Click here for more information.

Info game event proxy: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (→‎See also: Adding this link to access it easier)
 
(15 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{base point multi|info_game_event_proxy|game1=Portal 2|game2=Left 4 Dead 2|game3=Left 4 Dead}}
__NOTOC__
{{CD|CInfoGameEventProxy}}
{{This is a|point entity|since=Left 4 Dead|name=info_game_event_proxy}}


It is an entity that triggers a game event (for example show a hint).
It is an entity that triggers a game event (for example show a hint).
Line 5: Line 7:


== Keyvalues ==
== Keyvalues ==
{{KV|Event Name|string|The event to trigger by name from modevents.res}}
{{KV|Range|float|Distance that the player must be before the event is generated.}}
{{KV Targetname}}
{{KV Targetname}}
{{KV|Event Name|intn=event_name|string|The event to trigger by name from modevents.res}}
{{KV|Range (in feet)|intn=range|float|Distance that the player must be before the event is generated.}}
{{KV EnableDisable}}
{{KV EnableDisable}}


== Flags ==
== Flags ==
:* 1 : Automatically detect visibility
{{fl|1|Automatically detect visibility}}
{{fl|1|Fire Automatically When First Seen|only=l4ds}}


== Inputs ==
== Inputs ==
{{IO|GenerateGameEvent|Generate the event on input. (This entity is sent as the SUBJECT)}}
{{I|GenerateGameEvent|Generate the event on input. (This entity is sent as the SUBJECT)}}
{{I Targetname}}
{{I EnableDisable}}
{{I EnableDisable}}


== Outputs ==
== List of events used in Left 4 Dead 2 official maps ==
{{O Targetname}}
{| class="standard-table sortable mw-collapsible mw-collapsed"
! Event
! Explain description
|-
|explain_junkyard_fuel
|Pump fuel to start the crane...<br>Be ready to fight the horde
|-
|explain_gas_can_panic
|Destroy the barricade...
|-
|explain_save_items
|You may want to save some items for the return trip
|-
|explain_return_item
|Deliver the cola to the gun shop owner
|-
|explain_carousel_button
|Turn on the power to open the gate<br>Run to the control booth to shut down the carousel
|-
|explain_train_lever
|Hit the bridge with the decoupled train car...
|-
|explain_float
|Move the float
|-
|explain_sewer_run
|Run to the saferoom!<br>Keep moving!
|-
|explain_shack_button
|Lower the bridge<br>Be ready to fight the horde
|-
|explain_gun_shop
|Talk to the gun shop owner
|-
|c1m4_scavenge_instructions
|
|-
|explain_radio
|Summon a rescue
|-
|gameinstructor_draw
|
|-
|explain_panic_button
|Flip the door switch...
|-
|explain_van_panic
|Start the van to clear a path...
|-
|explain_pre_radio
|Answer the radio
|-
|strongman_bell_knocked_off
|
|-
|explain_c1m4_finale
|You'll need to fill the car with gas
|-
|explain_bridge
|Close the floodgate to make a bridge...
|-
|explain_sewer_gate
|Run to the saferoom!<br>Keep moving!
|-
|explain_start_generator
|Start the generators to lower the bridge...<br>Be ready to fight!
|-
|explain_perimeter
|Alarm will sound when perimeter is breached
|-
|explain_DLC3barrels
|Shoot the barrels!<br>Be ready to fight the horde
|-
|explain_scavenge_goal
|Collect gas cans and pour them into the generator...
|-
|explain_coaster_stop
|Deactivate the ride to stop the alarm
|-
|explain_disturbance
|Watch out! Some cars can set off alarms...
|-
|explain_vehicle_arrival
|Hurry to the rescue vehicle!
|-
|explain_elevator_button
|Call the elevator...
|-
|explain_survival_radio
|Use the radio...<br>Be ready to fight the horde
|-
|explain_DLC3lift_lever
|
|-
|explain_survival_generic
|Press the button...<br>Be ready to fight the horde
|-
|explain_decon
|Release door to exit the trailer
|-
|explain_lighthouse_generator
|Start the generator...<br>Be ready to fight the horde
|-
|temp_c4m3_return_to_boat
|You got the fuel — Return to the boat
|-
|explain_mall_alarm
|Deactivate the alarm on the third floor
|-
|explain_scavenge_leave_area
|Leaving this area will start the round
|-
|explain_drawbridge
|Press the button to lower the drawbridge
|-
|success_checkpoint_button_used
|
|-
|explain_bridge_button
|Press the button to raise the bridge...<br>Be ready to fight the horde
|-
|explain_container_drop
|Run through the fallen container!
|-
|explain_restart_generator
|One person needs to restart the generator...<br>Looks like a one way trip!
|-
|started_pre_radio
|
|-
|explain_store_alarm
|Open the store door...
|-
|stashwhacker_game_won
|
|-
|explain_lighthouse_finale_event
|You'll need to fill the generator with gas<br>Step 1: Find a gas can<br>Step 2: Bring the gas can to the generator
|-
|explain_burger_sign
|Signal the boat with the Burger Tank sign
|-
|explain_train_exit
|Exterminate the Tank!
|-
|explain_coaster
|Power up the coaster to start the ride
|-
|explain_mall_window
|Shoot out the store window
|-
|explain_c6m3_finale
|You'll need to fill the generator with gas<br>Step 1: Find a gas can<br>Step 2: Bring the gas can to the generator
|-
|explain_hatch_button
|Open the hatch<br>Be ready to fight the horde
|-
|explain_c3m4_radio1
|Call for a boat rescue
|-
|explain_DLC3door
|Open the door.<br>Be ready to fight the horde
|-
|explain_container_ready
|Use the lever to release the container!
|-
|explain_stage_finale_start
|Begin the rock concert to signal the chopper
|-
|explain_hotel_elevator_doors
|Pry open the doors to escape...
|-
|explain_ferry_button
|Call the ferry<br>Be ready to fight the horde
|-
|explain_gates_are_open
|The gates are open, run for the safe room!
|-
|explain_DLC3radio
|Call the helicopter.
|-
|explain_DLC3howitzer
|Fire the Howitzer.<br>Be ready to fight the horde
|-
|explain_impound_lot
|Watch your fire! Car alarms everywhere!
|-
|explain_deactivate_alarm
|Deactivate the alarm to open the exit doors
|-
|explain_store_item
|Retrieve the cola inside the store
|-
|explain_survival_alarm
|Activate the alarm...<br>Be ready to fight the horde
|-
|explain_c3m4_rescue
|The rescue boat has arrived, get on board!
|-
|explain_lift_button
|Start the lift...
|-
|explain_survival_carousel
|Turn on the power to open the gate<br>Be ready to fight the horde
|-
|explain_DLC3repair_generator
|
|-
|explain_emergency_door
|Open the emergency door...
|-
|explain_pre_drawbridge
|Use the radio to call for help
|-
|explain_decon_wait
|Close the door when everyone is in the trailer
|-
|waiting_checkpoint_button_used
|Wait for everyone to be ready first
|-
|explain_stage_survival_start
|Begin the rock concert...
|-
|explain_church_door
|Tell him to let you in the safe room...
|-
|explain_c3m4_radio2
|Respond to Virgil
|-
|explain_DLC3generator_button
|
|-
|explain_gun_shop_tanker
|Whitaker will destroy this tanker and clear the path
|-
|explain_crane
|Use the lever to lower the crane...
|-
|explain_c2m4_ticketbooth
|Press the button to open the gates
|-
|temp_c4m1_getgas
|Go get fuel and return to the boat
|-
|explain_stage_lighting
|Prepare the stage lighting
|-
|explain_mainstreet
|Lower the forklift to make a ramp...
|-
|explain_store_item_stop
|
|-
|gameinstructor_nodraw
|
|-
|explain_train_boss
|Open the train car door...<br>Be ready to fight the Tank!
|-
|explain_onslaught
|Fight your way to the safe room!
|-
|explain_carousel_destination
|Shut down the carousel
|}


== See also ==
== See also ==
* [[List of L4D Instructor Messages]]
* {{l4d2}} [[env_instructor_hint]]
* {{l4d2}} [[L4D2 Level Design/Instructor Hints]]
* {{as}} [[point_event_proxy]]
* {{as}} [[point_event_proxy]]

Latest revision as of 17:09, 9 February 2025

C++ Class hierarchy
CInfoGameEventProxy
CPointEntity
CBaseEntity

info_game_event_proxy is a point entity available in all Source Source games since Left 4 Dead Left 4 Dead.

It is an entity that triggers a game event (for example show a hint).

Note.pngNote:Whenever a hint is shown to the player, a count of how many times the player was notified is recorded in the save/game_instructor_counts.txt file which is found in the Left 4 Dead save folder. After a certain threshold, certain tips will no longer show up, possibly depending on how many success entries. If you want hints to begin showing up again, open your game_instructor_counts.txt file and delete the corresponding thread, or load up the game and enter gameinstructor_reset_counts in the console(the latter will reset all of the instructor lessons.)

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Event Name (event_name) <string>
The event to trigger by name from modevents.res
Range (in feet) (range) <float>
Distance that the player must be before the event is generated.
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).

Flags

Automatically detect visibility : [1]
Fire Automatically When First Seen : [1] (only in Left 4 Dead seriesLeft 4 Dead series)

Inputs

GenerateGameEvent
Generate the event on input. (This entity is sent as the SUBJECT)

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.

List of events used in Left 4 Dead 2 official maps

Event Explain description
explain_junkyard_fuel Pump fuel to start the crane...
Be ready to fight the horde
explain_gas_can_panic Destroy the barricade...
explain_save_items You may want to save some items for the return trip
explain_return_item Deliver the cola to the gun shop owner
explain_carousel_button Turn on the power to open the gate
Run to the control booth to shut down the carousel
explain_train_lever Hit the bridge with the decoupled train car...
explain_float Move the float
explain_sewer_run Run to the saferoom!
Keep moving!
explain_shack_button Lower the bridge
Be ready to fight the horde
explain_gun_shop Talk to the gun shop owner
c1m4_scavenge_instructions
explain_radio Summon a rescue
gameinstructor_draw
explain_panic_button Flip the door switch...
explain_van_panic Start the van to clear a path...
explain_pre_radio Answer the radio
strongman_bell_knocked_off
explain_c1m4_finale You'll need to fill the car with gas
explain_bridge Close the floodgate to make a bridge...
explain_sewer_gate Run to the saferoom!
Keep moving!
explain_start_generator Start the generators to lower the bridge...
Be ready to fight!
explain_perimeter Alarm will sound when perimeter is breached
explain_DLC3barrels Shoot the barrels!
Be ready to fight the horde
explain_scavenge_goal Collect gas cans and pour them into the generator...
explain_coaster_stop Deactivate the ride to stop the alarm
explain_disturbance Watch out! Some cars can set off alarms...
explain_vehicle_arrival Hurry to the rescue vehicle!
explain_elevator_button Call the elevator...
explain_survival_radio Use the radio...
Be ready to fight the horde
explain_DLC3lift_lever
explain_survival_generic Press the button...
Be ready to fight the horde
explain_decon Release door to exit the trailer
explain_lighthouse_generator Start the generator...
Be ready to fight the horde
temp_c4m3_return_to_boat You got the fuel — Return to the boat
explain_mall_alarm Deactivate the alarm on the third floor
explain_scavenge_leave_area Leaving this area will start the round
explain_drawbridge Press the button to lower the drawbridge
success_checkpoint_button_used
explain_bridge_button Press the button to raise the bridge...
Be ready to fight the horde
explain_container_drop Run through the fallen container!
explain_restart_generator One person needs to restart the generator...
Looks like a one way trip!
started_pre_radio
explain_store_alarm Open the store door...
stashwhacker_game_won
explain_lighthouse_finale_event You'll need to fill the generator with gas
Step 1: Find a gas can
Step 2: Bring the gas can to the generator
explain_burger_sign Signal the boat with the Burger Tank sign
explain_train_exit Exterminate the Tank!
explain_coaster Power up the coaster to start the ride
explain_mall_window Shoot out the store window
explain_c6m3_finale You'll need to fill the generator with gas
Step 1: Find a gas can
Step 2: Bring the gas can to the generator
explain_hatch_button Open the hatch
Be ready to fight the horde
explain_c3m4_radio1 Call for a boat rescue
explain_DLC3door Open the door.
Be ready to fight the horde
explain_container_ready Use the lever to release the container!
explain_stage_finale_start Begin the rock concert to signal the chopper
explain_hotel_elevator_doors Pry open the doors to escape...
explain_ferry_button Call the ferry
Be ready to fight the horde
explain_gates_are_open The gates are open, run for the safe room!
explain_DLC3radio Call the helicopter.
explain_DLC3howitzer Fire the Howitzer.
Be ready to fight the horde
explain_impound_lot Watch your fire! Car alarms everywhere!
explain_deactivate_alarm Deactivate the alarm to open the exit doors
explain_store_item Retrieve the cola inside the store
explain_survival_alarm Activate the alarm...
Be ready to fight the horde
explain_c3m4_rescue The rescue boat has arrived, get on board!
explain_lift_button Start the lift...
explain_survival_carousel Turn on the power to open the gate
Be ready to fight the horde
explain_DLC3repair_generator
explain_emergency_door Open the emergency door...
explain_pre_drawbridge Use the radio to call for help
explain_decon_wait Close the door when everyone is in the trailer
waiting_checkpoint_button_used Wait for everyone to be ready first
explain_stage_survival_start Begin the rock concert...
explain_church_door Tell him to let you in the safe room...
explain_c3m4_radio2 Respond to Virgil
explain_DLC3generator_button
explain_gun_shop_tanker Whitaker will destroy this tanker and clear the path
explain_crane Use the lever to lower the crane...
explain_c2m4_ticketbooth Press the button to open the gates
temp_c4m1_getgas Go get fuel and return to the boat
explain_stage_lighting Prepare the stage lighting
explain_mainstreet Lower the forklift to make a ramp...
explain_store_item_stop
gameinstructor_nodraw
explain_train_boss Open the train car door...
Be ready to fight the Tank!
explain_onslaught Fight your way to the safe room!
explain_carousel_destination Shut down the carousel

See also