diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2015-04-03 13:51:24 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2015-04-03 13:51:24 +0200 |
commit | f639515054b2122c7166793f7c0a0a751087209f (patch) | |
tree | f0664d6ea1037f93450e5e53b8ecb5060226c170 /src/cgame/cg_main.c | |
parent | 0d5460522ba3651da1ed5630f7f8a784c5eb6514 (diff) |
Make health bars customizable with cvars.
Diffstat (limited to 'src/cgame/cg_main.c')
-rw-r--r-- | src/cgame/cg_main.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cgame/cg_main.c b/src/cgame/cg_main.c index 714b0d8..0fdb028 100644 --- a/src/cgame/cg_main.c +++ b/src/cgame/cg_main.c @@ -235,6 +235,9 @@ vmCvar_t cg_viewQuakeLimit; vmCvar_t cg_damageBlobSize; vmCvar_t cg_damageBlobAlpha; +vmCvar_t cg_healthBarSize; +vmCvar_t cg_healthBarAlpha; + typedef struct { vmCvar_t *vmCvar; @@ -385,7 +388,10 @@ static cvarTable_t cvarTable[ ] = { &cg_viewQuakeLimit, "cg_viewQuakeLimit", "5", CVAR_ARCHIVE }, { &cg_damageBlobSize, "cg_damageBlobSize", "400", CVAR_ARCHIVE }, - { &cg_damageBlobAlpha, "cg_damageBlobAlpha", "0.8", CVAR_ARCHIVE } + { &cg_damageBlobAlpha, "cg_damageBlobAlpha", "0.8", CVAR_ARCHIVE }, + + { &cg_healthBarSize, "cg_healthBarSize", "2000", CVAR_ARCHIVE }, + { &cg_healthBarAlpha, "cg_healthBarAlpha", "0.5", CVAR_ARCHIVE } }; static int cvarTableSize = sizeof( cvarTable ) / sizeof( cvarTable[0] ); |