Page 1 of 1

U7 Combat system

Posted: Tue Dec 30, 2014 6:27 pm
by agentorangeguy
I've got a few questions about the combat system. Which files run the combat system? If hard coded, how could it be decompiled to tweak it a little? Ranged combat is non existent right now because after an initial shot it's all a close range cluster mess. Someone had talked to me before about doing a overhaul of the combat system, making it turn based as in the u6 original. Seeing that there is paused combat, it almost seems possible.

so, which files would point to combat AI? How hard of a fix would it be to make combat function as it should, or maybe even better? Where would I start looking?

Re: U7 Combat system

Posted: Tue Dec 30, 2014 9:55 pm
by Dominus
Seems everything is in combat.cc, combat.h and combat_opts.h

Re: U7 Combat system

Posted: Wed Dec 31, 2014 1:59 pm
by agentorangeguy
I think much of the combat issues seem to happen with people rushing the Avatar rather than the party. I experimented with 2 eggs, 1 egg of goblins and 1 egg of rangers. the rangers would attack the goblins intelligently with their bows, keeping distance (staying put rather than rushing in). Now, when I'd run in without an invisibility ring, the goblins would rush me for the most part rather than attacking at a range. Some goblins did stay at a range and attack other party members. Not sure why, but almost seemed like goblins set to "Random" were more likely to get all up in my face rather than attack from a distance.

Has anyone else done any combat testing? Would be interesting to hear anyone else's finds