Battlefield 2 invades the high-tech frontlines of modern warfare. The game brings the intensity and excitement of Battlefield 1942 into the modern era with enhanced team play and the latest, most technologically advanced vehicles and weapons systems available to man.

Post tutorial Report RSS BF2 adding tracer to a weapon. (PT1)

My first tutorial of BF2 hope it helps!

Posted by on - Basic Client Side Coding

Easy tutorial to add tracer to a weapon on Battlefield2*
1) Go to your BF2 Located File. EX: >>
C:\Program Files (x86)\EA Games\Battlefield 2
2)Find Objects_server and open it, find for Weapons\Handheld and select your weapon.
3)Open weapon .tweak file then search for this line:
rem -------------------------------------
ObjectTemplate.addTemplate S_gun_Projectile_Looping -- gun means your gun '-'
rem -------------------------------------

ObjectTemplate.timeToLive CRD_NONE/x/x/x
ObjectTemplate.material x
ObjectTemplate.hasOnTimeEffect x
ObjectTemplate.minDamage x
ObjectTemplate.damage x

You will maybe see these lines, under ObjectTemplate.material add that all that lines below under ObjectTemplate.material:

ObjectTemplate.tracerScaler x
ObjectTemplate.maxTracerScaler x
ObjectTemplate.minTracerScaler x
ObjectTemplate.tracerSizeModifier x
ObjectTemplate.tracerTemplate p_tracer_r

Maybe it looks like this:


rem -------------------------------------
ObjectTemplate.addTemplate S_usrif_gun_Projectile_Looping
rem -------------------------------------
ObjectTemplate.timeToLive CRD_NONE/x/x/x
ObjectTemplate.material x
ObjectTemplate.hasOnTimeEffect x
ObjectTemplate.tracerScaler x
ObjectTemplate.maxTracerScaler x
ObjectTemplate.minTracerScaler x
ObjectTemplate.tracerSizeModifier x
ObjectTemplate.tracerTemplate p_tracer_r
ObjectTemplate.minDamage x
ObjectTemplate.damage x

-------------you done it (I think)

ObjectTemplate.timeToLive -- Means how much time the tracer will be visible.

ObjectTemplate.tracerScaler -- If I'm not wrong, it means how much the tracer will increase over time.

ObjectTemplate.maxTracerScaler -- Max tracer size over time.

ObjectTemplate.minTracerScaler -- Min tracer size over time.

ObjectTemplate.tracerSizeModifier -- Tracer size in XYZ Axis, bigger the number, bigger the size.

ObjectTemplate.tracerTemplate -- The tracer template used, original game has: p_tracer_r, p_tracer_g, p_tracer_tank.


sorry my ugly english, I hope it helps you. Suggestion? Comment!

Post comment Comments
remyx
remyx - - 250 comments

thanks I hope to understand I speak Spanish but you think my plotters are thick tracer in my personal mod Youtube.com and the color change to red blue green as it is ?

Reply Good karma Bad karma+2 votes
Guest
Guest - - 690,497 comments

This comment is currently awaiting admin approval, join now to view.

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: