Smoke grenade

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kodakk
    Member
    • Oct 2006
    • 3486

    #1

    Smoke grenade

    Ok, I'm directly editing the .tweak files....

    How do i change the color of a smoke grenade (the smoke itself actually)? thanks.
  • GlobalFear

    #2
    Re: Smoke grenade

    Going off of memory: Look for the effect that is used. it'll be e_something.
    Not sure what format bf2's colors are in. Open up the editor and modify the color's of the effect.

    Comment

    • imported_Snuffy The Evil
      Member
      • Nov 2006
      • 192

      #3
      Re: Smoke grenade

      Originally posted by GlobalFear
      Going off of memory: Look for the effect that is used. it'll be e_something.
      Not sure what format bf2's colors are in. Open up the editor and modify the color's of the effect.

      I think it's DDS. I'm not completly sure, though.

      Comment

      • GlobalFear

        #4
        Re: Smoke grenade

        \bf2\Objects\Weapons\Handheld\hgr_smoke\hgr_smoke. tweak
        Code:
        rem ---BeginComp:DefaultDetonationComp ---
        ObjectTemplate.createComponent DefaultDetonationComp
        ObjectTemplate.detonation.explosionMaterial 0
        ObjectTemplate.detonation.explosionRadius 0
        ObjectTemplate.detonation.explosionYMod 0
        ObjectTemplate.detonation.explosionForce 0
        ObjectTemplate.detonation.explosionDamage 0
        ObjectTemplate.detonation.detonateOnWaterCollision 0
        [COLOR="Red"]ObjectTemplate.detonation.endEffectTemplate [B]e_hgr_smokegrenade[/B][/COLOR]
        ObjectTemplate.detonation.detectionRadius 0
        rem ---EndComp ---
        Now we know what effect is used by the smoke grenade. We then navigate to that effect:

        \bf2\Objects\Effects\weapons\misc\e_hgr_smokegrena de\e_hgr_smokegrenade.tweak

        Replace all instances of:
        Code:
        ObjectTemplate.color1 x/x/x
        ObjectTemplate.color2 x/x/x
        with one of the following:
        Code:
        [COLOR="Red"]ObjectTemplate.color1 1/0.282353/0.282353
        ObjectTemplate.color2 1/0/0[/COLOR]
        Code:
        [COLOR="Lime"]ObjectTemplate.color1 0.458824/0.917647/0
        ObjectTemplate.color2 0.501961/1/0[/COLOR]
        Code:
        [COLOR="Yellow"]ObjectTemplate.color1 1/1/0.501961
        ObjectTemplate.color2 1/1/0[/COLOR]
        Code:
        [COLOR="RoyalBlue"]ObjectTemplate.color1 0/0.501961/1
        ObjectTemplate.color2 0/0/1[/COLOR]


        Profit.

        Comment

        • Kodakk
          Member
          • Oct 2006
          • 3486

          #5
          Re: Smoke grenade

          wow! thanks!!
          going to do it soon... but how bright are those colors? I don't want them to be extremely bright.

          Comment

          • GlobalFear

            #6
            Re: Smoke grenade

            Try them ingame.

            Comment

            • Kodakk
              Member
              • Oct 2006
              • 3486

              #7
              Re: Smoke grenade

              got it to work...
              looks fine :)

              Comment

              • BippyMiester

                #8
                Re: Smoke grenade

                Yeah you can use that code as stated above but if you also know the basic RGB colors and their values and how to mix them that i what they are using... so the brightness depeneds on what value you put in there. for example


                If you want red you can put
                Code:
                [COLOR="Red"]ObjectTemplate.color1 1/0.282353/0.282353
                ObjectTemplate.color2 1/0/0[/COLOR]
                Or you can put

                Code:
                [COLOR="Red"]ObjectTemplate.color1 1/0/0
                ObjectTemplate.color2 1/0/0[/COLOR]
                Same for green you can put
                Code:
                [COLOR="Lime"]ObjectTemplate.color1 0.458824/0.917647/0
                ObjectTemplate.color2 0.501961/1/0[/COLOR]
                Or simply you can put

                Code:
                [COLOR="Lime"]ObjectTemplate.color1 0/1/0
                ObjectTemplate.color2 0/1/0[/COLOR]

                Comment

                Working...