Jump to content

Home

NPC ranges?


zubin

Recommended Posts

How do I control how far an NPC will spot the player? Do they have some active visual range I can set like turrets have? The reason I'm asking is I have some stormtroopers in a map I'm trying to make but they don't seem to react to the player at the distance I want them to.

Link to comment
Share on other sites

Sure. Pop open npcs.cfg and edit these values:

 

Earshot - How far the NPC can hear in game units. 32 units is about one meter.

 

Hfov - Horizontal field of view. I think some guys default to like 45 degrees, kind of low. 160 or 180 would be more like it, IMO. Would give them periphreal vision.

 

Vfov - Verticle field of view. Same as above. I'd recommend maybe like 90 degrees or something.

 

Vigilance - How likely an NPC is to notice something. 0 = never, 1 = always notice.

 

Visrange - How far away they can see in map units. 32 is about one meter.

 

 

Just add the values for each NPC if they aren't already there. Keep tweaking till you get it right. NPCs.cfg has a complete list of these values at the top of the file.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...