Enter Half-Life Re-imagined, our current competition!
Check out Skewing textures in Hammer, our newest tutorial!
Say hello to Bear, our newest member!

logo

Site Stuff

Reference

Maps

Community

ShoutBOX

Poll

Valve Predictions 2017

What's the most likely thing Valve will release this year?

Nothing

18

A new game

3

More overpriced hardware

8

Source 2 SDK

11

An army of evil killer cyborgs

5

The hounds

8

Onliners

3 mins

Admer456

5 mins

Victor-933

17 mins

abbadon

26 mins

Bruce

34 mins

SpannerSpammer

34 mins

platoon

1 hours

Jessie

Affiliates

A gaming and technology blog by TWHL admins Penguinboy and Ant. A music blog by TWHL users Ant and Hugh.

Controlling Turrets Through Cameras

By Hugh 'Hugh' Lloyd

This effect is rather simple to create, as it requires only 5 entities. The only real ingenuity in this was the tiresome trial and error process that I went through in getting this to work.

The first thing you should make is the func_tank, as it's used in every other part of this article. Customize it however you desire, while making sure "Controllable" is ticked. Now that the turret itself is complete, we'll need to add a camera system.

Func_Tank Properties

  • Name (targetname) - Turret


  • Place a trigger_camera fairly close to the turret, while still allowing for a good angle to use the turret from. Add an info_target right next to the turret and in between that and the camera, and have your camera target it.

    Trigger_Camera Properties

  • Name (targetname) - Turret_Camera

  • Target (target) - Turret_Target

  • Hold Time (wait) - 0.1


  • Info_Target Properties

  • Name (targetname) - Turret_Target




  • Now that the turret and the camera systems are both working, so we just need to finish it off. Throw down a brush that looks something like a computer, and place a func_tankcontrols in front of it, with these controls leading back to your newly created turret. Then, add a trigger_multiple in front of the func_tankcontrols, and have it target the camera.

    Func_TankControls Properties

  • Tank entity name (target) - Turret


  • Trigger_Multiple Properties

  • Target (target) - Turret_Camera

  • Delay before reset (wait) - 0.1




  • So now you pop up to the computer, look through the camera at your friendly turret, and mercilessly slaughter hordes of innocent civilians. Err, evil aliens. Yes, that's it.
    You can experiment with adding other entities to fancy it up a bit, such as an env_fade for when you start using the camera. Good luck, and happy mapping!



    Example Map

  • camera_turret.zip


  • Questions?

    E-mail hughbear62@hotmail.com