summaryrefslogtreecommitdiff
path: root/src/game/g_main.c
diff options
context:
space:
mode:
authorMikko Tiusanen <ams@daug.net>2014-10-19 05:42:30 +0300
committerMikko Tiusanen <ams@daug.net>2014-10-19 05:42:30 +0300
commit6a2088d0eabf9df6568836b42d0dc436e19ecf17 (patch)
treec21d02f750fff510f0bf735313807a6bebf2dd29 /src/game/g_main.c
parentd427c2d880786507e57ad943be39c559421d3190 (diff)
Dretches can damage turrets and buildings. Amount of damage compared to base damage is controlled by cvars.
Diffstat (limited to 'src/game/g_main.c')
-rw-r--r--src/game/g_main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c
index 481e1d1..39b92a4 100644
--- a/src/game/g_main.c
+++ b/src/game/g_main.c
@@ -198,6 +198,8 @@ vmCvar_t g_TimerCommand;
vmCvar_t g_ForceRandomTeams;
vmCvar_t g_AutoLevelMinTeamSize;
vmCvar_t g_RageQuitScorePenalty;
+vmCvar_t g_DretchTurretDamage;
+vmCvar_t g_DretchBuildingDamage;
// copy cvars that can be set in worldspawn so they can be restored later
static char cv_gravity[ MAX_CVAR_VALUE_STRING ];
@@ -365,7 +367,9 @@ static cvarTable_t gameCvarTable[ ] =
{ &g_TimerCommand, "g_TimerCommand", "", CVAR_ARCHIVE, 0, qfalse },
{ &g_ForceRandomTeams, "g_ForceRandomTeams", "0", CVAR_ARCHIVE, 0, qfalse },
{ &g_AutoLevelMinTeamSize, "g_AutoLevelMinTeamSize", "3", CVAR_ARCHIVE, 0, qfalse },
- { &g_RageQuitScorePenalty, "g_RageQuitScorePenalty", "2000", CVAR_ARCHIVE, 0, qfalse }
+ { &g_RageQuitScorePenalty, "g_RageQuitScorePenalty", "2000", CVAR_ARCHIVE, 0, qfalse },
+ { &g_DretchTurretDamage, "g_DretchTurretDamage", "1", CVAR_ARCHIVE, 0, qfalse },
+ { &g_DretchBuildingDamage, "g_DretchBuildingDamage", "0.5", CVAR_ARCHIVE, 0, qfalse }
};
static int gameCvarTableSize = sizeof( gameCvarTable ) / sizeof( gameCvarTable[ 0 ] );
void G_InitGame( int levelTime, int randomSeed, int restart );