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
(Btw ET source is cool
)
Where should I look if I want a cvar to set ammaunt of mines
Florisjuh
(Floris)
#1
Jaquboss
(Jaquboss)
#2
g_public.h #define MAX_TEAM_LANDMINES 10 , should be #define MAX_TEAM_LANDMINES g_maxmines.integer i think
Chruker
(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)
Jaquboss
(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
(*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