Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upUpdate aiming [RDY] #17962
Conversation
mugling
force-pushed the
mugling:arc3
branch
3 times, most recently
Aug 7, 2016
This comment has been minimized.
This comment has been minimized.
|
Effectively this PR leaves engagement::effective_min50% chance of good hit with no aiming
engagement::effective_max50% chance of good hit at maximum aim
Further combinations could be tested by updating |
This comment has been minimized.
This comment has been minimized.
Rebalancing them around 8 instead of 12 only makes the characters blander: lowering dexterity and perception is now even more punishing than before. It should be rebalanced around high numbers (14, 16 or 20) or removed completely. |
This comment has been minimized.
This comment has been minimized.
|
@Coolthulhu the penalty remains unchagned at σ=15 per level so low Whats changed is that The current check also ensures that
The main priority for this PR is the graphing component and the changes to aiming so I'm not averse to dropping stat penalty altogether and coming back to it later if you are otherwise happy with the PR. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
While 12 wasn't perfect, since it resulted in a threshold, it offered some sort of a direction. Now you removed both aiming speed adjustment from stats and dispersion modifier from stats.
|
mugling
force-pushed the
mugling:arc3
branch
Aug 8, 2016
This comment has been minimized.
This comment has been minimized.
Lets go with removal then as that was my only reason for wanting to retain it. We can devise some better effects from stats in a later PR - possibly |
mugling
force-pushed the
mugling:arc3
branch
to
ba7bf97
Aug 8, 2016
This comment has been minimized.
This comment has been minimized.
|
Taking out an entire stat is a major change. I'd be fine with making dexterity not have much of a role in ranged combat, since it is already good enough in melee, but perception was nearly a dump stat even with the impact on ranged combat. This is not a thing that can wait for a later PR. I see the following options:
|
mugling
force-pushed the
mugling:arc3
branch
to
15196c4
Aug 8, 2016
This comment has been minimized.
This comment has been minimized.
Whether or not |
This comment has been minimized.
This comment has been minimized.
Does that mean perception affects NV in master? |
mugling
added some commits
Aug 8, 2016
mugling
changed the title
Update aiming
Update aiming [RDY]
Aug 11, 2016
mugling
added some commits
Aug 11, 2016
cainiaowu
reviewed
Aug 11, 2016
| info.emplace_back( "GUN", space + _( "Maximum range: " ), "<num>", abs_max ); | ||
| int aim_mv = g->u.gun_engagement_moves( *mod ); | ||
| if( aim_mv > 0 ) { | ||
| info.emplace_back( "GUN", _( "Maximum aiming time: " ), "<num> seconds", int( aim_mv / 16.67 ), true, "", true, true ); |
This comment has been minimized.
This comment has been minimized.
cainiaowu
Aug 11, 2016
Contributor
Why time instead of moves? will melee weapon also change to time?
This comment has been minimized.
This comment has been minimized.
mugling
Aug 11, 2016
Author
Contributor
Why time instead of moves?
It's far more intuitive than moves and isn't later broken if we adjust moves/turn (which has been previously discussed). Lots of other code expresses time as opposed to moves/turns for this reason.
will melee weapon also change to time?
Not as of this PR. Those values are typically of the same magnitude making comparison easier.
cainiaowu
reviewed
Aug 11, 2016
| info.push_back( iteminfo( "GUNMOD", _( "Aim speed: " ), "", | ||
| mod->aim_speed, true, "", true, true ) ); | ||
| if( mod->aim_cost > 0 ) { | ||
| info.push_back( iteminfo( "GUNMOD", _( "Aim cost: " ), "", |
This comment has been minimized.
This comment has been minimized.
cainiaowu
Aug 11, 2016
Contributor
Need to add some comment for translator to understand this concept.
This comment has been minimized.
This comment has been minimized.
mugling
Aug 11, 2016
Author
Contributor
The whole of that section can be tagged once this series of PR's is done. Those names may chance in subsequent PR's and I don't want to create needless work for translators.
This comment has been minimized.
This comment has been minimized.
|
@Coolthulhu can we have a go at merge testing this. I have more code to commit but there is too work here to justify a further dependent branch |
This comment has been minimized.
This comment has been minimized.
|
Also fixes #14938 |
This comment has been minimized.
This comment has been minimized.
|
Additionally fixes #14928 |
mugling
added
the
Game: Mechanics Change
label
Aug 11, 2016
Coolthulhu
self-assigned this
Aug 12, 2016
This comment has been minimized.
This comment has been minimized.
|
Not sure if caused here, but I can't aim at friends. Also, aiming at a non-friend monster then aiming at a friend causes a segfault. |
This comment has been minimized.
This comment has been minimized.
|
In character creation, perception doesn't have any mechanical advantages listed. If it affects sight dispersion, it should say so there, since it doesn't seem to say it anywhere else. |
This comment has been minimized.
This comment has been minimized.
Existing bug |
This comment has been minimized.
This comment has been minimized.
It has doxygen comments via |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
Have updated everything else |
This comment has been minimized.
This comment has been minimized.
Actually I might update chargen for all stats as a separate PR using the doxygen comments as a reference |
Coolthulhu
merged commit 33af50e
into
CleverRaven:master
Aug 12, 2016
This comment has been minimized.
This comment has been minimized.
|
I tested it, but as a significant mechanical change it still may have some problems, so look out for reports. |
This comment has been minimized.
This comment has been minimized.
|
Cross posts are appreciated but I have as of recent begun to skim for the recent posts section |
mugling commentedAug 7, 2016
•
edited
Overview
Subset of #17712 that provides:
player::gun_engagement_rangeThe below is produced using the R graphing script:
S1definition for a survivor (all stats 8, all skills 4) wearing light survivor gloves + mask.9mm,223and270)accuracy_goodhitInitial status
a rifle scope reaches full aim after 2 turns and gains you only a single extra tile
a highly accurate rifle (σ=30) and an inaccurate pistol have (σ=380) differ by only two tiles
rifle with scope is only 50% better than pistol and both are useless apart from at point-blank range
Increase effect of aiming
MIN_RECOILto 600 results in a proportional increase in aiming timeeg. turns required to achieve maximum aim with
ar_15increases by 450% from 1 to 4aim_speedis irrelevantglock_19has half theaim_speed(4) ofar15(8) but their curves are identicalAim speed differs by weapon
aim_speedhas only trivial effect inCharacter::aim_per_time. The following implementation is both simpler and produces much better results.JSONchanges (probably rescalingaim_speed)Increase effect of weapon stats
from nil to maximum skill is Δσ=600, whereas from a pistol to a rifle is typically Δσ=300.
markmanshiphas too little effectonly 25% of player dispersion results from
marksmanshipConsidering few players will reach
marksmanship 10and even fewer will max out a ranged skill we need to reduce the effect whilst still granting a bonus for each successive level. The following works well reducing both the overall effect and makingmarksmanshiptwice as important as weapon skill:Drop excessive penalty from stats
ranged_dex_mod()andranged_per_mod()were implemented when character generation encouraged Min-Maxing and most characters had stats of 12Summary