Creating an energy ball launcher and catcher: Difference between revisions
(Added in More info, this article seems tio be badly writtin.) |
|||
| Line 60: | Line 60: | ||
:3. Create a <code>filter_combineball_type</code> entity and name it "filter_ball". | :3. Create a <code>filter_combineball_type</code> entity and name it "filter_ball". | ||
:4. Set the ball type for "filter_ball" to "Launched by <code>point_combine_ball_launcher</code>". | :4. Set the ball type for "filter_ball" to "Launched by <code>point_combine_ball_launcher</code>". | ||
:5. Create a brush with the trigger texture to cover the opening of the "ball_trap" model. | :5. Create a cylinder brush with 8 faces, and size it to same the length and width, as the Dynamic prop. Texture it with the trigger texture to cover the opening of the "ball_trap" model. | ||
:6. Turn this brush into a <code>trigger_multiple</code> entity and name it "trigger_ball_trap", also set the <code>filter_name</code> to "filter_ball". Make sure to have the ''flags'' Physics Objects selected. | :6. Turn this brush into a <code>trigger_multiple</code> entity and name it "trigger_ball_trap", also set the <code>filter_name</code> to "filter_ball". Make sure to have the ''flags'' Physics Objects selected. | ||
:7. Create a <code>prop_dynamic</code> entity with a <code>World Model</code> of "<code>models/Effects/combineball.mdl</code>", set its <code>Parent</code> to "ball_trap" and <code>Name</code> it "ball_trap_ball". | :7. Create a <code>prop_dynamic</code> entity with a <code>World Model</code> of "<code>models/Effects/combineball.mdl</code>", set its <code>Parent</code> to "ball_trap" and <code>Name</code> it "ball_trap_ball". | ||
Revision as of 16:56, 31 December 2007
Introduction
The purpose of this tutorial is to illustrate how to create a single ball launcher and have a single ball catcher as its target. Both, the launcher and the catcher instructions will detail how the basic animations as well as the visual and sound effects work.
The Aperture Science High Energy Pellet Launcher
The launcher is comprised of three entities:
The model used is:
models/props/combine_ball_launcher.mdl
To create the launcher:
- 1. Create a
prop_dynamicentity (Shift+E) with aWorld Modelset to "models/props/combine_ball_launcher.mdl" and theNamekey of "ball_launcher". - 2. Place the new entity where you want it in your map.
- 3. Create a
point_energy_ball_launcherentity and set its name to "ball". - 4. Place the new entity inside the dome of the "ball_launcher" model.
- 5. Create a new brush 20 units or so square and 1 unit thick with the nodraw texture.
- 6. Turn this brush into a
func_brushentity (Ctrl+T) and name it "ball_launcher_shield". - 7. Place the "ball_launcher_shield" so that it is touching the black circular shield of the "ball_launcher model".
- 8. Open up the
point_energy_ball_launcherproperties and set these outputs:
- 9. Adjust the keyvalues of
point_energy_ball_launcherto set the desiredDirection,Speed,Type, andLifeof the ball.
The Aperture Science High Energy Pellet Launcher is now complete.
point_energy_ball_launcher outside of the "ball_launcher" model and remove the "ball_launcher_shield" outputs.The Aperture Science High Energy Pellet Target
The target is comprised of eleven entities:
- ambient_generic
- env_sprite
- filter_combineball_type
- func_tracktrain
- logic_relay
- path_track (2)
- point_spotlight
- prop_dynamic (2)
- trigger_multiple
The models used are:
/models/props/combine_ball_catcher.mdl/models/Effects/combineball.mdl
To create the catcher:
- 1. Create a
prop_dynamicentity with aWorld Modelkey pointing to "models/props/combine_ball_catcher.mdl" and theNameset to "ball_trap". - 2. Place the entity where you want it in your map.
- 3. Create a
filter_combineball_typeentity and name it "filter_ball". - 4. Set the ball type for "filter_ball" to "Launched by
point_combine_ball_launcher". - 5. Create a cylinder brush with 8 faces, and size it to same the length and width, as the Dynamic prop. Texture it with the trigger texture to cover the opening of the "ball_trap" model.
- 6. Turn this brush into a
trigger_multipleentity and name it "trigger_ball_trap", also set thefilter_nameto "filter_ball". Make sure to have the flags Physics Objects selected. - 7. Create a
prop_dynamicentity with aWorld Modelof "models/Effects/combineball.mdl", set itsParentto "ball_trap" andNameit "ball_trap_ball". - 8. Create a
env_spriteentity, set itsSprite Nameto "sprites/physring1.vmt", set itsParentto "ball_trap" andNameit "ball_trap_sprite". - 9. Place both "ball_trap_ball" and "ball_trap_sprite" somewhere near the front of the "ball_trap" model.
- 10. Create a
logic_relayentity and name it "relay_ball_trap_spawn". - 11. Open up the
logic_relayproperties and set these outputs:
- 12. Create a
path_trackentity and name it "path_ball_trap_01", setNext Stop Targetto "path_ball_trap_02". - 13. Place "path_ball_trap_01" in front of and slightly above the "ball_trap" model.
- 14. Create a
path_trackentity and name it "path_ball_trap_02, setNext Stop Targetto "path_ball_trap_01". - 15. Place "path_ball_trap_02" behind and slightly above the "ball_trap" model.
- 16. Create a brush with the nodraw texture.
- 17. Turn this brush into a
func_tracktrainentity and name it "ball_trap_door". - 18. Place it slightly above the two
path_trackentities and behind the "path_ball_trap_01". - 19. Open up the property window for "ball_trap_door" and set these keyvalues:
Property Name Value First Stop Target path_ball_trap_01 Move Sound d3_citadel.podarm_move Start Sound d3_citadel.podarm_move_start Stop Sound d3_citadel.podarm_move_stop
- 20. Open up the property window for "path_ball_trap_02" and set this output:
- 21. Create a
point_spotlightentity (Shift+E) and name it "ball_trap_spotlight". You may also want to disable theDynamic Lightflag. - 22. Set the
Colorfor "ball_trap_spotlight" to "255 0 0", theBeam Lengthis normally the length of the room, andBeam Widthsomewhere between 20 and 40. - 23. Create an
ambient_genericentity andNameit "ball_trap_sound" - 24. Set the
Sound Namekey for "ball_trap_sound" to "AlyxEMP.Charge" - 25. Open the property window for "trigger_ball_trap" and set these outputs:
- Then under the Flags tab un-check "clients" and check everything else.
The Aperture Science High Energy Pellet Target is now complete.
PlaySound.The theory
These instructions illustrate the most basic use of the launcher and catchers. Theoretically you should be able to have one launcher and multiple catchers, or even catchers that reset themselves.