Posted: Sat Jan 08, 2011 1:36 am Post subject:
Weapon Tint issues
I have a projectile based weapon that is supposed to tint all vehicles & Infantry red, but leave Structures and other map objects alone, has the screen shot* shows this is not going according to plan.
I thought that the code below would filter 'STRUCTURES' out, but no.
Here is the 'Tint' nugget in my weapon code:
Also I have still been unable to get my 'Chemical Warrior' weapon to tint vehicles green. I'm starting to think that this might have something to do with the fact that the weapon is a 'Streamed' weapon.
Has anyone had any success with tinting objects based on streamed weapons? (such has the Black hands flame-thrower).
If not can anyone think of any solutions?
Chemical weapon 'Tint' nugget:
See this thread, TintNugget filters don't work correclty. Apply the filter to the ProjectileNugget instead.
Note that you can also assign a Warhead to a stream weapon, dunno if that might fix your second problem.
Note that at least to my knowledge, RGB values are handled as fraktions of the maximum color possible, so values above 1 might not work correctly. _________________ Off Duty. QUICK_EDIT
I have tried adding a warhead to carry the Tint nugget before but it made no difference.
2 of the 3 'Tint' nuggets in the 'Weapon.xml' use values above 1 & there are loads of examples in RA3.
In my code having the 'R' value at 2 makes it an even more brighter 'red' than a value of 1. _________________
Odd, the stream should be purely a graphical object without any effect on the functionality.
Well, SHOULD be...
Does removing the stream fix it?
Sorry Golan it was my fault!
The carrier warhead MUST have a 'Damage' nugget that does non-zero damage in order for the 'Tint' nugget it is carrying to work. QUICK_EDIT
Posted: Tue Jan 11, 2011 7:35 am Post subject:
More Rage Rocket issues
Right back to the Rage Rocket. The Idea of using the Projectile nugget for the filter is not working for me, the rocket still tints everything within the tint radius, including neutral & enemy structures & friendly units and structures.
I have no doubt that I'm making a mistake somewhere. Here is my code:
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum