Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old October 30, 2016, 02:47   #1
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 4,166
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, 03:55   #2
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 52
Posts: 6,578
Donated: $60
Nick is on a distinguished road
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 Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.
Nick is offline   Reply With Quote
Old October 30, 2016, 04:34   #3
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 4,166
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.
Edit:
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, 05:06   #4
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 7,952
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, 10:17   #5
Estie
Veteran
 
Join Date: Apr 2008
Location: Germany
Posts: 1,414
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
Reply


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 05:45
Interface: Diagonal movement lagi Sil 5 November 17, 2014 23:54
Movement Delay Bug [3.3.1] AltF4 Vanilla 13 April 29, 2012 05:20
Armor encumbering movement Donald Jonker Vanilla 1 January 24, 2009 04:44
Smarter Movement ... please have a look TJA Vanilla 0 August 21, 2007 16:14


All times are GMT +1. The time now is 06:51.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.