Graviteam

English-speaking community => Steel Fury: Kharkov 1942 => Topic started by: Flanker15 on March 13, 2014, 01:06:13 PM



Title: Damn bullet proof shrubs and sitting machine gun guys!
Post by: Flanker15 on March 13, 2014, 01:06:13 PM
So this has started to bug me after a few days:  The shrubs!

They are really good at being bullet proof barriers!  Now hits to the trunk and sometimes in the leafy bits of plants are going to stop or deflect bullets to some degree but these guys are pretty much solid, they even change the flight or large shells.  On top of this one of the shrubs is bullet proof a good 2 meters above where the shrub ends.


Less buggy is the guys manning the maxim machine guns or AAA 40mm sitting down don't seem to die.

Can it be fixed?


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: lockie on March 13, 2014, 08:14:37 PM
So this has started to bug me after a few days:  The shrubs!
This is arcade feature - to protect stupid AI from the very smart user :)
In fact, AI doesn't see through the leafs, but user did. Usually, I go to the bush and shoot poor AI units almost without problems, except ricochet from bushes. At this moment flora has ~5mm of armor, which a way better to compare with a stock value - 70-100mm.
If u want to get rid off flora of armor then go to folder:
data\k42\loc_rus\armor_maps\objs\*.*
and paint all textures with a black color with RGB parameters 0,0,0.

Quote from: Flanker15
Less buggy is the guys manning the maxim machine guns or AAA 40mm sitting down don't seem to die.
That question I didn't understand.


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: Flanker15 on March 14, 2014, 07:45:38 AM
The man sitting behind the maxim machine gun, you shoot him with your machine gun and he just sits there unflinching.  I


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: lockie on March 14, 2014, 07:56:13 AM
The man sitting behind the maxim machine gun, you shoot him with your machine gun and he just sits there unflinching.
OK, I see what's the problem. It's a bug. The animation mgunner was changed, but didn't properly adjusted. Will be fixed in the MarchUpd.

BTW
I recommend to enclose a screenshot. During mission, press F12 and the game will make a screenshot. After the mission, open folder:
...\Steel Fury - Kharkov 1942\users\scrshots\*.*
and pick up the need one.


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: Flanker15 on March 14, 2014, 09:11:11 AM


data\k42\loc_rus\armor_maps\objs\*.*
and paint all textures with a black color with RGB parameters 0,0,0.



Do you know which bush goes with which armor map and in what place on the armor map?  I would like to make the armor map match the bush, so have 5mm on the centre mass and 0mm at the edges.


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: lockie on March 14, 2014, 04:36:50 PM
Do you know which bush goes with which armor map
All bushes has the same value 5mm

Quote
and in what place on the armor map? 
Texture(i.e.  utrees1_armor.tga) contains the value of the armor.

Quote
I would like to make the armor map match the bush, so have 5mm on the centre mass and 0mm at the edges.
Armor thickness doesn't effect center mass. U need to paint texture(i.e.  utrees1_armor.tga) to get such result.


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: Donken on March 14, 2014, 07:57:36 PM
Im not shure but it could work if you add alpha channel to where you dont need armor, Or maybe .tga doesnt support alpha channels?


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: lockie on March 14, 2014, 09:46:44 PM
Im not shure but it could work if you add alpha channel to where you dont need armor
Of course, there is possibility to use alpha-channel. It's just slipped out of my mind! This method works also, as if u painted the texture with a black color(RGB 0,0,0).


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: Flanker15 on March 15, 2014, 09:19:59 AM
So there are 2 armour maps for the shrubs then?  The solid 5mm square and another one that tells the game where the armour goes?

I 've changed the solid 5mm square to a random pattern of 5mm, 0mm and 1mm armour in tiny circles, I don't know how it'll work out though.


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: Donken on March 15, 2014, 11:19:43 AM
So there are 2 armour maps for the shrubs then?  The solid 5mm square and another one that tells the game where the armour goes?

No, texture and armor map is completely seperated from eachother, only thing in common is they share the uvw map =)


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: lockie on March 15, 2014, 12:56:52 PM
To avoid misunderstanding I recommend to work with a texture of the armor map.
1. Open in photoshop data\k42\loc_rus\armor_maps\objs\utrees1_armor.tga. It has 5mm armor (RGB = 5,5,5).
(http://s5.postimg.org/ewf52ek9f/image.jpg) (http://postimg.org/image/ewf52ek9f/)

2. Change all RGB values to "0".
(http://s5.postimg.org/iu2ert72r/image.jpg) (http://postimg.org/image/iu2ert72r/)

3. Check that texture has "0,0,0", then Save.
(http://s5.postimg.org/cix7be5ub/033.jpg) (http://postimg.org/image/cix7be5ub/)


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: Flanker15 on March 16, 2014, 12:26:12 PM
To avoid misunderstanding I recommend to work with a texture of the armor map.
1. Open in photoshop data\k42\loc_rus\armor_maps\objs\utrees1_armor.tga. It has 5mm armor (RGB = 5,5,5).
(http://s5.postimg.org/ewf52ek9f/image.jpg) (http://postimg.org/image/ewf52ek9f/)

2. Change all RGB values to "0".
(http://s5.postimg.org/iu2ert72r/image.jpg) (http://postimg.org/image/iu2ert72r/)

3. Check that texture has "0,0,0", then Save.
(http://s5.postimg.org/cix7be5ub/033.jpg) (http://postimg.org/image/cix7be5ub/)


Yep I did this and one better as I wrote above I replaced the plane 5,5,5 square with a pattern that randomly has values of "0,0,0" "1,1,1" and "5,5,5" since shrubs are very complex and not solid.

What I'm also talking about and haven't fixed is that a shrub in the game has a shape and the armor map is a square so the area above/around the shrub which appears empty is blocking bullets.


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: lockie on March 16, 2014, 01:23:57 PM
What I'm also talking about and haven't fixed is that a shrub in the game has a shape and the armor map is a square so the area above/around the shrub which appears empty is blocking bullets.
In such case u've to work with alpha-channel, which is responsible for the texture transparency.
Where: white color - texture is visible, black - invisible.


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: Flanker15 on March 16, 2014, 01:41:47 PM
The texture and the armour map share the same uv map right so I overlay the shrub texture on the armor map and 0,0,0 everything that isn't covered by the texture.


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: Donken on March 16, 2014, 01:44:44 PM
The texture and the armour map share the same uv map right so I overlay the shrub texture on the armor map and 0,0,0 everything that isn't covered by the texture.

Yes exactly! Was just about to tell you that but you where first :D


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: Flanker15 on March 17, 2014, 08:11:50 AM
Ok I made new armor maps as per instructions for Bush 0-2 and utree.  Leafy bits are 5mm, central bush bit on bush_0 is 10mm and trunk bits on U tree are 30mm like the other tree armor map. Everything else is 0mm.  There are some errors there but it should be better than current.
edit wrong file....

http://www.4shared.com/zip/HXAn93c6ce/bush21.html


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: lockie on March 17, 2014, 05:46:13 PM
This is interesting.
Can u demonstrate new armor map to compare with old one on the picture sample?


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: Flanker15 on March 18, 2014, 12:15:02 AM

With the new armor map on Bush3:
Bullets not hitting the bush (you can sort of see the dirt behind the bush, bullets are coming from the far right of the scope).
(http://i.imgur.com/AgcZAz4.jpg)



Shift aim and bullets hit the edge of the bush.
(http://i.imgur.com/DWB5eT7.jpg)


With the old black square armor map:

Bullets are hitting bush where there is no bush with similar aim point as before.
(http://i.imgur.com/PQxjONI.jpg)



Bullets still hitting the bush way out here too.
(http://i.imgur.com/L62oOgp.jpg)


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: Flanker15 on March 18, 2014, 12:27:38 AM
Also the reason my armor maps are all blocky with no soft gradients is:

The closer you are to 0,0,0 the thinner the armor so if you use gradients the thickness around the object in the gradient area will be thicker than the object should be.  E.g A leaf with 5,5,5 will have pixels of say 14,14,14 around it as the gradient goes from dark to light to empty.


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: lockie on March 18, 2014, 04:44:27 AM
Thanks for explanations. I'll give it a try.


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: Flanker15 on March 18, 2014, 05:44:03 AM
Cool!

Also I had a look at Graviteam's original armor maps and they had them set up with the proper cut-out shapes only much much thicker so the soft gradient around the edge was actually thinner than the main mass (but still way thicker than the new 5mm).


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: Flanker15 on March 20, 2014, 12:32:21 PM
Hey lockie got an update,

3 more tree armor maps were wrong so I fixed them up the same way.  Palm tree, culture and fir all had armor where there was no tree.

http://www.4shared.com/zip/6UWDUzCwba/bush2.html


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: lockie on March 20, 2014, 12:39:39 PM
Got it! There is one nuance. Depends on the weather mod(summer, autumn, winter etc.) the armor map subject to be changed. As I've understood all new flora armors designed for the summer. If u still interesting, would be nice, if u make armors for the other weather mods. But it's not so urgent.


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: Flanker15 on March 20, 2014, 09:01:45 PM
Ok here's some from the weather mods I've got:
These are the flora that were different shapes than the default that I found, they're in folders named after their weather mod.

http://www.4shared.com/zip/VWlHYuChce/weather_armor.html


Also the Winter mod has a skin for the Kv-2 that's organised completely wrong, but I don't have the skills to fix that.


Also I've been doing some testing on the RoF of some auto guns to see how they play with more realistic settings.

Mg34: currently fires at 1200 rpm tried lowering but the sound file loops wrong so put it back.

These ones work fine, most were firing faster than real life if you're worried about ammo waste:

TNSH20,%FL_AUTOLOAD%,%WEAP_RBARRET%,82.4,20,1,0.1,0.025,0.05,58,0.075,5,1,0.3,0,shot_tnsh,reload2,chreload1,drop1,8,txt_gun_tnsh20,gun_shot_pat,,TNSH20;

VYA23,%FL_AUTOLOAD%,%WEAP_RBARRET%,82.4,23,1,0.01,0.05,0.05,150,0.1,5,1,.3,0,shot_vya23,reload2,chreload1,drop1,8,txt_gun_vya23,,,VYA23;

BESA,%FL_AUTOLOAD%,%WEAP_MGUN%,40,7.92,1,0.25,0.025,0.05,225,0.075,5,1,1,0,shot_besa,,reloadbesa,drop1,12,txt_mgun_besa,mgun_shot_pat,,BUL_792;

DT,%FL_AUTOLOAD%,%WEAP_MGUN%,40,7.62,1,0.25,0.01,0.09,63,0.1,5,1,1,0,shot_dt,reloadmg42,chreload1,drop1,12,txt_mgun_dt,mgun_shot_pat,,BUL_762;


MG37(t),%FL_AUTOLOAD%,%WEAP_MGUN%,40,7.92,1,0.025,0.025,0.05,100,0.075,5,1,1,0,shot_besa,reloadbesa,reloadbesa,drop1,12,txt_mgun_mg37(t),mgun_shot_pat,,BUL_792;

Haven't tested the MG42 yet but I put it up to 1500 RPM to separate it from the 34.

MG42,%FL_AUTOLOAD%,%WEAP_MGUN%,40,7.92,1,0.25,0.01,0.03,200,0.04,5,1,1,0,shot_mg42t,reloadmg42,chreload1,drop1,12,txt_mgun_mg42,mgun_shot_pat,,BUL_792;


Also I added 5g of explosive to the 20mm on the T-60 because you can't have mixed ammo belts and they historically mixed AP with HE so now all the shots have a little bit of HE.
Same for the 23mm on the Il-2 but 7g added.


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: lockie on March 20, 2014, 09:29:12 PM
Ok here's some from the weather mods I've got:
These are the flora that were different shapes than the default that I found, they're in folders named after their weather mod.
It's quite enough. I'll re-upload weather mods. Thanks!


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: Flanker15 on March 21, 2014, 08:58:48 AM
I also made this thing:

http://www.4shared.com/zip/7sZpCJ2Xba/WinterPlusNosnow.html

It's a mod you install after you install the Winter weather and then the No snow weather on top, that changes some particle effects and tracks back to ones that suit no snow.


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: lockie on March 21, 2014, 09:16:24 AM
It's a bit complicate to understand what do u mean without screenshots. Can u enclose pictures with explanations?
And is it possible to make ice instead water?


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: Flanker15 on March 21, 2014, 09:37:48 AM
It only changes 2 things, tracks on the ground behind vehicles back to brown instead of snow color.

And the little bits that fly out of the moving vehicle's wheels from snow color back to brown.

What do you mean by ice?
Ice you can drive on, I doubt it can be done.
Water with ice bits floating on it texture, maybe.


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: lockie on March 21, 2014, 09:42:21 AM
It only changes 2 things, tracks on the ground behind vehicles back to brown instead of snow color.
And the little bits that fly out of the moving vehicle's wheels from snow color back to brown.
OK, got it.

What do you mean by ice?
Ice you can drive on, I doubt it can be done.
Water with ice bits floating on it texture, maybe.
Ice as a kind of ground. I.e. instead water I may place "ice-ground" or may be it's possible to change parameters of the water to become as ground? This is just for the "winter mod".


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: Flanker15 on March 21, 2014, 11:29:08 AM
I guess so if  it's possible to make new terrain types, you'd need.

Ice texture,
Ice normal map from the texture,
Set the parameters for the new terrain in the matlib and wherever the friction settings are, 
Raise the terrain hight on the polygon along the river so it covers the water level.
Paint the new ice terrain along the river.


Title: Re: Damn bullet proof shrubs and sitting machine gun guys!
Post by: lockie on March 21, 2014, 12:03:13 PM
Would be interesting to make ice-ground slippery  8)