Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Sat Jul 26, 2025 12:19 am
All times are UTC + 0
Weapon Tint issues
Moderators: Global Moderators
Post new topic   Reply to topic Page 1 of 1 [6 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Madin
Plasma Trooper


Joined: 05 Apr 2009

PostPosted: Sat Jan 08, 2011 1:36 am    Post subject:  Weapon Tint issues Reply with quote  Mark this post and the followings unread

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:
Code:
<TintObjectsNugget Radius="75" PreColorTime="0s" SustainedColorTime="20s" PostColorTime="0s" Frequency="0" Amplitude="0">
        <SpecialObjectFilter Rule="ANY" Relationship="ENEMIES" Include="VEHICLE INFANTRY" Exclude="STRUCTURE" />
        <Color R="2" G="-0.0" B="0.1" />
      </TintObjectsNugget>


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:
Code:
<TintObjectsNugget Radius="20" PreColorTime="0s" SustainedColorTime="3s" PostColorTime="0s" Frequency="0" Amplitude="0">
        <SpecialObjectFilter Rule="ANY" Relationship="ENEMIES" Include="VEHICLE" />
        <Color R="-0.0" G="2" B="0.1" />
      </TintObjectsNugget>



Rage_Red.jpg
 Description:
*Let's paint everything red!
 Filesize:  513.79 KB
 Viewed:  3081 Time(s)

Rage_Red.jpg



Last edited by Madin on Tue Jan 11, 2011 7:28 am; edited 2 times in total

Back to top
View user's profile Send private message
Golan
Flamethrower


Joined: 21 Nov 2007

PostPosted: Sat Jan 08, 2011 8:31 am    Post subject: Reply with quote  Mark this post and the followings unread

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.

Back to top
View user's profile Send private message
Madin
Plasma Trooper


Joined: 05 Apr 2009

PostPosted: Sat Jan 08, 2011 6:03 pm    Post subject: Reply with quote  Mark this post and the followings unread

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.

_________________

Back to top
View user's profile Send private message
Golan
Flamethrower


Joined: 21 Nov 2007

PostPosted: Sat Jan 08, 2011 6:52 pm    Post subject: Reply with quote  Mark this post and the followings unread

Odd, the stream should be purely a graphical object without any effect on the functionality.

Well, SHOULD be...

Does removing the stream fix it?

_________________
Off Duty.

Back to top
View user's profile Send private message
Madin
Plasma Trooper


Joined: 05 Apr 2009

PostPosted: Sun Jan 09, 2011 12:12 am    Post subject: Reply with quote  Mark this post and the followings unread

Golan wrote:
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! Confused
The carrier warhead MUST have a 'Damage' nugget that does non-zero damage in order for the 'Tint' nugget it is carrying to work.

Back to top
View user's profile Send private message
Madin
Plasma Trooper


Joined: 05 Apr 2009

PostPosted: Tue Jan 11, 2011 7:35 am    Post subject: More Rage Rocket issues Reply with quote  Mark this post and the followings unread

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:

Rocket + projectile nuggets
Code:
<WeaponTemplate id="NODRageRocket" Name="NODRageRocket" AttackRange="450.0" WeaponSpeed="300" MinWeaponSpeed="450" MaxWeaponSpeed="470" FireFX="FX_GDIMissileManFire" FireVeteranFX="FX_GDIMissileManFireHeroic" FireSound="GDI_MissileSoldier_MissileFire" AcceptableAimDelta="20d" ClipSize="0" AntiMask="ANTI_GROUND" CanFireWhileMoving="false" PreAttackType="PER_SHOT" ReAcquireDetailType="PRE_FIRE">
    <PreAttackDelay MinSeconds="1.0s" MaxSeconds="1.0s" />
    <FiringDuration MinSeconds="1.4s" MaxSeconds="1.5s" />
    <!--<ClipReloadTime MinSeconds="0.4s" MaxSeconds="0.6s" xmlns="uri:ea.com:eala:asset" />-->
    <Nuggets>
      <ProjectileNugget WarheadTemplate="NODRageRocketHallucinogenicWeapon" ProjectileTemplate="RocketSoldierRageRocketProjectile">
        <SpecialObjectFilter Rule="ANY" Relationship="ENEMIES" Include="VEHICLE INFANTRY" Exclude="STRUCTURE AIRCRAFT" />
      </ProjectileNugget>
      <ProjectileNugget WarheadTemplate="NODRageRocketHallucinogenicTintWeapon" ProjectileTemplate="RocketSoldierRageRocketProjectile">
        <SpecialObjectFilter Rule="ANY" Include="VEHICLE INFANTRY" Exclude="STRUCTURE AIRCRAFT" />
      </ProjectileNugget>
      <SuppressionNugget Radius="20.0" Suppression="10" DurationSeconds="5s" />
    </Nuggets>
  </WeaponTemplate>


Warhead 1
Code:
<WeaponTemplate id="NODRageRocketHallucinogenicWeapon" Name="NODRageRocketHallucinogenicWeapon" ProjectileCollidesWith="ENEMIES" RadiusDamageAffects="ENEMIES">
    <Nuggets>
      <DamageNugget Damage="1.0" Radius="75.0" DelayTimeSeconds="0.0s" DamageType="GRENADE" DeathType="EXPLODED"></DamageNugget>
      <AttributeModifierNugget PartitionFilterTestType="SPHERE" AttributeModifierName="AttributeModifier_Hallucinate" Radius="75">
        <SpecialObjectFilter Rule="ANY" Include="VEHICLE INFANTRY" />
      </AttributeModifierNugget>
      <AttributeModifierNugget PartitionFilterTestType="SPHERE" AttributeModifierName="AttributeModifier_RageRocket" Radius="75">
        <SpecialObjectFilter Rule="ANY" Include="VEHICLE INFANTRY" />
      </AttributeModifierNugget>
    </Nuggets>
  </WeaponTemplate>


Warhead 2 (Tint warhead)
Code:
<WeaponTemplate id="NODRageRocketHallucinogenicTintWeapon" Name="NODRageRocketHallucinogenicTintWeapon" ProjectileCollidesWith="ENEMIES" RadiusDamageAffects="ENEMIES">
    <Nuggets>
      <DamageNugget Damage="1.0" Radius="75.0" DelayTimeSeconds="0.0s" DamageType="GRENADE" DeathType="EXPLODED"></DamageNugget>
      <TintObjectsNugget Radius="75" PreColorTime="0s" SustainedColorTime="20s" PostColorTime="0s" Frequency="0" Amplitude="0">
        <Color R="2" G="-0.0" B="0.1" />
      </TintObjectsNugget>
    </Nuggets>
  </WeaponTemplate>


Any ideas please? Confused

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [6 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
Quick Reply
Username:


If you are visually impaired or cannot otherwise answer the challenges below please contact the Administrator for help.


Write only two of the following words separated by a sharp: Brotherhood, unity, peace! 

 
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


Powered by phpBB © phpBB Group

[ Time: 0.3138s ][ Queries: 14 (0.0116s) ][ Debug on ]