From 943539a1a7741d395667f2830b31cfdfea5e0816 Mon Sep 17 00:00:00 2001 From: Petr Pudlak Date: Tue, 19 Aug 2014 22:24:50 +0200 Subject: The head-shot mod: headshots on humans splash blood around .. using the particle system. Blood drops splat on impact. --- src/cgame/cg_main.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/cgame/cg_main.c') diff --git a/src/cgame/cg_main.c b/src/cgame/cg_main.c index 1bd5c7f..c7b470c 100644 --- a/src/cgame/cg_main.c +++ b/src/cgame/cg_main.c @@ -190,6 +190,8 @@ vmCvar_t cg_disableBuildDialogs; vmCvar_t cg_disableCommandDialogs; vmCvar_t cg_disableScannerPlane; vmCvar_t cg_tutorial; +vmCvar_t cg_bleedSelfWounds; +vmCvar_t cg_bleedSelfHeadShots; vmCvar_t cg_painBlendUpRate; vmCvar_t cg_painBlendDownRate; @@ -317,6 +319,8 @@ static cvarTable_t cvarTable[ ] = { &cg_disableCommandDialogs, "cg_disableCommandDialogs", "0", CVAR_ARCHIVE }, { &cg_disableScannerPlane, "cg_disableScannerPlane", "0", CVAR_ARCHIVE }, { &cg_tutorial, "cg_tutorial", "1", CVAR_ARCHIVE }, + { &cg_bleedSelfWounds, "cg_bleedSelfWounds", "1", CVAR_ARCHIVE }, + { &cg_bleedSelfHeadShots, "cg_bleedSelfHeadShots", "1", CVAR_ARCHIVE }, { &cg_hudFiles, "cg_hudFiles", "ui/hud.txt", CVAR_ARCHIVE}, { &cg_hudFilesEnable, "cg_hudFilesEnable", "0", CVAR_ARCHIVE}, { NULL, "cg_alienConfig", "", CVAR_ARCHIVE }, @@ -858,6 +862,10 @@ static void CG_RegisterGraphics( void ) cgs.media.alienSpiteful_AbcessDestroyedPS = CG_RegisterParticleSystem( "alienSpiteful_AbcessDestroyedPS" ); + cgs.media.alienWoundsBleedPS = CG_RegisterParticleSystem( "alienWoundBleedPS" ); + cgs.media.humanWoundsBleedPS = CG_RegisterParticleSystem( "humanWoundBleedPS" ); + cgs.media.headShotPS = CG_RegisterParticleSystem( "headShotPS" ); + CG_BuildableStatusParse( "ui/assets/human/buildstat.cfg", &cgs.humanBuildStat ); CG_BuildableStatusParse( "ui/assets/alien/buildstat.cfg", &cgs.alienBuildStat ); -- cgit