Home   Help Search Login Register  

Author Topic: Some config questions.  (Read 770 times)

0 Members and 1 Guest are viewing this topic.

Offline Kurayami

  • Members
  • *
Some config questions.
« on: 31 Mar 2004, 08:02:26 »
I've been working on a project for the past several weeks and have run into a few problems as far as config editing is concerned. I've gone through the BIS commented configs and looked at various other tutorials to no avail, so I was hoping that you guys could help me out.

#1: This is killing me. What does "cost" do? I see it in every vehicle class, but I've never seen its function defined.

#1a: What about "valueweapon" and "valuemagazine"?


#2: Can somebody offer me a summary of what the tracer defines all do?

Code: [Select]
#define TracerEColor 0.2,0.8,0.1
#define TracerWColor 0.8,0.5,0.1
#define TracerGColor 0.7,0.7,0.5
#define TracerNColor 0,0,0 // used for sniper / silenced rifles

#define TracerEColorF {TracerEColor,0.040}
#define TracerWColorF {TracerWColor,0.040}
#define TracerGColorF {TracerGColor,0.040}
#define TracerNColorF {TracerNColor,0.005}

#define TracerSEColorF {TracerEColor,0.25}
#define TracerSWColorF {TracerWColor,0.25}

#define TRACER_W_ALWAYS tracerColor[]=TracerWColorF;tracerColorR[]=TracerWColorF
#define TRACER_W_OPTIONAL tracerColor[]=TracerWColorF;tracerColorR[]=TracerNColorF
#define TRACER_W_STRONG tracerColor[]=TracerSWColorF;tracerColorR[]=TracerSWColorF

#define TRACER_E_ALWAYS tracerColor[]=TracerEColorF;tracerColorR[]=TracerEColorF
#define TRACER_E_OPTIONAL tracerColor[]=TracerEColorF;tracerColorR[]=TracerNColorF
#define TRACER_E_STRONG tracerColor[]=TracerSEColorF;tracerColorR[]=TracerSEColorF

#define TRACER_G_ALWAYS tracerColor[]=TracerGColorF;tracerColorR[]=TracerGColorF
#define TRACER_G_OPTIONAL tracerColor[]=TracerGColorF;tracerColorR[]=TracerNColorF
What is the difference between TracerWColor and TracerWColorF?

What does {TracerWColor,0.040} do? I know that the numbers represent RGB/Alpha as far as the tracers go, but what is that 0.040 for? Is it as simple as it simply being just red and nothing else?

I'm just looking for a brief summary of what all of these do.

#3: Is there any way to independently use different pictures for both the weapon and the magazine for a weapon without creating a second class for the mag?

#4: Is there any way to to FORCE different displayname strings for a class even when it's inheriting related things from another class?

Example: Say I wanted to rename the AK47CZ to Sa-58 in-game. I change the displayname to "Sa-58" in the base AK47CZ class. OK, great. But I also want that to show when firing, so I add the fire mode classes and change the displayname in each of those classes to the value that I want. Not so great. As long as it uses an AK47 mag, the displayname string in the fire mode classes is overiden.

Is there a way around this without creating a new magazine, or am I sunk?


I had a few more questions, but it's 1:30 in the morning and I've forgotten them at the moment. If anybody could answer any of those questions (and I suspect that they're pretty stupid ones at that,) I'd be grateful.

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Some config questions.
« Reply #1 on: 31 Mar 2004, 20:53:22 »
cost is how the AI will spend ammo on your vehicle/unit, so to speak.
AFAIK, the higher the COST, the bigger chance that the AI will fire at you
(choose YOU as their first target etc.)

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Some config questions.
« Reply #2 on: 31 Mar 2004, 21:09:43 »
tracer colors... well, if you load up a picture in, say PAINT, then you can flood it with some
color, and in the box where you define this color, you can see the color in NUMBERS  :o :)
thus: the nums are simply a mix of basic colors (blue, red etc.)

at least this is what I get outta the whole dang thing  :P ;D


(I dont use tracers in OFP myself, it looks awful with green lines from an m4)  ::)

« Last Edit: 31 Mar 2004, 21:11:11 by Tomb »

Offline Kurayami

  • Members
  • *
Re:Some config questions.
« Reply #3 on: 01 Apr 2004, 01:51:40 »
cost is how the AI will spend ammo on your vehicle/unit, so to speak.
AFAIK, the higher the COST, the bigger chance that the AI will fire at you
(choose YOU as their first target etc.)
I thought that's what threat did?


tracer colors... well, if you load up a picture in, say PAINT, then you can flood it with some
color, and in the box where you define this color, you can see the color in NUMBERS  :o :)
thus: the nums are simply a mix of basic colors (blue, red etc.)

at least this is what I get outta the whole dang thing  :P ;D
Yeah, I figured that much. The numbers are the RGB/Alpha of the tracer on binary scale. I just haven't been able to find out what the defines betond the basic ones are for and what they do.

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Some config questions.
« Reply #4 on: 01 Apr 2004, 12:56:22 »
...I thought that's what threat did?

threat is, TMK, which type of target your current addon will attack first,
while cost defines how "dangerous" ( ==expensive! ) the crap actually is.

Threat[]={soft types like jeeps and men, Armored stuff like tanks, Airborne stuff}

so setting threat to {0.1, 0.1, 1.0} would make your unit attack air stuff, hence above,
and if the cost of one aircraft is remarkably higher than the cost of another plane, then your
"prefer-air-targets" -addon will attack the expensive plane before the other plane.

Thats how I get it anyway.  :P :)

 
« Last Edit: 01 Apr 2004, 12:58:46 by Tomb »

Offline Kurayami

  • Members
  • *
Re:Some config questions.
« Reply #5 on: 01 Apr 2004, 15:29:28 »
Ah. That makes sense. Thanks.

Offline Kurayami

  • Members
  • *
Re:Some config questions.
« Reply #6 on: 05 Apr 2004, 07:40:31 »
Anybody have the answers for the rest?
« Last Edit: 05 Apr 2004, 07:40:56 by Kurayami »