Portal 2: Cave's voicelines: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Fixed typos, clarified the exact folder)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=Description=
=Description=
This is a list of all the references to call Cave Jhonson's dialog like Valve did it, using script commands and [[npc_bullseye]].
This is a list of all the references to call Cave Johnson's dialog like Valve did it, using script commands and [[npc_bullseye]].
'''OBS:''' Some of the scripts play several lines in sequence mirroring the dialogues on the test spheres.
'''OBS:''' Some of the scripts play several lines in sequence mirroring the dialogues on the test spheres.


=Basic Setup=
=Basic Setup=
* Place a [[func_instance]] and choose the cave_gen_actor file on the instan#ces.  
* Place a [[func_instance]] and choose the cave_gen_actor file in the instances folder (Portal 2\sdk_content\maps\instances\choreo).  
* Make a [[trigger_once]] on your map and put this in the I/O.
* Make a [[trigger_once]] on your map and put this in the I/O.
::{| class=standard-table
::{| class=standard-table
!  || My Output || Target Entity || Target Input || Parameter || Delay || Only Once
!  || My Output || Target Entity || Target Input || Parameter || Delay || Only Once
|-
|-
| [[Image:Io11.png]] || OnTrigger|| @glados || RunScriptCode || <Choosen File> || 0.00 || No
| [[File:Io11.png]] || OnTrigger|| @glados || RunScriptCode || <Choosen File> || 0.00 || No
|}
|}
* In parameter you place your choosen file, names are listed below categor#ized by maps.
* In parameter you place your choosen file, names are listed below categorized by maps.
* Name it the [[npc_bullseye]] with the one indicated in the list.
* Name it the [[npc_bullseye]] with the one indicated in the list.
=Script References: Categorized by maps=
=Script References: Categorized by maps=



Latest revision as of 19:07, 15 August 2024

Description

This is a list of all the references to call Cave Johnson's dialog like Valve did it, using script commands and npc_bullseye. OBS: Some of the scripts play several lines in sequence mirroring the dialogues on the test spheres.

Basic Setup

  • Place a func_instance and choose the cave_gen_actor file in the instances folder (Portal 2\sdk_content\maps\instances\choreo).
  • Make a trigger_once on your map and put this in the I/O.
My Output Target Entity Target Input Parameter Delay Only Once
Io11.png OnTrigger @glados RunScriptCode <Choosen File> 0.00 No
  • In parameter you place your choosen file, names are listed below categorized by maps.
  • Name it the npc_bullseye with the one indicated in the list.

Script References: Categorized by maps

sp_a3_03

Place on: value
Parameter sp_a3_03_main_liftshaft_area()
Npc_bullseye name: cave_a3_03_lift_shaft
Place on: value
Parameter sp_a3_03_waiting_room()
Npc_bullseye name: cave_a3_03_waiting_room
Place on: value
Parameter sp_a3_03_dummy()
Npc_bullseye name: cave_a3_03_dummy
Place on: value
Parameter sp_a3_03_dummy2()
Npc_bullseye name: cave_a3_03_dummy2
Place on: value
Parameter sp_a3_03_dummy3()
Npc_bullseye name: cave_a3_03_dummy3
Place on: value
Parameter sp_a3_03_exit()
Npc_bullseye name: cave_a3_03_exit

sp_a3_jump_intro

Place on: value
Parameter sp_a3_jump_intro_entrance()
Npc_bullseye name: cave_a3_jump_intro_entrance
Place on: value
Parameter sp_a3_jump_intro_interchamber()
Npc_bullseye name: cave_a3_jump_intro_interchamber
Place on: value
Parameter sp_a3_jump_intro_2ndchamber()
Npc_bullseye name: cave_a3_jump_intro_second_chamber
Place on: value
Parameter sp_a3_jump_intro_exit()
Npc_bullseye name: cave_a3_jump_intro_exit

sp_a3_bomb_flings

Place on: value
Parameter sp_a3_bomb_flings_entrance()
Npc_bullseye name: cave_bomb_flings_entrance
Place on: value
Parameter sp_a3_bomb_flings_chamber()
Npc_bullseye name: cave_bomb_flings_chamber
Place on: value
Parameter sp_a3_bomb_flings_exit()
Npc_bullseye name: cave_bomb_flings_exit

sp_a3_crazy_box

Place on: value
Parameter sp_a3_crazy_box_entrance()
Npc_bullseye name: cave_crazy_box_entrance
Place on: value
Parameter sp_a3_crazy_box_dummy_chamber()
Npc_bullseye name: cave_crazy_box_dummy_chamber
Place on: value
Parameter sp_a3_crazy_box_2nd_chamber()
Npc_bullseye name: cave_crazy_box_2nd_chamber
Place on: value
Parameter sp_a3_crazy_box_exit()
Npc_bullseye name: cave_crazy_box_exit

sp_a3_transition01

Place on: value
Parameter sp_a3_transition01_dummy_exit()
Npc_bullseye name: cave_transition01_dummy_exit
Place on: value
Parameter sp_a3_transition01_welcome()
Npc_bullseye name: cave_transition01_welcome
Place on: value
Parameter sp_a3_transition01_dummy()
Npc_bullseye name: cave_transition01_dummy
Place on: value
Parameter sp_a3_transition01_dummy2()
Npc_bullseye name: cave_transition01_dummy2
Place on: value
Parameter sp_a3_transition01_dummy3()
Npc_bullseye name: cave_transition01_dummy3

sp_a3_speed_ramp

Place on: value
Parameter sp_a3_speed_ramp_entrance()
Npc_bullseye name: cave_speed_ramp_entrance
Place on: value
Parameter sp_a3_speed_ramp_inter_chamber()
Npc_bullseye name: cave_speed_ramp_inter_chamber

sp_a3_speed_flings

Place on: value
Parameter sp_a3_speed_flings_entrance()
Npc_bullseye name: cave_speed_flings_entrance
Place on: value
Parameter sp_a3_speed_flings_exit()
Npc_bullseye name: cave_speed_flings_exit

sp_a3_portal_intro

Place on: value
Parameter sp_a3_portal_intro_entrance()
Npc_bullseye name: cave_portal_intro_entrance
Place on: value
Parameter sp_a3_portal_intro_white_paint()
Npc_bullseye name: cave_portal_intro_whitepaint
Place on: value
Parameter sp_a3_portal_intro_exit()
Npc_bullseye name: cave_portal_intro_exit
Place on: value
Parameter sp_a3_portal_intro_office_exit()
Npc_bullseye name: cave_portal_intro_office

See also