PDA

View Full Version : CFG Calling from within default CFG


Pavak
03-16-2004, 12:52 PM
ok here goes another question im sure i already know the answere to but here it is any way.

I have a .cfg file that says
g_teamdamge 0
and another that says
g_teamdamage 1

if im in the game can i call one or the other to change the current frindly fire settings?
and if i can do then then in my vstr Map list could i do thit?

set x5 "exec changeA.cfg; map obj/MP_Ardennes_TOW; set nextmap vstr x6"

changeA.cfg
g_gametype 5
g_teamdamge 1

and would this change only those setings and leave all the other settings as set by lets say my default TOW.cfg ?

TJay83rd
03-16-2004, 08:06 PM
It would be alot easier to to just use set g_teamdamage 1 or 0. That will change the FF setting on the fly.

Domz
03-17-2004, 03:03 PM
It would be alot easier to to just use set g_teamdamage 1 or 0. That will change the FF setting on the fly.

w3rd... don't be lazy!

-Domz

Pavak
03-17-2004, 03:49 PM
teamdamage is not realy the question the question is can I call an outside cfg in the middle of my current cfg.
if i call another cfg does it run everything in that cfg then come back to the cfg that called it, and iff so can i set up all the game stuff in the called cfg in order to make changes to how the game functions.
I was only using teamdamage as an example of what im looking to do. all I was looking for was a YES or NO not alternate ways of getting the job done.
I have fond that YES i can do this sort of, some times, maby. doesnt realy work to well for what i was trying though.

TJay83rd
03-17-2004, 06:10 PM
if i call another cfg does it run everything in that cfg then come back to the cfg that called it

No. When you exe a cfg it runs untill you exe another cfg.

Pavak
03-17-2004, 07:47 PM
Thank you...

GaSplat
03-17-2004, 10:27 PM
I have had success execing one config from the middle of another, and coming back to execute the remaining commands in the original config (to include later calls to exec other configs). I have not tried chaining configs though (one calls a seond, and the second calls a third). The original config was the only one that execed other configs.

Pavak
04-01-2004, 03:29 PM
GaSplat
How do you run the primary .cfg and call other sub .cfg files from it with the sub .cfg then returning to the primary???