Jump to content
Sign in to follow this  
guy123

Tank tracks going black

Recommended Posts

Another weird bug we're getting with our armour is that a lot of the tank tracks go solid black after taking even the slightest bit of damage. This also overrides the alphas, leaving the tracks looking quite strange indeed, any ideas?

We use a lot of the 'ca' damage rvmat's but I'd have thought that if a path was incorrect we'd just get an error message?

Share this post


Link to post
Share on other sites

My first thoughts would be what have you set up for class hitpoints in the config? example:

class hitpoints

{

class HitLTrack {

armor = 0.15;

material = -1;

name = "pas_L";

visual = "pas_L";

passThrough = 0.2;

};

};

If you have nothing defined in the config or armor = something very low

then I imagine the tracks would take damage if you breathed on them:p

Share this post


Link to post
Share on other sites

Hey Clegy, thanks for the reply.

Here is an example of one of the offending tanks hit points class in the config.

class HitPoints : HitPoints
{
	class HitHull : HitHull {armor = 2*HULLARMOR/TOTALARMOR; };
	class HitLTrack : HitLTrack {armor = 4*30/TOTALARMOR;};
	class HitRTrack : HitRTrack {armor = 4*30/TOTALARMOR;};
	class HitEngine : HitEngine {armor = 4*20/TOTALARMOR;};
};

Share this post


Link to post
Share on other sites

Its not that the tracks get dammaged easily, they just go black after the faintest shot at them, however they still work perfectly, and take the right ammount of dammage from other tanks.

Share this post


Link to post
Share on other sites

I must admit I've never seen class hitpoints defined like that - so it could be I'm out of my depth here:o

But 'in for a penny in for a pound' as the (British) saying goes - what have you set up for class damage in the config?

Share this post


Link to post
Share on other sites

Hey mate, cheers for the help

I have under class damage:

class Damage
{
	tex[] = {};
	mat[] = {
		"I44_vehicle_PzKpfwIV\data\_m_body.rvmat",
		"I44_vehicle_PzKpfwIV\data\_m_body_damage.rvmat",
		"I44_vehicle_PzKpfwIV\data\_m_body_destruct.rvmat",
		"I44_vehicle_PzKpfwIV\data\_m_misc2.rvmat",
		"I44_vehicle_PzKpfwIV\data\_m_misc2_damage.rvmat",
		"I44_vehicle_PzKpfwIV\data\_m_misc2_destruct.rvmat",
		"I44_vehicle_PzKpfwIV\data\_m_misc.rvmat",
		"I44_vehicle_PzKpfwIV\data\_m_misc_damage.rvmat",
		"I44_vehicle_PzKpfwIV\data\_m_misc_destruct.rvmat",
		"I44_vehicle_PzKpfwIV\data\_m_transp.rvmat",
		"I44_vehicle_PzKpfwIV\data\_m_transp_damage.rvmat",
		"I44_vehicle_PzKpfwIV\data\_m_transp_destruct.rvmat",
		"I44_vehicle_PzKpfwIV\data\bodyZ.rvmat",
		"I44_vehicle_PzKpfwIV\data\bodyZ_damage.rvmat",
		"I44_vehicle_PzKpfwIV\data\bodyZ_destruct.rvmat",
		//"I44_vehicle_PzKpfwIV\data\default.rvmat",
		//"I44_vehicle_PzKpfwIV\data\default.rvmat",
		//"I44_vehicle_PzKpfwIV\data\default.rvmat",
		//"I44_vehicle_PzKpfwIV\data\pasbok.rvmat",
		//"I44_vehicle_PzKpfwIV\data\pasbok.rvmat",
		//"I44_vehicle_PzKpfwIV\data\pasbok.rvmat",
		"I44_vehicle_PzKpfwIV\data\pasvn.rvmat",
		"I44_vehicle_PzKpfwIV\data\pasvn_damage.rvmat",
		"I44_vehicle_PzKpfwIV\data\pasvn_destruct.rvmat",
		"I44_vehicle_PzKpfwIV\data\pasvz.rvmat",
		"I44_vehicle_PzKpfwIV\data\pasvz_damage.rvmat",
		"I44_vehicle_PzKpfwIV\data\pasvz_destruct.rvmat",
		"I44_vehicle_PzKpfwIV\data\track.rvmat",
		"I44_vehicle_PzKpfwIV\data\track_damage.rvmat",
		"I44_vehicle_PzKpfwIV\data\track_destruct.rvmat",
		"I44_vehicle_StuGIII\data\stug_restore1.rvmat",
		"I44_vehicle_StuGIII\data\stug_restore1_damage.rvmat",
		"I44_vehicle_StuGIII\data\stug_restore1_destruct.rvmat"
	};
};

But surely if it couldn't fine one of these files it would give me an error, not make everything black? :confused:

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×