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!

Comments
remyx
remyx

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

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

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

Follow Report Profile
Icon
Battlefield 2
Platforms
Windows
Developer
DICE
Publisher
Electronic Arts
Engine
Refractor 2
Contact
Send Message
Release date
Game watch
Follow
Tutorial
Tags
Tutorial
Browse
Tutorials
Report
Report
Share
Related Games
Battlefield 2
Battlefield 2 First Person Shooter
Related Engines
Refractor 2
Refractor 2 Commercial
Related Groups
DICE
DICE Developer & Publisher
Electronic Arts
Electronic Arts Developer & Publisher