Creating a Portal Radio: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(consistency)
Line 1: Line 1:
== Introduction ==
== Introduction ==
{{portal}} This tutorial will show you how to create the Portal radios that usually play the '''Still Alive''' song.
{{portal}} This tutorial will show you how to create the Portal radios that usually play the fast instrumental version of the '''Still Alive''' song.


== Construction ==
== Construction ==


# Create a <code>[[prop_physics_override]]</code> entity and set its '''World Model''' to <code>radio_reference.mdl</code>. Place it where you want in your map.
# Create a '''[[prop_physics_override]]''' entity and set its ''World Model'' [[keyvalue]] to <code>radio_reference.mdl</code>. Place it where you want in your map.
# Name the radio radio_1.
# ''Name'' the radio <code>radio_1</code>.
# Create an <code>[[ambient_generic]]</code> entity and place it near the radio. Name it radio_sound_1.
# Create an '''[[ambient_generic]]''' entity and place it near the radio. Name it <code>radio_sound_1</code>.
# Make the radio_sound_1's '''Sound Name''' <code>Portal.room1_Radio</code>. Make its '''Source Entity Name''' radio_1.
# Make the radio_sound_1's ''Sound Name'' <code>Portal.room1_Radio</code>. Make its ''Source Entity Name'' <code>radio_1</code>.
# Make sure none of radio_sound_1's flags are checked.
# Make sure none of radio_sound_1's flags are checked.




The radio is now complete!
The radio is now complete!
== Theory ==
The radio should be playing the '''Still Alive''' music which should fade out and in depending on your distance from it.


[[Category:Level Design Tutorials]]
[[Category:Level Design Tutorials]]
[[Category:Portal]]
[[Category:Portal]]

Revision as of 18:27, 29 September 2010

Introduction

Portal This tutorial will show you how to create the Portal radios that usually play the fast instrumental version of the Still Alive song.

Construction

  1. Create a prop_physics_override entity and set its World Model keyvalue to radio_reference.mdl. Place it where you want in your map.
  2. Name the radio radio_1.
  3. Create an ambient_generic entity and place it near the radio. Name it radio_sound_1.
  4. Make the radio_sound_1's Sound Name Portal.room1_Radio. Make its Source Entity Name radio_1.
  5. Make sure none of radio_sound_1's flags are checked.


The radio is now complete!