In this tutorial you will be learning how to create a "spawn" for NPCs and how to make them go somewhere, how to create a teleport and how to make the beach buggy. First create your a room. It should have a small room which the combines, that is going to attack Gordon, spawns, a big room, where Gordon spawns and a hallway that connects them, also create some weapons and an info_player_spawn in the big room. Then create your second room. Make a room like an "L". In the small room make two NPC_maker enteties and place them so the player cant see them when he spawn. Modify the following Keyvalues: Name - npc_maker_1. Frequency - 3 (That wont make it to hard or to easy). Class name of spawned NPC - npc_metropolice. Weapons - Pistol. Leave the rest keyvalues as they are. Click Aply and then deselect them. Now its time to create the things that makes the combines attack Gordon. Make an assault_rallypoint and place it near the npc_makers and modify the following keyvalues: Name: rally_1 Assault Point - assault_1. Priority - 10 (The rallypoint which has the highest priority gets selected first.). Now make the assault_assaultpoint. Name it assault_1. If you want the combines to attack Gordon as fast as they see him then set Clear on contact with enemies to Yes, otherwise they will go to the assaultpoint and then attack Gordon. BUT, open the rallypoints entity again and go to Output. Click add and on My Output named type OnSpawnNPC, on Target Entity Named type rally_1 and on Via This Input type AddOutPut. Now to the teleport! Create a brush with the triggertools texture. Place it somewhere where you will remember it when you play the map. Then Tie it to an entity (Press Ctrl+T). Set the Remote_destionation keyvalue to teleport_1. Then make an info_teleport_destination and name it teleport_1. Now for the last thing: The beach buggy. Its very simple. Create a prop_vehicle_jeep and on the worldmodel keyvalue type models/buggy.mdl! Dont forget to make lights and nodes. Nodes makes NPCs able to walk where it is placed, if there isn't any nodes then all NPCs wont walk/run anywhere. Now save it into your half-life 2\hl2\maps folder and compile it. Test the map!!! Created by TTTC |