[ News | About | Media | Downloads | Tutorials | Contact ]

Tutorials

Back to Tutorials

Combine Force Shields

You can find the prefab for the Combine Shields from the he_coop/prefabs folder in SourceMods. Add it toyour prefabs by copying it to your prefabs folder under source2007 bin (the folder is something like C:\Steam\steamapps\[username]\sourcesdk\bin\source2007\bin\prefabs). They are almost ready to go, you only need to change add few outputs.

First go to your generator's logic_relays, named assuming you used the HL2 prefab, logic_ballgenerator1_disabled and logic_ballgenerator1_enabled (the number might differ) and add outputs to call the logic_relays relay_combineshieldwall1_off and relay_combineshieldwall1_on. Then go to your hlss_combine_interface and add the following outputs: OnHackedOn call the hlss_combine_wall SetHackedOn input function. OnHackedOff call the SetHackedOff input function. The Combine Force Shield now works perfectly, letting only Hostiles through if it's hacked.

To stop Hostiles trying to build navigation paths through the shield when it's normal, and Combines when it's hacked, see: info_node_link.

Details:
The Combine Force Shield has, just like the generators, a different func_brush for the blue and red effects. When the hlss_combine_wall is set as hacked and is enabled it enables the red func_brush, brush_combineshieldwall1hacked, and disabled the blue func_brush brush_combineshieldwall1normal. It also changes the skins of the two prop_dynamics models to have red effects.

See also: info_node_link, Generators

Back to Tutorials

[ News | About | Media | Downloads | Tutorials | Contact ]



Valve, the Valve logo, Half-Life, the Half-Life logo, the Lambda logo, Steam, the Steam logo, Source, and the Source logo are trademarks and/or registered trademarks of Valve Software. All information is copyright their respective authors. Website designed by Han Solo.