View Single Post
  #39  
Old 11-08-2024, 11:13 AM
Baldo_the_Don is offline Baldo_the_Don
Baldo_the_Don's Avatar
Registered User

Join Date: Jul 2012
Posts: 583

Quote:
Originally Posted by epikur View Post
hello, sorry for being not exact, with the cannon I meant only the appearance of the weapon fire...
You mean the tracers? I think that's possible...

Edit: Comanche 4 has two .3di files for tracers. Both use the same .dds for a skin. Each .3di contains values for tinting the .dds green or red.

The best way to change the Comanche's cannon tracer color would be to edit the tracer1g.3di to tint the tracer1.dds differently. I looked at the tracer1g.3di and tracer1r.3di in a hex editor, compared them by switching between them in full screen windows, and tried to narrow down the differences so I could untangle what edits might be possible. I found the particular hexes easily enough, but I could not understand how they functioned.

I can't help you with editing the tracer1g.3di.

Next best way to change the tracer color is to edit the tracer1.dds. I did this without problems, and I'm putting the new .dds in my C4 mod, but not recolored, 'cause even though I made the tracer very red, it was still tinted a little green, and I didn't like it. I did improve the shape of the tracer drastically, though, and that's why I want to keep the new tracer1.dds.

I'm gonna attach a .zip with the red tracer .dds for you here. Drag and drop the tracer1.dds from the .zip into your game folder, and confirm your shortcut has the /d tag in the target line.

Another way you could change the tracer color is to edit the 20mm entry in the ammo.def. Edit the type_id from 4406 to 4405. The 20mm will then use the tracer1r.dds. I think the edited ammo.def would have to be reencrypted and packed into a new c4tdata.pff. I'm unsure if a .def file in the game folder will be recognized, but C4 will not recognize an unencrypted .def no matter where it finds it.

Similarly, you could edit the items.def.

Last edit(?): Can confirm that an unencrypted ammo.def will crash the game upon firing a weapon. Can also confirm that an encrypted ammo.def in the game folder will be recognized and loaded into the game, superceding the ammo.def in the .pff.

Next last edit(?): I added the red tracer1.tga, the new tracer1.dds I'm using, and the 20mlp1.wav I edited, 'cause it's pretty good.

*sigh* Edits never end: Updated the .zip with a new 20mlp1.wav that I edited from a better source and matched perfectly to the actual fire rate of the 20mm in the game.
Attached Files
File Type: zip C4_red_tracer1_plus_2.zip (61.0 KB, 3 views)
__________________
////////////////////<- SIGNATURE STARTS ->\\\\\\\\\\\\\\\\\\\\\
The NSO Deadline Mod at NovaHQ.net:
/////////////////////<- SIGNATURE ENDS ->\\\\\\\\\\\\\\\\\\\\\\

Last edited by Baldo_the_Don; 11-10-2024 at 10:24 AM.
Reply With Quote