GRUNT USES FUNC_TANK;
PLAYER KILLS GRUNT, USES FUNC_TANK
Handy Vandal's
Half-Life Almanac
 
Updated April 13, 2000 - 9:47 pm ... E-mail to karl@karljones.com
 

Almanac - Topics - Maps -
- Quake Almanac -

Karl Jones Web: Home Page

GRUNT USES FUNC_TANK; PLAYER KILLS GRUNT, USES FUNC_TANK
see also Tanks

You can make func_tank that shoots at the player until the grunt "manning" it dies. (See Monster Behavior.)You can make a func_tank that the player can use. But it's not possible to make a single Half-Life entity which does both. However, Ramon Talavera writes: "I found a tricky way to get this effect" ...

1 - Create TWO identical turrets and place them at the same position

GUN1:
Render Mode Normal
Active Flag SET

GUN2:
Render Mode Texture
FX Amount 0
Controllable Flag SET
Active Flag UNSET

2 - Create TWO env_render entities:

UNRENDGUN1:
Target GUN1
Render Mode Texture
FX Amount 0

RENDGUN2: Target GUN2
Render Mode Normal

3 - Create a Multimanager, call it RENDERER_CONTROLMM

Deactivate SmartEdit and insert the following Key/value pairs:
GUN1 0
UNRENDGUN1 1
RENDGUN2 1

4 - Now set the grunt Target to RENDERER_CONTROLMM and the trigger condition to death.

How it works: The grunt dies and activates the multimanager. The multimanager deactivates the automatic turret and makes it disappear, it also makes the hidden (Texture,FX Amount 0) turret, the controllable one, appear, so that you can control it.

by Ramon Talavera - wrath@airtel.net

 

Half-Life © 1998-99 Sierra On-line and Valve L.L.C. All rights reserved. Half-Life and the Half-Life logo are trademarks of Sierra On-Line. Valve and the Valve logo are trademarks of Valve L.L.C. Half-Life images, textures, music, sound effects, and other graphic or audio content © 1998-99 Valve L.L.C. All rights reserved.


. . . Handy Vandal's Half-Life Almanac -
GRUNT USES FUNC_TANK;
PLAYER KILLS GRUNT, USES FUNC_TANK

Handy Vandal's Almanac copyright 2000 by Karl Gregory Jones . . .