Go Back   Steam Users' Forums > Steam Tool Discussions > Source Level Design

Thread Tools Display Modes
Old 04-01-2012, 04:21 AM   #1
Join Date: May 2011
Reputation: 0
Posts: 14
How to make Combines run towards the player from across the map

I'm making a Garry's Mod map in which the objective is to survive a constant rush of Combine soldiers, who spawn on the other side of the max-size map.

What's the best way to make this happen? I've tried using the assault system, and that works remarkably well for the first Combine to spawn, but after a while they stop coming and go back to just loitering around their spawn (I think it's because they run out of rally points).

Also, I need them to shoot at prop_physics. Could this be done with a npc_relationship entity, or do I have to use Gmod's lua_run to run custom AI code?
Schilcote is offline  
Reply With Quote
Old 04-01-2012, 01:51 PM   #2
Join Date: Apr 2011
Reputation: 0
Posts: 31
For the combine soldiers going after a player from across the map, create an aiscripted_schedule. set its name to whatever you want, set it to "Run to goal entity". Set the goal entity to !player, and target npc to npc_combine_s. After this, apply an output on your npc spawners:
OnSpawn <Your schedule name here> Startschecule
For them to shoot at a physics prop you should make an npc_bullseye and place it in front of the prop. Then, place an ai_relationship and just set npc_combine_s to hate npc_bullseye with a priority of 14, then have an output to apply the relationship for each spawned combine soldier.
slackingstacker is offline   Reply With Quote

Go Back   Steam Users' Forums > Steam Tool Discussions > Source Level Design

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -7. The time now is 09:07 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Site Content Copyright Valve Corporation 1998-2015, All Rights Reserved.