hiding from NPCs in shadows
Post Reply
Quote
Re: hiding from NPCs in shadows
Posted by boneyabba on Sat Jun 9th at 11:17am 2007


I would like the player to be able to hide from NPCs in the shadows on my map. I found this tutorial: http://collective.valve-erc.com/index.php?doc=1092932859-33776100 but it appears to be from a completely different world of editing than what I've learned with Hammer so far. Is this from HL1 or something? Or is my level if ignorance just so great that I need it dumbed down more?

As far as I can tell I don't even have a world.cpp and even if I did I wouldn't know how to edit it.

Thanks for any help!





Quote
Re: hiding from NPCs in shadows
Posted by hl_world on Sat Jun 9th at 3:15pm 2007


That's in the world of coding for Half-Life 1. To be able to implement all that you need a C++ compiler. I don't know much about coding but apparently you need Microsofts Visual Studio .NET or whatever it's called. If you don't feel like shelling out all the money to buy it you should probably look for or request it as a mod.





Quote
Re: hiding from NPCs in shadows
Posted by Naklajat on Sat Jun 9th at 6:21pm 2007


MS Visual Studio Express (free version) http://msdn.microsoft.com/vstudio/express/

How to get it to successfully compile the Source SDK http://developer.valvesoftware.com/wiki/Compiling_under_VS2005#Requirements

Good place to start getting familiar with the Source SDK http://developer.valvesoftware.com/wiki/Category:Programming

That's about as far as I ever got, I tried to get into programming a few times but couldn't stare at cryptic text for that long. More power to those that can <img src=" SRC="images/smiles/icon_smile.gif">

Good luck.



=o



Quote
Re: hiding from NPCs in shadows
Posted by hl_world on Sat Jun 9th at 6:44pm 2007


Baron,

Is Visual Studio Express all that is required for changing code under a tutorial like the one that boneyabba linked.

Am I right in thinking that you only need the modified CPP files compiled to successfully mod the game?





Quote
Re: hiding from NPCs in shadows
Posted by Riven on Sun Jun 10th at 4:18am 2007


You could try looking at it from a mapper's tweaking perspective:

What I would do (and perhaps way too tedious) is create a trigger_multiple brush that would take the shape of the shadow being cast, and have its "on start touch" and "on end touch" triggers fire an ai_relationship's disposition change as the player moved from shadow to shadow, essentially creating a "blind spot" to enemy NPC's as the player moved about a level.







Quote
Re: hiding from NPCs in shadows
Posted by reaper47 on Tue Jun 12th at 11:29am 2007


I do recall a tool texture called "tools/blockLOS" or the like that blocks the enemy's line of sight. You might be able to put brushes with it around your shady spots to get the effect.






Post Reply