Where should I look if I want a cvar to set ammaunt of mines


(Floris) #1

I’ve looked in the source, and searched these forums but I nowhere found a way to set a maximum of team mines using a cvar… I know how a cvar works… If someone could just point out where the maximyum ammaunt of mines is set I’ll be a happy man :stuck_out_tongue: (Btw ET source is cool :slight_smile: )


(Jaquboss) #2

g_public.h #define MAX_TEAM_LANDMINES 10 , should be #define MAX_TEAM_LANDMINES g_maxmines.integer i think


(Chruker) #3

There is no g_maxmines CVAR. So you would first have to create a new CVAR for it. Then you must remove the definition Jaquboss was talking about, and finally replace the usage of MAX_TEAM_LANDMINES with your new CVAR in g_weapon.c (1 place)


(Floris) #4

Thank you very much :slight_smile:


(Jaquboss) #5

You cant define via CVAR ? (In quake 3 there is some things defined like this , for exampe #define blahblah g_blahlblalglbah
anyways it is better…
and I thought he knows how to define cvars , so I haven´t mentioned that…


(*Shadow* Commando) #6

when you do #define MAX_TEAM_LANDMINES g_maxmines it works…
I tried it today, you only need to make the cvar