summaryrefslogtreecommitdiff
path: root/src/cgame
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgame')
-rw-r--r--src/cgame/cg_local.h9
-rw-r--r--src/cgame/cg_main.c3
2 files changed, 12 insertions, 0 deletions
diff --git a/src/cgame/cg_local.h b/src/cgame/cg_local.h
index 4f218d9a..89ca9e80 100644
--- a/src/cgame/cg_local.h
+++ b/src/cgame/cg_local.h
@@ -744,6 +744,9 @@ typedef struct {
qhandle_t metalGib6;
qhandle_t metalGib7;
qhandle_t metalGib8;
+
+ qhandle_t gibSpark1;
+ qhandle_t gibSpark2;
qhandle_t smoke2;
@@ -1353,6 +1356,12 @@ void CG_InitBuildables( );
// cg_spriter.c
//
void CG_Spriter( centity_t *cent );
+void CG_LaunchSprite( const vec3_t p, const vec3_t vel, const vec3_t accel, float bounce,
+ float initRad, float finalRad,
+ float initAlp, float finalAlp,
+ float rotation,
+ int startTime, int duration,
+ qhandle_t hShader, qboolean overdraw, qboolean realLight );
//
// cg_animmapobj.c
diff --git a/src/cgame/cg_main.c b/src/cgame/cg_main.c
index 6e5ab71b..12eb4265 100644
--- a/src/cgame/cg_main.c
+++ b/src/cgame/cg_main.c
@@ -847,6 +847,9 @@ static void CG_RegisterGraphics( void ) {
cgs.media.metalGib7 = trap_R_RegisterModel( "models/fx/metal_gibs/m_gib7.md3" );
cgs.media.metalGib8 = trap_R_RegisterModel( "models/fx/metal_gibs/m_gib8.md3" );
+ cgs.media.gibSpark1 = trap_R_RegisterShader( "models/fx/metal_gibs/spark.jpg" );
+ cgs.media.gibSpark2 = trap_R_RegisterShader( "models/fx/metal_gibs/spark2.jpg" );
+
cgs.media.smoke2 = trap_R_RegisterModel( "models/weapons2/shells/s_shell.md3" );
cgs.media.balloonShader = trap_R_RegisterShader( "sprites/balloon3" );