Talk:Shared tasks

From Valve Developer Community
Jump to: navigation, search

TASK_WANDER

Looking at npc_combine.cpp and npc_hunter.cpp, the parameter passed along with this task does not seem to be an amount of time. Hunters often wander for "720432", which is clearly too long in seconds or even milliseconds. Near the end of npc_hunter.cpp is this comment: "formula is MIN_DIST * 10000 + MAX_DIST". The "TASK_WANDER 720432" tasks are commented with "6 to 36 feet".

So, it would seem that the parameter specifies the minimum and maximum distances (in inches) to wander. Can anyone confirm or disprove this? --Tayrtahn 19:15, 26 August 2009 (UTC)