The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Has anyone figured out .nodes files?
FragdaddyXXL Offline
Member

Posts: 136
Threads: 20
Joined: Apr 2012
Reputation: 7
#1
Has anyone figured out .nodes files?

I was looking at some of Amnesia's source files and I noticed a 10_daniels_room_servant_grunt.nodes file. I was wondering if anyone knows of an easy way to make one. I say easy because one of the values needed are distance values between each node. Ex.
<Node Name="PathNodeArea_1" ID="580">
        <Edge Node="PathNodeArea_28" Distance="1.67661678791046142578" />
        <Edge Node="PathNodeArea_25" Distance="1.74686419963836669922" />
        <Edge Node="PathNodeArea_4" Distance="2.35236239433288574219" />
        <Edge Node="PathNodeArea_2" Distance="3.08871102333068847656" />
        <Edge Node="PathNodeArea_29" Distance="3.24689984321594238281" />
        <Edge Node="PathNodeArea_7" Distance="4.88411092758178710938" />
    </Node>
Of course it's possible to calculate the distance between two points, but it would be quite tedious to do so. Or am I just crazy, and that Distance value means something else completely. I would like to use such a file so that I can just clear the current path nodes from the AI and call up paths that I have already pre-made.

Oh, and they use it like so:
AddEnemyPatrolNode("grunt_normal_1", "PathNodeArea_28", 0, "");

Or is that just how far the enemy can stray from the nodes?

Dark Seclusion Here
(This post was last modified: 04-19-2012, 05:26 PM by FragdaddyXXL.)
04-19-2012, 05:22 PM
Find


Messages In This Thread
Has anyone figured out .nodes files? - by FragdaddyXXL - 04-19-2012, 05:22 PM



Users browsing this thread: 1 Guest(s)