diff options
author | Tim Angus <tim@ngus.net> | 2001-08-22 01:39:29 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2001-08-22 01:39:29 +0000 |
commit | 63aa00f4ca28b3c4528721f79f1c08c7f1f97195 (patch) | |
tree | 12529739f6c2b84d67b6e1cd2dee671476da49f3 /src/game/g_misc.c | |
parent | 3cd412949b4cc08e83ffde2ac9cdfd506330b21b (diff) |
Lens flares :)
Diffstat (limited to 'src/game/g_misc.c')
-rw-r--r-- | src/game/g_misc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game/g_misc.c b/src/game/g_misc.c index 03530500..b6711afd 100644 --- a/src/game/g_misc.c +++ b/src/game/g_misc.c @@ -459,3 +459,13 @@ void SP_misc_anim_model( gentity_t *self ) trap_LinkEntity( self ); } + +//TA: spawn function for lens flares +void SP_misc_lens_flare( gentity_t *self ) +{ + self->s.eType = ET_LENSFLARE; + self->s.modelindex = G_ShaderIndex( self->targetShaderName ); + VectorCopy( self->pos2, self->s.origin2 ); + + trap_LinkEntity( self ); +} |