Dynamic Waypoints

StixNStonzStixNStonz Join Date: 2006-11-06 Member: 58439Members, Reinforced - Shadow
<div class="IPBDescription">as suggested elsewhere</div>It was brought up in another thread, but I felt it deserves its own here.

Dynamic waypoints; i.e., the commander takes a marine in MS and gives him a waypoint to a hive. Currently, the player would see a waypoint a mile away. Dynamic waypoints could fix this.

My suggestion would be to have a mapper entity. The end result would be that the player would see a semi-transparent 'ending' waypoint, but would be given waypoints en route, perhaps around 4. You dont want too many, but not too few.

The mapping entities would be placed one the map is constructed, and would form a sort of layout web. To do this, I would envision the need for two types of entities; a waypoint location entity, and a fork entity (fork in the road).

The mapper would place the waypoint entities are where actual sub-waypoints will be placed, and the fork entities would be placed pretty much exactly at the turn that separates one route option from another. So, in East Junction on Veil, the Fork entity would be placed right in the middle of the four-way intersection (doors to Topo and C12 on the north and east, route to Double and Dome on the west and south).

That way, when the waypoint system is trying to trace the route from the player to the final waypoint, it can follow the chain of waypoints in the direction towards the final waypoint, and when it hits the fork, it has very distinct angles between the separate routes' waypoints.

The mapper could even potentially number each entity, and even create a notepad document showing the waypoint routes for the main paths. If a web was created as such, it would not take long at all for a mapper to input (3-4-6-12-13) is the route from Marine Start to Cargo hive, etc. You could even have multiple routes for each, and give the player or the comm an option to cycle between routes.

Thoughts? Is this actually feasible from a coding perspective?

Comments

  • CanadianWolverineCanadianWolverine Join Date: 2003-02-07 Member: 13249Members
    I would hope so. Good path finding for your units, I mean players, is important. <img src="style_emoticons/<#EMO_DIR#>/smile-fix.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile-fix.gif" />
  • c0kec0ke Join Date: 2004-07-02 Member: 29676Members
    why not just make an intelligent line on the ground to the waypoint?
  • N_3N_3 &#092;o/ Join Date: 2004-03-12 Member: 27291Members, Constellation
    as long as it doesn't get in the way or become obscuring. also have to take into account the possibility of the commander wanting the marines to take an alternative route
  • locallyunscenelocallyunscene Feeder of Trolls Join Date: 2002-12-25 Member: 11528Members, Constellation
    <!--quoteo(post=1666110:date=Jan 3 2008, 12:00 AM:name=c0ke)--><div class='quotetop'>QUOTE(c0ke @ Jan 3 2008, 12:00 AM) <a href="index.php?act=findpost&pid=1666110"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->why not just make an intelligent line on the ground to the waypoint?<!--QuoteEnd--></div><!--QuoteEEnd-->
    That's one of those things that seems simple but would be really hard to implement in practice. It would be cool if the devs spent time making AI stuff like this because it would make the game more intuitive but it's not "just make an intelligent line". Granted pathfinding is a pretty well known problem, but I'd imagine there'd either have to be non-trivial parsing of maps to make nodes and distances, or mappers would have to include this information upfront. Not impossible by any means, but much trickier than giving the commander chainable straight line wp as suggested.
  • DominingDomining Join Date: 2007-09-27 Member: 62452Members
    <!--quoteo(post=1666150:date=Jan 3 2008, 09:20 AM:name=locallyunscene)--><div class='quotetop'>QUOTE(locallyunscene @ Jan 3 2008, 09:20 AM) <a href="index.php?act=findpost&pid=1666150"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->That's one of those things that seems simple but would be really hard to implement in practice. It would be cool if the devs spent time making AI stuff like this because it would make the game more intuitive but it's not "just make an intelligent line". Granted pathfinding is a pretty well known problem, but I'd imagine there'd either have to be non-trivial parsing of maps to make nodes and distances, or mappers would have to include this information upfront. Not impossible by any means, but much trickier than giving the commander chainable straight line wp as suggested.<!--QuoteEnd--></div><!--QuoteEEnd-->

    AI pathfinding would be implemented regardless of whether this feature gets the cut or not. Weldbots are AI controlled units.
  • StixNStonzStixNStonz Join Date: 2006-11-06 Member: 58439Members, Reinforced - Shadow
    Thats why I tried to include an actual plan for implementing this feature. With the addition of those two entities, the coding would have a solid foundation to work from; but it would also mean that the mapper's need to be a bit more informed about how to set up their maps.
  • Dark RageDark Rage Join Date: 2007-12-05 Member: 63081Members
    Personally i hate way points getting in the way of my field of vision and for people who know where to go it could get frustrating.

    I alternatively suggest implementing some sort of compass system or seeing those way points in a larger master map.
  • HarimauHarimau Join Date: 2007-12-24 Member: 63250Members
    <!--quoteo(post=1666197:date=Jan 4 2008, 07:24 AM:name=Dark Rage)--><div class='quotetop'>QUOTE(Dark Rage @ Jan 4 2008, 07:24 AM) <a href="index.php?act=findpost&pid=1666197"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Personally i hate way points getting in the way of my field of vision and for people who know where to go it could get frustrating.<!--QuoteEnd--></div><!--QuoteEEnd-->
    There should be an option player-side to turn off dynamic waypoints at will, to replace it with the current 'final destination' waypoint system.
    Plus I assume dyn waypoints would only show 1 or 2 waypoints at a time - the 'next' waypoint, and the 'final' waypoint.

    <!--quoteo(post=1666197:date=Jan 4 2008, 07:24 AM:name=Dark Rage)--><div class='quotetop'>QUOTE(Dark Rage @ Jan 4 2008, 07:24 AM) <a href="index.php?act=findpost&pid=1666197"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I alternatively suggest implementing some sort of compass system<!--QuoteEnd--></div><!--QuoteEEnd-->
    Isn't that really pretty much the same as a 'final destination' waypoint, that we have now? it's not completely the same, but it works out the same.

    <!--quoteo(post=1666197:date=Jan 4 2008, 07:24 AM:name=Dark Rage)--><div class='quotetop'>QUOTE(Dark Rage @ Jan 4 2008, 07:24 AM) <a href="index.php?act=findpost&pid=1666197"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->or seeing those way points in a larger master map.<!--QuoteEnd--></div><!--QuoteEEnd-->
    I thought we already had this?
  • locallyunscenelocallyunscene Feeder of Trolls Join Date: 2002-12-25 Member: 11528Members, Constellation
    <!--quoteo(post=1666173:date=Jan 3 2008, 01:59 PM:name=Domining)--><div class='quotetop'>QUOTE(Domining @ Jan 3 2008, 01:59 PM) <a href="index.php?act=findpost&pid=1666173"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->AI pathfinding would be implemented regardless of whether this feature gets the cut or not. Weldbots are AI controlled units.<!--QuoteEnd--></div><!--QuoteEEnd-->
    True, if weldbots make it in the final game then automatic pathfinding waypoints such as suggested wouldn't take much more work and would be pretty nifty. That's a pretty big if though because if there's any reason the weldbots wouldn't make the cut, it would be because the pathfinding sucks.
    <!--quoteo(post=1666231:date=Jan 3 2008, 10:37 PM:name=Harimau)--><div class='quotetop'>QUOTE(Harimau @ Jan 3 2008, 10:37 PM) <a href="index.php?act=findpost&pid=1666231"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->There should be an option player-side to turn off dynamic waypoints at will, to replace it with the current 'final destination' waypoint system.
    Plus I assume dyn waypoints would only show 1 or 2 waypoints at a time - the 'next' waypoint, and the 'final' waypoint.<!--QuoteEnd--></div><!--QuoteEEnd-->
    I agree, that way, if a marine skips a couple/all but the last WP they would just clear. I would make it the 'closest' and final waypoints instead of the 'next' waypoint though.
  • HarimauHarimau Join Date: 2007-12-24 Member: 63250Members
    <!--quoteo(post=1666287:date=Jan 5 2008, 01:46 AM:name=locallyunscene)--><div class='quotetop'>QUOTE(locallyunscene @ Jan 5 2008, 01:46 AM) <a href="index.php?act=findpost&pid=1666287"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->True, if weldbots make it in the final game then automatic pathfinding waypoints such as suggested wouldn't take much more work and would be pretty nifty. That's a pretty big if though because if there's any reason the weldbots wouldn't make the cut, it would be because the pathfinding sucks.<!--QuoteEnd--></div><!--QuoteEEnd-->
    Good point.

    <!--quoteo(post=1666287:date=Jan 5 2008, 01:46 AM:name=locallyunscene)--><div class='quotetop'>QUOTE(locallyunscene @ Jan 5 2008, 01:46 AM) <a href="index.php?act=findpost&pid=1666287"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I agree, that way, if a marine skips a couple/all but the last WP they would just clear. I would make it the 'closest' and final waypoints instead of the 'next' waypoint though.<!--QuoteEnd--></div><!--QuoteEEnd-->
    Fine. The 'next' waypoint, relative to the 'closest', given that the 'closest' is 'behind' you. <img src="style_emoticons/<#EMO_DIR#>/tounge.gif" style="vertical-align:middle" emoid=":p" border="0" alt="tounge.gif" /> (elsewise, the 'closest' and 'next' are one and the same.)
    Thing is, you don't want to be back-tracking, even a little (to the 'closest' waypoint, rather than the 'next' one).
    So it's like, you don't <b>have</b> to follow these waypoints, but when you need them, they're there, and they're efficient.
  • schkorpioschkorpio I can mspaint Join Date: 2003-05-23 Member: 16635Members
    i can't find any screens but, that old Swat 3 game had a good system. It basically drew a line along the floor from where you were to where you needed to go (and was usually smart enough to pic the fastest route)
  • HarimauHarimau Join Date: 2007-12-24 Member: 63250Members
    edited January 2008
    that sounds great, any dynamic waypoint system sounds great,
    but the problem is NS itself, (or perhaps any close-quarters fps)
    you've got vents, you've got multiple floors/stories, you've got ladders, and boxes, and other obstacles and props. You've got 3D.
  • c0kec0ke Join Date: 2004-07-02 Member: 29676Members
    yes and door and stuff
    NS is not 2d so it could be harder than expected to make such a system and weldbots. if the weldbots are totally standalone
  • HarimauHarimau Join Date: 2007-12-24 Member: 63250Members
    but with weldbots, you could forego the pathfinding and just give it each movement order manually (including strung-together waypoints). dynamic waypoints won't benefit at all from that.
    or you might take 'control' of the weldbot, ie. it isn't so much an autonomous robot given an order, as an advanced remote-controlled welding machine
Sign In or Register to comment.