You must be logged in to post messages.
Please login or register

Mod Design and Discussion
Moderated by Mr Wednesday, John the Late

Hop to:    
Welcome! You are not logged in. Please Login or Register.7 replies
Age of Kings Heaven » Forums » Mod Design and Discussion » Genie editor: how to make missed shots do full damage?
Bottom
Topic Subject:Genie editor: how to make missed shots do full damage?
particlemare
Squire
posted 07-16-19 09:04 PM CT (US)         
Hello,

I'm trying to create a unit that functions like a machine gun for a WW1 mod. The idea is to have it fire its bullets in randomly in a cone and to do full damage to any unit it hits.

I tried setting the unit's accuracy to zero and attack dispersion to 0.25. It works as intended except for the fact that, by default, "missed" shots only do half damage.

I also tried giving the unit a very small blast width -- since splash always does full damage on direct hits. Unfortunately it seems like the accuracy value determines how often the splash actually goes off, so a zero accuracy unit is basically incapable of doing damage.

Any idea how to work around this problem?

Thanks.
AuthorReplies:
Dave3377
Squire
posted 07-17-19 01:46 PM CT (US)     1 / 7       
Why not just double the damage?
particlemare
Squire
posted 07-17-19 06:17 PM CT (US)     2 / 7       
That makes it do double the intended damage to the unit it's actually targeting, which would make it far too strong against single targets.
Dave3377
Squire
posted 07-18-19 01:33 PM CT (US)     3 / 7       
Ah! My assumption was that with 0 accuracy it would never hit the targeted unit. Is that not the case?
particlemare
Squire
posted 07-18-19 06:03 PM CT (US)     4 / 7       
It's still possible for it to hit the unit its trying to attack, in which case it does full damage, yes.

Zero accuracy just means its shots are completely randomly distributed in its cone of fire. It can still "accidentally" fire a bullet straight down the middle and hit the target.
WAIFor
Squire
posted 07-19-19 09:22 AM CT (US)     5 / 7       
Secondary projectiles? Or use petard-like dead unit for projectiles? However I did know that projectiles wouldn't create dead units when they missed.
particlemare
Squire
posted 07-20-19 08:40 AM CT (US)     6 / 7       
I tried using secondary projectiles, like this with the organ gun:

https://puu.sh/DV9ZM/14a32d2741.png

However they seem to have the same problem as the blast width mechanic--they don't do damage if they "miss".

Could you explain how using dead units would work?

[This message has been edited by particlemare (edited 07-20-2019 @ 08:41 AM).]

Sebastien
Dark Samurai
posted 07-20-19 10:04 AM CT (US)     7 / 7       
Yes, the projectile method with dead unit works though might not be exactly what you want.

There was a post about it not so long ago.

http://aok.heavengames.com/cgi-bin/forums/display.cgi?action=ct&f=9,44728,50,all

[This message has been edited by Sebastien (edited 07-20-2019 @ 10:04 AM).]

You must be logged in to post messages.
Please login or register

Hop to:    

Age of Kings Heaven | HeavenGames