screab Posted September 15, 2017 Report Share Posted September 15, 2017 Hello, After I successfully modified some units and structures to produce those units I now want to create an archer that will switch to melee weapons when in close proximity to an enemy unit. I find it more realistic for an archer to be able to draw a knife/sword and defend himself instead of shooting 20 arrows at a guy sitting right in front of him. I tried adding the Melee settings under the attack tag for an archer but when he uses the melee attack he looks like standing still. If I add the Ranged settings under the attack tag for a swordsman I get an error about not being able to load the entity because it has extra tag in attack ( basically it tells me I should remove the Melee tag ). My question is how can I create such an unit ? I believe I have to copy something from the motions and arts of both basic units ( swordsman and archer ) but where and what should I modify ? Thanks for you help 1 Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted September 15, 2017 Report Share Posted September 15, 2017 You need wait to ticket related to switching attack range/melee Quote Link to comment Share on other sites More sharing options...
Stan` Posted September 15, 2017 Report Share Posted September 15, 2017 @bb_ was working on that maybe you could join efforts. Quote Link to comment Share on other sites More sharing options...
rolf.sievers Posted September 15, 2017 Report Share Posted September 15, 2017 Here is the ticket everyone is talking about: https://trac.wildfiregames.com/ticket/252 Quote Link to comment Share on other sites More sharing options...
av93 Posted September 15, 2017 Report Share Posted September 15, 2017 It wasn't implemented cause the dev teams didn't agree in how implement it? The dps didn't have sense for me. Maybe in ranged mode I do less damage, but I'm safe. I click to attack and then the ranged unit goes into melee mode but gets killed by a jav mass, defenses, etc. Why the work stopped @bb_? Quote Link to comment Share on other sites More sharing options...
screab Posted September 15, 2017 Author Report Share Posted September 15, 2017 As I see it, some units already can use ranged and melee attack. I don't understand why I can't specify some sort of actor/visual motion for each type of attack. Quote Link to comment Share on other sites More sharing options...
bb_ Posted September 15, 2017 Report Share Posted September 15, 2017 the The work hasn't stopped entirely. The patches in the ticket have indeed been decided to be too limited (not that we didn't agree on that though), so I have written a patch (with dps system) that allows N attack-types. But since that patch is too big to drag through the review process at once, so currently a small part is up for review: https://code.wildfiregames.com/D757. In current svn one can indeed set multiple attack (max 4 in total: slaughter, capture, melee, ranged) types in the template. And actually you already can set different animations in the unit actor. 1 Quote Link to comment Share on other sites More sharing options...
av93 Posted September 15, 2017 Report Share Posted September 15, 2017 Thank you! Consider my proposal, a decision based on DPS could drag units into automatic undesirable luring. Quote Link to comment Share on other sites More sharing options...
bb_ Posted September 15, 2017 Report Share Posted September 15, 2017 That is indeed true, and I fixed that by doing dps/(distance^2-range^2) iirc, and some other code around that when inside the min range or outside the max range. 3 Quote Link to comment Share on other sites More sharing options...
mapkoc Posted September 15, 2017 Report Share Posted September 15, 2017 Check Delenda East. Maidens switch back and forth from archer to sword by paying a small fee with button 1 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.