Don't know where to turn

Peppridge Farms

L1: Registered
May 20, 2016
8
0
I can't find any updated guides on how to import custom NPC's or models into hammer, for either TF2 or any of the Half Life games. Any help would be greatly appreciated
 

henke37

aa
Sep 23, 2011
2,075
515
A NPC is run by native code. You are not allowed to add native code to the game. As such, you can't add new NPCs. Sure, you can try and fake it with just the model, but that's not going to be easy and will likely look very unconvincing.
 

Egan

aa
Feb 14, 2010
1,375
1,720
You could use the skeletons by overriding their model, but your custom npc would be, in that case, only something that runs at the player (if they can find the player on their navmesh, generated from both respawn rooms) and melees them.

Alternatively if you wanted to do what the training modes do and spawn actual TF2 bots into maps (these do take up player slots though!) you can try looking at the decompiled versions here: http://tf2maps.net/threads/valve-maps-decompiled.5952/ (in misc at the bottom). NPCs that shoot at the player and run around and take cover would be a lot more skillful to play against, but still overall would be bots.

You could maybe find a way to use the attributes entity to add in a custom texture to the bots as well, but in that case (because the texture would be hidden by cosmetics these days) you might as well just colorise the player with AddOutput 'rendermode 1' (color) and then setting their 'rendercolor' to an rgb value. - Just to give the bots a different feeling, like totally green guys.