Go Back   Angband Forums > Angband > Development

Thread Tools Display Modes
Old October 30, 2016, 03:47   #1
Pete Mack
Join Date: Apr 2007
Location: Seattle, WA
Posts: 6,630
Donated: $40
Pete Mack is on a distinguished road
Movement code changes

Decided to tweak movement code per Eddie's request to allow ranked moves of monsters obstructing the path of others. Will probably get rid of asymmetric LOS too. Other tweak is to fix movement of monsters (including particularly PASS_WALL and KILL_WALL) around permawall vaults.

Q: Should I combine both efforts? This would make Maeglin and Morgoth significantly more dangerous as they would get out of the way of summons by creating more space (a la Cyberdemon)
Pete Mack is offline   Reply With Quote
Old October 30, 2016, 04:55   #2
Vanilla maintainer
Nick's Avatar
Join Date: Apr 2007
Location: Canberra, Australia
Age: 56
Posts: 9,227
Donated: $60
Nick will become famous soon enoughNick will become famous soon enough
I had planned to improve monster pathfinding generally.

I'd combine movement changes, but maybe keep LOS separate - I think there's still a range of opinions on that
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Old October 30, 2016, 05:34   #3
Pete Mack
Join Date: Apr 2007
Location: Seattle, WA
Posts: 6,630
Donated: $40
Pete Mack is on a distinguished road
Sorry, wasn't clear. What I meant is should Morgoth kill wall to get out of the way of other strong monsters (but still stay adjacent to the player.) It's a given that ghosts should move in to walls by preference to get out of the way.
It's a rare opportunity to write recursive angband code, so it's fun stuff.

Sauron really shouldn't get hung up behind a mushroom patch or small kobold.
Pete Mack is offline   Reply With Quote
Old October 30, 2016, 06:06   #4
Derakon's Avatar
Join Date: Dec 2009
Posts: 9,024
Derakon is on a distinguished road
Hmm. My kneejerk suggestion is that Morgoth should prioritize a) having LOS on the player, but failing that b) making movement decisions that go through walls in preference to going through open space. So if he has two directions he can move in that both take him equally closer to the player, neither of which have LOS on the player, and one of which is through a wall, then he should eat the wall.

Conversely, if he has two movement options, both of which take him equally closer, but one gains LOS while the other doesn't, then he should enter LOS. That would fix the "trick shot" exploit that lets you kill Morgoth without him ever getting a chance to respond to your attacks.
Derakon is offline   Reply With Quote
Old October 30, 2016, 11:17   #5
Join Date: Apr 2008
Location: Germany
Posts: 1,983
Estie is on a distinguished road
A "better" ai does not necessarily lead to better gameplay. The ability to hit M without him getting LOS, for example, enables something like the tome sorcerer class to win the game. In Vanilla, there is no such thing, everyone can get 1-hit proof. But if if anyone considers Vanilla combat boring because its just a trade of blows interrupted by healing when necessary, a measure like the suggested movement change to M makes sure that this stays that way.

Instead of shutting down "abusive" gameplay, I think it would be more profitable to build the game around that kind of play. It doesnt matter if M appears to be clever or not - what matters is how many different ways of dealing with him the player has.
Estie is offline   Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Movement modes Antoine Development 20 September 26, 2015 06:45
Interface: Diagonal movement lagi Sil 5 November 18, 2014 00:54
Movement Delay Bug [3.3.1] AltF4 Vanilla 13 April 29, 2012 06:20
Armor encumbering movement Donald Jonker Vanilla 1 January 24, 2009 05:44
Smarter Movement ... please have a look TJA Vanilla 0 August 21, 2007 17:14

All times are GMT +1. The time now is 03:05.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.