OpenXcom Forum
Modding => OpenXcom Extended => OXCE Support => Topic started by: Osobist on March 29, 2023, 11:42:50 am
-
Hello, I've encountered a problem during ammo modding. I'm trying to make separate attack distances for various ammo of same weapon. StatsForNerds show that such attributes allowed to specify for items with battleType = 2. But despite different stats specified in ruleset the accuracy displayed for both ammo types during aiming is same.
Is it okay? Cause it would be confusing situation for player which I'd like to avoid.
Ammo and weapon ruleset snippets are below:
- type: STR_JUDGE
battleType: 1
accuracyAimed: 75 #85
accuracySnap: 60 #65
accuracyAuto: 40 #35
accuracyMelee: 75
accuracyCloseQuarters: 120 #100
kneelBonus: 105
accuracyMultiplier:
firing: [0.0, 0.002]
reactions: 0.3
flatHundred: 0.55
- type: STR_JUDGE_DRUM
battleType: 2
sprayWaypoints: 3
maxRange: 5 #26
aimRange: 4 #20
snapRange: 3 #16
autoRange: 2 #10
dropoff: 50 #2
powerRangeThreshold: 5
powerRangeReduction: 50
confAuto:
name: STR_SLAMFIRE
shots: 5
- type: STR_JUDGE_DRUM_BS
battleType: 2
shotgunPellets: 5
shotgunBehavior: 1
shotgunSpread: 25
maxRange: 16
aimRange: 14
snapRange: 10
autoRange: 7
dropoff: 4
powerRangeThreshold: 18
powerRangeReduction: 4
confAuto:
name: STR_DOUBLE_TAP
shots: 2
-
I assume you mean maxRange and aimRange, not maxDistance and aimDistance.
If yes, those attributes can only be used on a weapon, not on ammo.
PS: StatsForNerds always show all attributes for all kinds of items, they don't say if such combination makes sense or not.
-
Yeah, right.
Thanks for clarification.
-
I assume you mean maxRange and aimRange, not maxDistance and aimDistance.
If yes, those attributes can only be used on a weapon, not on ammo.
PS: StatsForNerds always show all attributes for all kinds of items, they don't say if such combination makes sense or not.
I wonder if those attributes are configurable per shot type. E.g. confAim, confAuto, confSnap?
-
maxRange is only per weapon
aimRange, snapRange, autoRange is only per respective shot type (which is indistinguishable from per weapon)