hiding from NPCs in shadows

hiding from NPCs in shadows

Re: hiding from NPCs in shadows Posted by boneyabba on Sat Jun 9th 2007 at 11:17am
boneyabba
1 post
Posted 2007-06-09 11:17am
1 post 0 snarkmarks Registered: Jun 8th 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!
Re: hiding from NPCs in shadows Posted by hl_world on Sat Jun 9th 2007 at 3:15pm
hl_world
144 posts
Posted 2007-06-09 3:15pm
hl_world
member
144 posts 144 snarkmarks Registered: Jan 30th 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.
Re: hiding from NPCs in shadows Posted by Naklajat on Sat Jun 9th 2007 at 6:21pm
Naklajat
1137 posts
Posted 2007-06-09 6:21pm
Naklajat
member
1137 posts 384 snarkmarks Registered: Nov 15th 2004 Occupation: Baron Location: Austin, Texas
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 :smile:

Good luck.

o

Re: hiding from NPCs in shadows Posted by hl_world on Sat Jun 9th 2007 at 6:44pm
hl_world
144 posts
Posted 2007-06-09 6:44pm
hl_world
member
144 posts 144 snarkmarks Registered: Jan 30th 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?
Re: hiding from NPCs in shadows Posted by Riven on Sun Jun 10th 2007 at 4:18am
Riven
1640 posts
Posted 2007-06-10 4:18am
Riven
Wuch ya look'n at?
super admin
1640 posts 1266 snarkmarks Registered: May 2nd 2005 Occupation: Architect Location: Austin, Texas, USA
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.
Blog: www.playingarchitecture.net
LinkedIn: Eric Lancon
Twitter:@Riven202
Re: hiding from NPCs in shadows Posted by reaper47 on Tue Jun 12th 2007 at 11:29am
reaper47
2827 posts
Posted 2007-06-12 11:29am
reaper47
member
2827 posts 1921 snarkmarks Registered: Feb 16th 2005 Location: Austria
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.
Why snark works.