Chance to hit (accuracy) - does not sense in 3.1 (?)

The place to discuss balance changes for future versions of the game.
(Master releases & 3.X)
iap
Trained
Trained
Posts: 244
Joined: 26 Sep 2009, 16:08

Re: Chance to hit (accuracy) - does not sense in 3.1 (?)

Post by iap »

Hi, sorry to burst in like this, but why not calculating the exact ballistic targeting, and then just add some randomness to the initial angle and power?

Having my units "run away" from a long distance artillery shot directly to their location is best! Seeing an enemy unit maneuver itself out of the targeted hitting place of my artillery of my weapons looks good too. That's the reason I always build artillery in masses.

As for direct weapons - angle variation should do the trick. Hi, slight angle change give small distance near by and large distance from far away - so there is no need for short and long distance difference.
I personally don't mind small units like cyborgs being harder to direct hit, after all, all the long distance weapons have a splash radius.
User avatar
effigy
Regular
Regular
Posts: 1217
Joined: 22 Jan 2010, 03:21

Re: Chance to hit (accuracy) - does not sense in 3.1 (?)

Post by effigy »

Per wrote:My personal opinion is that accuracy and misses are unnecessary. Just make everything hit and watch a whole category of quite hard issues go up in smoke. Then we can have fun playing the game instead.
It's hard to say if this would negatively impact the game long term, but would need to come with a major rebalance, imo.
This is why some features aren't implemented: http://forums.wz2100.net/viewtopic.php?f=30&t=7490&view=unread#p87241
User avatar
bendib
Regular
Regular
Posts: 1016
Joined: 29 Aug 2010, 05:22
Location: Imeuta

Re: Chance to hit (accuracy) - does not sense in 3.1 (?)

Post by bendib »

Accuracy should depend on distance, as an absolute.
Also known as Subsentient.
User avatar
Emdek
Regular
Regular
Posts: 1329
Joined: 24 Jan 2010, 13:14
Location: Poland

Re: Chance to hit (accuracy) - does not sense in 3.1 (?)

Post by Emdek »

bendib, for me it should depend on experience too (only a bit, but more experienced units in real world usually target better ;-)).
Nadszedł już czas, najwyższy czas, nienawiść zniszczyć w sobie.
The time has come, the high time, to destroy hatred in oneself.


Beware! Mad Qt Evangelist.
User avatar
effigy
Regular
Regular
Posts: 1217
Joined: 22 Jan 2010, 03:21

Re: Chance to hit (accuracy) - does not sense in 3.1 (?)

Post by effigy »

I think increased rank giving better accuracy is suppose to be reward for keeping that unit alive.
This is why some features aren't implemented: http://forums.wz2100.net/viewtopic.php?f=30&t=7490&view=unread#p87241
User avatar
aubergine
Professional
Professional
Posts: 3462
Joined: 10 Oct 2010, 00:58

Re: Chance to hit (accuracy) - does not sense in 3.1 (?)

Post by aubergine »

Per wrote:My personal opinion is that accuracy and misses are unnecessary. Just make everything hit and watch a whole category of quite hard issues go up in smoke. Then we can have fun playing the game instead.
If weapons hit all the time, the game becomes too mechanical. It's a warzone, not a fairground "shooting ducks" game (and even there you miss some of the time).

I think misses should be dealt with in as simple a manner as possible for performance reasons (if it missies, I don't really care by how much) but should not be removed from the game.
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
iap
Trained
Trained
Posts: 244
Joined: 26 Sep 2009, 16:08

Re: Chance to hit (accuracy) - does not sense in 3.1 (?)

Post by iap »

Emdek wrote:bendib, for me it should depend on experience too (only a bit, but more experienced units in real world usually target better ;-)).
Fully agree (except that I think it should be more then a bit)
User avatar
Emdek
Regular
Regular
Posts: 1329
Joined: 24 Jan 2010, 13:14
Location: Poland

Re: Chance to hit (accuracy) - does not sense in 3.1 (?)

Post by Emdek »

This part is relative, we could get a poll for how big it should be alone. ;-)
Nadszedł już czas, najwyższy czas, nienawiść zniszczyć w sobie.
The time has come, the high time, to destroy hatred in oneself.


Beware! Mad Qt Evangelist.
Jorzi
Regular
Regular
Posts: 2063
Joined: 11 Apr 2010, 00:14

Re: Chance to hit (accuracy) - does not sense in 3.1 (?)

Post by Jorzi »

aubergine wrote:I think misses should be dealt with in as simple a manner as possible for performance reasons (if it missies, I don't really care by how much) but should not be removed from the game.
I partly agree, but this is not the case for artillery though, you want to have a certain accuracy-dependent spread.
ImageImage
-insert deep philosophical statement here-
Reg312
Regular
Regular
Posts: 681
Joined: 25 Mar 2011, 18:36

Re: Chance to hit (accuracy) - does not sense in 3.1 (?)

Post by Reg312 »

found following code for missed shots in combat.cpp:

Code: Select all

      int missDist = 2 * (100 - resultHitChance) + minOffset;
		Vector3i miss = Vector3i(iSinCosR(gameRand(DEG(360)), missDist), 0);
		predict += miss
this code means: radius of missed shots depends on chance to hit? :shock:
just saw code in debug, seems it works as i expected, but i did not check it deeper

for weapon with 75% hit chance all missed shots will go to area with 55 radius near target (its lesser than 1/2 of tile)

may be i'm very wrong? i dont know
i'm not good with mathematical stuff

e.g. machinegun have 50% chance to hit => we will get missed shot in radious of 105 points to center of target? its lesser than 1 tile (tile = 128 points)

so for most weapons we have only 1/2 tile radius of missed shots and this means 100% accuracy for most weapons?? hm

[upd]
seems thing with missed shot radius depending on hit chance was in all old versions,
this still does not explain why units became more accurate in 3.1/master
Last edited by Reg312 on 23 Apr 2012, 23:59, edited 2 times in total.
User avatar
Giani
Regular
Regular
Posts: 804
Joined: 23 Aug 2011, 22:42
Location: Argentina

Re: Chance to hit (accuracy) - does not sense in 3.1 (?)

Post by Giani »

That would explain why researching acuracy for artillery doesn't change anything.
My maps: http://forums.wz2100.net/viewtopic.php?f=10&t=9501
Reg312
Regular
Regular
Posts: 681
Joined: 25 Mar 2011, 18:36

Re: Chance to hit (accuracy) - does not sense in 3.1 (?)

Post by Reg312 »

i hope Cyr or Per can say what i'm wrong or explain why chance to hit target also defines radius of missed shots

i still dont understand what was done with accuracy in 3.1, i want get it
User avatar
Giani
Regular
Regular
Posts: 804
Joined: 23 Aug 2011, 22:42
Location: Argentina

Re: Chance to hit (accuracy) - does not sense in 3.1 (?)

Post by Giani »

Reg312 wrote:i hope Cyr or Per can say what i'm wrong or explain why chance to hit target also defines radius of missed shots

i still dont understand what was done with accuracy in 3.1, i want get it
Bug maybe? :hmm:
My maps: http://forums.wz2100.net/viewtopic.php?f=10&t=9501
User avatar
Giani
Regular
Regular
Posts: 804
Joined: 23 Aug 2011, 22:42
Location: Argentina

Re: Chance to hit (accuracy) - does not sense in 3.1 (?)

Post by Giani »

bendib wrote:Accuracy should depend on distance, as an absolute.
Emdek wrote:bendib, for me it should depend on experience too (only a bit, but more experienced units in real world usually target better ;-)).
I agree whit both. And about distance if it is very close(1-6 tiles) and VERY far it should miss 3/7 of shots IMO.
My maps: http://forums.wz2100.net/viewtopic.php?f=10&t=9501
iap
Trained
Trained
Posts: 244
Joined: 26 Sep 2009, 16:08

Re: Chance to hit (accuracy) - does not sense in 3.1 (?)

Post by iap »

Giani wrote:That would explain why researching acuracy for artillery doesn't change anything.
What? This is not the only thing that doesn't change, or is it? :augh:

Damn, researching upgrade is like pseudo pill …