forbucks.blogg.se

Half life 2 bullsquid
Half life 2 bullsquid









I fixed everything I wrote about above, and tested it in-game. The path to the texture is declared inside the Precache() function.Īnyway, here I include the houndeye files which should go in your mod's sourcecode Server folder, or Server\yourmod for better file organising. In case of the houndeye specifically, it uses some fancy beam magic to create shockwaves, and it absolutely needs the sprite material, sprite/shockwave.vmt, to be present, to be copied from HLS to your mod, or it'll crash. Again, the compiler lights up all errors in red, so you can quickly find them. If you're not planning on mixing the two in one area, it's fine.ĬLASS_ALIEN_MONSTER is referenced a couple times in the cpp, so you should change all instances of it to CLASS_ANTLION or whatever you chose. That'll make the houndeye hostile to the player, to Combine soldiers, player allies, zombies and whatnot, and naturally, it'll make it neutral towards anltions (since they'll be sharing the same class). You could add this class in hl2_gamerules.cpp, or you could change it to use one of the existing ones, for example CLASS_ANTLION. This relationship class (used for determening how one type of creatures percieves others, for example CLASS_COMBINE always hates CLASS_ZOMBIE, or CLASS_ANTLION hates and attacks most other things) is not present in HL2. One is that the creature is classified as CLASS_ALIEN_MONSTER. We should change to CAI_BaseNPC (because CHL1BaseNPC is defined in hl1_ai_basenpc.h, and we already decided not to use it). Then you'll see that in the header file, hl1_npc_houndeye.h, the creature is declared as a CHL1BaseNPC. The first one is that the NPC wants to include the file hl1_ai_basenpc.h, and you could copy it, but it's far easier and less messy to just change it to "ai_basenpc.h", omitting 'hl1', and using HL2's basic ai functions for navigation and such. h into your project (into Server), you'll immediately notice a few red flares, erros in the code. When you copy the code of hl1_npc_houndeye.cpp and. Now that I looked in the code, it seems that 2006 SDK version of the houndeye is incompatible because it misses a few files, they're simply not present. If you're a complete newbie to coding, read this Īnd get Visual Studio 2015 Community, it's the best, in my optinion. The code is mostly compatible but needs to be edited a bit, in key spots. An NPC, naturally, requires both code and assets.Īssets are already compatible so you just copy the models and the textures.











Half life 2 bullsquid