Go Back   Steam Users' Forums > Steam Tool Discussions > Source Coding

Reply
 
Thread Tools Display Modes
Old 05-27-2007, 04:11 PM   #1
saracen
 
 
 
Guest
Posts: n/a
How far an enemy can see?

How would i go about setting how far an enemy can see?

I've tried editing m_flFieldOfView in npc_combine, but if its a positive number the npc doesnt see me at all. Anything negative seems to be the same?

thanks in advance
 
Reply With Quote
Old 05-27-2007, 04:39 PM   #2
neemz
 
 
 
Guest
Posts: n/a
I beleive you can set it using SetDistLook, do a search for flDistLook to see if there is a DEFINE for the NPC you are interested in.
  Reply With Quote
Old 05-28-2007, 01:52 AM   #3
saracen
 
 
 
Guest
Posts: n/a
Found it, thanks for the help.

For anybody else wanting to know:

flDistLook is used, but equals m_LookDist. So look for m_LookDist in AI_Senses.h,
its default value is 2048.

Update:

Ok, looks like they don't use that variable often, and just use the value 2048. So search for that value =)

Last edited by saracen: 05-28-2007 at 02:04 AM.
  Reply With Quote
Reply

Go Back   Steam Users' Forums > Steam Tool Discussions > Source Coding


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -7. The time now is 02:18 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site Content Copyright Valve Corporation 1998-2012, All Rights Reserved.