Talk:Prop tractor beam: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎music in the beams: new section)
(→‎music in the beams: Operator stacks)
Line 16: Line 16:
== music in the beams ==
== music in the beams ==


i'm trying to get tractor beams to play music when i jump in the stream-thing; can anyone tell me how to do that?
i'm trying to get tractor beams to play music when i jump in the stream-thing; can anyone tell me how to do that? {{Unsigned|‎Oddsox12ishere}}
:Hello. This is done using Portal 2's [[Soundscripts#Operator_stacks|operator stacks]] feature. They are basicly small programs that run on a specified soundscript. The stack that controls funnel music is called ''p2_update_music_play_tbeam'', and would look something like this:
<source lang=php>
import_stack "p2_update_music_play_tbeam"
play_entry
{
entry_name "music.sp_a4_tb_intro_tbin"
}
stop_entry
{
match_entry "music.sp_a4_tb_intro_tbin"
}
</source>
:Replace ''music.sp_a4_tb_intro_tbin'' with your own sound entry if you're using custom tractor beam music. Also, please remember to sign your additions on discussion pages with four tilde signs (<nowiki>~~~~</nowiki>) at the end of your message. This will automaticly add your signature and timestamp making it easier to see who wrote what. -- [[User:Dr._Orange|<span style="color: #ffaa00">Dr. Orange</span>]] <sup>[[User_talk:Dr._Orange|talk]] · [[Special:Contributions/Dr._Orange|contributions]]</sup> 09:41, 18 November 2017 (UTC)

Revision as of 02:41, 18 November 2017

I need a grate texture or model where the funnel can go through. Where do I find it or how do I create it? I've seen it before so it's possible. Thanks. --StephenB 19:09, 12 May 2011 (UTC)

You could make a func_brush textured with a metal grate, set Solidity to Not Solid then place a brush in front of it textured with clipMattshu 20:55, 14 May 2011 (UTC)
Thanks, but I found out this method before you responded :) --StephenB 15:16, 15 May 2011 (UTC)
A func_clip_vphysics is also needed or else cubes can get through. --Bailinbone15 14:37, 2 July 2011 (PDT)

Предлагаю редактировать статьи в translated.by, по-моему, там очень удобно составлять переводы.--Mixonoid 14:42, 6 June 2011 (UTC)

Since this is the English discussion page, I loosely translated Mixonoid's post thanks to Google :P Let's see how good Google does: Если вы можете переводить страницы, пожалуйста, сделайте это. Трудно найти переводчиков. —Mattshu 08:22, 3 July 2011 (PDT)
It sounds like he's offering to translate the page. FelixGriffin 09:27, 3 July 2011 (PDT)
Well if he can translate then he should be able to read this. Mixonoid: To translate a page, just start editing prop_tractor_beam:ru. If you are planning on translating, thank you for your contribution. —Mattshu 10:10, 3 July 2011 (PDT)

If anyone is having trouble with cubes getting stuck on ceilings after fully passing through a funnel that is turned off, I found a somewhat passable solution. Just set the funnel to reverse for a fraction of a second (0.1s) after it turns off to suck the cube away from the wall. The effect is barely visible. —tkellaway 15:38, 9 July 2011 (GMT)

Do I really need to make all these incredibly precise cuts with the Clip tool every time I want to create a circular hole in the floor to put the funnel in, or is there a quicker way? --Ncrecc (talk) 00:56, 8 April 2016 (UTC)

music in the beams

i'm trying to get tractor beams to play music when i jump in the stream-thing; can anyone tell me how to do that? Unsigned comment added by ‎Oddsox12ishere (talkcontribs) Always sign your posts with four tildes (~~~~)

Hello. This is done using Portal 2's operator stacks feature. They are basicly small programs that run on a specified soundscript. The stack that controls funnel music is called p2_update_music_play_tbeam, and would look something like this:
import_stack "p2_update_music_play_tbeam"
play_entry
{
	entry_name "music.sp_a4_tb_intro_tbin"
}	
stop_entry
{
	match_entry "music.sp_a4_tb_intro_tbin"
}
Replace music.sp_a4_tb_intro_tbin with your own sound entry if you're using custom tractor beam music. Also, please remember to sign your additions on discussion pages with four tilde signs (~~~~) at the end of your message. This will automaticly add your signature and timestamp making it easier to see who wrote what. -- Dr. Orange talk · contributions 09:41, 18 November 2017 (UTC)