Page 1 of 1
Reduce B17 and artillery damage
Posted: Fri Feb 22, 2013 5:00 pm
by Scoop M
SSM
Vanilla BF1942
I'd like to reduce the damage, bombs and shells from the B17 and artillery do.
Preferably only against infantry, but if that's too complicated or can't be done, then against all targets.
Yes, I've read the tutorials, yes, I've searched and read loads of old posts, but it's hard to test values and codes for this.
Re: Reduce B17 and artillery damage
Posted: Fri Feb 22, 2013 5:45 pm
by Swaffy
Re: Reduce B17 and artillery damage
Posted: Fri Feb 22, 2013 7:01 pm
by freddy
soldiers dies by the splash damage so you could shrink the bombs radius a bit
Re: Reduce B17 and artillery damage
Posted: Fri Feb 22, 2013 7:06 pm
by freddy
or game.rfa/Bf1942/Game/damage_system/Big_bombs.con
Code: Select all
rem *
rem * ***** B17 explosion SPLASH DAMAGE*****
rem *
rem * *************************************************
rem * Infantry target
rem * *************************************************
MaterialManager.attGroup 203
MaterialManager.setCell 40 7 <-- - 7=damage multiplicator
MaterialManager.setCell 41 2
MaterialManager.setCell 42 2
Re: Reduce B17 and artillery damage
Posted: Fri Feb 22, 2013 9:23 pm
by Scoop M
So, let's say I'd like all artillery and the B17 to only do roughly 50 % of normal damage against infantry.
Will halving all the values for splash / direct damage do the trick ? :
(wespe example)
Code: Select all
rem *
rem * ***** Wespe gun explosion SPLASH DAMAGE*****
rem *
rem * *************************************************
rem * Infantry target
rem * *************************************************
MaterialManager.attGroup 201
MaterialManager.setCell 40 20 <---------- reduce to 10
MaterialManager.setCell 41 20 <---------- reduce to 10
MaterialManager.setCell 42 20 <---------- reduce to 10
Code: Select all
rem ***************************************************
rem * ***** Wespe gun explosion - DIRECT DAMAGE *****
rem ***************************************************
rem * *************************************************
rem * Infantry target
rem * *************************************************
MaterialManager.attGroup 241
MaterialManager.defGroup 40
MaterialManager.damageMod 20 <---------- reduce to 10
MaterialManager.setEffectTemplate BombSmallNS_Expl
MaterialManager.attGroup 241
MaterialManager.defGroup 41
MaterialManager.damageMod 20 <---------- reduce to 10
MaterialManager.setEffectTemplate BombSmallNS_Expl
MaterialManager.attGroup 241
MaterialManager.defGroup 42
MaterialManager.damageMod 20 <---------- reduce to 10
MaterialManager.setEffectTemplate BombSmallNS_Expl
Re: Reduce B17 and artillery damage
Posted: Fri Feb 22, 2013 10:58 pm
by freddy
lets have a look in game.rfa/Bf1942/Game/materialManagerdefine.con
Code: Select all
MaterialManager.material 201
MaterialManager.materialAttGroup 201
MaterialManager.materialDefGroup 201
MaterialManager.materialDamage 10
so if i remember right it does 10 damage and then multiply that with the 20 in
Code: Select all
MaterialManager.attGroup 201
MaterialManager.setCell 40 20
MaterialManager.setCell 41 20
MaterialManager.setCell 42 20
thats 200 damage and thats for each piece of head, torso and legs i guess so if im right thats a total of 600. then
i think there was some formel that regulates how much damage is made related to how near the centrum of the exlosion the object is (cant swear on this, just think i saw something about it somewhere)
so if soldiers have HitPoints 30 then i guess you have to go down a lot in the damage multiplier to get the results you want