Hello and fist of all, thanks for this amazing mod and your hard work to keeping it up.
My question is, I have installed some custom weapons and i was trying to change the stats to match the LW2 base ones; i pretty much figure out what numbers to change regarding the damage, clip size etc. but I'm a bit confuse regarding the Range of the Weapon part, because it seems a lot different from the one in the LW2 ini; here is an example from a shotgun:
; Primary Weapon Values (_CV) --- CONVENTIONAL
;=======================================================================================
MILL870S_BASEDAMAGE_CV= (Damage=5, Spread=2, PlusOne=0, Crit=3, Pierce=0, Shred=0, Tag="", DamageType="Projectile_Conventional")
MILL870S_CRITCHANCE_CV = 15
MILL870S_AIM_CV = 0
MILL870S_ICLIPSIZE_CV = 4
MILL870S_ISOUNDRANGE_CV = 30
MILL870S_IENVIRONMENTDAMAGE_CV = 1
MILL870S_IUPGRADESLOTS_CV = 3
;Range of the Weapon
MILL870S_RANGE_CV[0]=0
MILL870S_RANGE_CV[1]=40
MILL870S_RANGE_CV[2]=35
MILL870S_RANGE_CV[3]=32
MILL870S_RANGE_CV[4]=28
MILL870S_RANGE_CV[5]=23
MILL870S_RANGE_CV[6]=19
MILL870S_RANGE_CV[7]=16
MILL870S_RANGE_CV[8]=12
MILL870S_RANGE_CV[9]=6
MILL870S_RANGE_CV[10]=2
MILL870S_RANGE_CV[11]=0
MILL870S_RANGE_CV[12]=-2
MILL870S_RANGE_CV[13]=-4
MILL870S_RANGE_CV[14]=-7
MILL870S_RANGE_CV[15]=-10
MILL870S_RANGE_CV[16]=-12
MILL870S_RANGE_CV[17]=-15
MILL870S_RANGE_CV[18]=-17
MILL870S_RANGE_CV[19]=-18
MILL870S_RANGE_CV[20]=-18
MILL870S_RANGE_CV[21]=-19
MILL870S_RANGE_CV[22]=-19
MILL870S_RANGE_CV[23]=-21
MILL870S_RANGE_CV[24]=-25
MILL870S_RANGE_CV[25]=-30
Can i keep the original ones or do i need to change something to balance them? Also one last thing, about the detection radius, is it only the smg that need changes (i believe is SMG_CONVENTIONAL_DETECTIONRADIUSMODIFER = 0.2f) or other weapons too?
Thanks in advance and keep up the good work
LW2 stats on custom weapons
-
- Posts: 3
- Joined: Sat Jan 21, 2017 10:33 am
Re: LW2 stats on custom weapons
The range part gives you the aim bonus or malus depending on the distance between your soldier and his target.
In your example, this means that at 1 tile, you have a 40 aim bonus, at 2 tiles your bonus is 35, and so on.
In your example, this means that at 1 tile, you have a 40 aim bonus, at 2 tiles your bonus is 35, and so on.
Re: LW2 stats on custom weapons
Do you happen to know which are the range stats for LW2 base weapons?
-
- Posts: 2
- Joined: Tue Mar 07, 2017 6:45 am
Re: LW2 stats on custom weapons
I'm interested in this too - I believe the ranges can simply be copied from the XComGameData_WeaponData.ini
There seem to be a range per weapon: ARs (medium), SMGs (medium-short), shotguns (short), snipers (long), and a custom one for LMGs.
But one thing I haven't been able to figure out is how to get the detection values working for custom SMGs -- I've found that value that you mentioned and tried putting in the custom weapon ini's, but no luck so far. Not to hijack the thread -- I believe we are in pursuit of similar answers, but can anyone shed some light on this?
There seem to be a range per weapon: ARs (medium), SMGs (medium-short), shotguns (short), snipers (long), and a custom one for LMGs.
But one thing I haven't been able to figure out is how to get the detection values working for custom SMGs -- I've found that value that you mentioned and tried putting in the custom weapon ini's, but no luck so far. Not to hijack the thread -- I believe we are in pursuit of similar answers, but can anyone shed some light on this?
- johnnylump
- Site Admin
- Posts: 1263
- Joined: Wed Nov 11, 2015 4:12 am
Re: LW2 stats on custom weapons
Above post is correct about range stats.
Detection Range modifier requires you add an ability to the weapon template -- that is, it's done in code, not by configuration alone.
Detection Range modifier requires you add an ability to the weapon template -- that is, it's done in code, not by configuration alone.
-
- Posts: 2
- Joined: Tue Mar 07, 2017 6:45 am
Re: LW2 stats on custom weapons
Dang, that makes things more complicated. I suppose it doesn't hurt to ask -- can you give some indication as to where to look for in the code?