wowgetoffyourcellphone Posted December 20, 2015 Report Share Posted December 20, 2015 (edited) The game only need 3 stance to select for players:Stand GroundOnly respond to melee attacks directed at them. They will not respond to ranged attackDoes not automatically attack anything within vision range, unless being attacked by melee enemyDoes not chase enemies at all, unless player targets the unit to chase (then the unit switch to defensive)DefensiveAutomatically attack enemy who come within 25% of vision rangeOnly chase enemy target to outside of 50% vision range, then stop chaseAggressiveAttack all enemy who comewithin 75% of vision rangeOnly Chase enemy target to 100% (edge) of vision range, then stop chaseAll other behavior and stance can be hidden (like Avoid, etc., which are default behavior of some unit).The current behaviors of Defensive and Aggressive cause bad gameplay behavior. It is also useless to choose btween Violent and Aggressive, so I want to get rid of Violent. Passicve is useless when you can choose Stand Ground instead. Defensive just act weird, and Aggressive is too aggressive by attacking and chasing enemy within 100% of vision. I think my changes will make unit easier to control in a battle or in generral.So, does anyone know the step to take to make this reality? Edited December 20, 2015 by wowgetoffyourcellphone Quote Link to comment Share on other sites More sharing options...
dvangennip Posted December 20, 2015 Report Share Posted December 20, 2015 I know most of the behaviour is defined in UnitAI, so that would be my first step to check out (unless things have changed over the past year or so). The other change would relate to the GUI, so only three options are shown. I guess it suffices to simply omit two of the current five stances.Finally, there may be changes necessary to unit templates as those templates may set a default. If the name/string doesn't match, that may cause trouble of course. Quote Link to comment Share on other sites More sharing options...
sanderd17 Posted December 20, 2015 Report Share Posted December 20, 2015 The rules you propose with different distances will be very computation intensive. It means instead of one distance, the range manager will have to test for 4 distances. So effectively causing 4 times as many calculations. Of course it would be possible to optimise this in some ways (as the circle distances are concentric, so if it's in the innermost distance, it's in all distances), but this would need code changes to the engine (which can't be done by mods).Changing the stance GUI, up to setting the stances in UnitAI indeed isn't that hard. but then stances are used all-over in UnitAI, which means you'd have to modify a lot of functions if you really want to change how stance work. Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted December 24, 2015 Author Report Share Posted December 24, 2015 The rules you propose with different distances will be very computation intensive.AOK and AOM are similar stances to my propose. You tell me they can do it in the year 2000 but we can't do it now? 1 Quote Link to comment Share on other sites More sharing options...
sanderd17 Posted December 24, 2015 Report Share Posted December 24, 2015 AOK and AOM are similar stances to my propose. You tell me they can do it in the year 2000 but we can't do it now?You didn't read my post, did you?Of course it would be possible to optimise this [ ... ] but this would need code changes to the engine (which can't be done by mods). 3 Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted December 26, 2015 Author Report Share Posted December 26, 2015 (edited) I am sorry Sanders, yout first post make me seem like you say it was difficult or the optimizations would still make it expensive.I think such ranges can be optimize further if game have battalion since whole battalion (multiple soldiers) can have 1 range, but maybe there are other range calculation I am not thinking of as well that battaltions would not help optimize. Edited December 26, 2015 by wowgetoffyourcellphone Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.