diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2015-06-22 15:53:59 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2015-06-22 15:53:59 +0200 |
commit | 4f02df7e08cd3f16e3e1a048749b0c688346a60a (patch) | |
tree | afc7357a887ff5dc30b6a388232a864e712d68ed /src/game/g_missile.c | |
parent | 451f2ca7c8d832d2691dde2510e613373c312cd1 (diff) |
Remove Trapper.
Diffstat (limited to 'src/game/g_missile.c')
-rw-r--r-- | src/game/g_missile.c | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/src/game/g_missile.c b/src/game/g_missile.c index 071d26d..4bdd43f 100644 --- a/src/game/g_missile.c +++ b/src/game/g_missile.c @@ -101,9 +101,6 @@ void G_ExplodeMissile( gentity_t *ent ) ent->s.eType = ET_GENERAL; - if( ent->s.weapon != WP_LOCKBLOB_LAUNCHER ) - G_AddEvent( ent, EV_MISSILE_MISS, DirToByte( dir ) ); - ent->freeAfterEvent = qtrue; // splash damage @@ -160,16 +157,6 @@ void G_MissileImpact( gentity_t *ent, trace_t *trace ) return; } - else if( !strcmp( ent->classname, "lockblob" ) ) - { - if( other->client && other->client->ps.stats[ STAT_TEAM ] == TEAM_HUMANS ) - { - other->client->ps.stats[ STAT_STATE ] |= SS_BLOBLOCKED; - other->client->lastLockTime = level.time; - AngleVectors( other->client->ps.viewangles, dir, NULL, NULL ); - other->client->ps.stats[ STAT_VIEWLOCK ] = DirToByte( dir ); - } - } else if( !strcmp( ent->classname, "slowblob" ) ) { if( other->client && other->client->ps.stats[ STAT_TEAM ] == TEAM_HUMANS ) @@ -1451,43 +1438,6 @@ gentity_t *fire_hive( gentity_t *self, vec3_t start, vec3_t dir ) /* ================= -fire_lockblob -================= -*/ -gentity_t *fire_lockblob( gentity_t *self, vec3_t start, vec3_t dir ) -{ - gentity_t *bolt; - - VectorNormalize ( dir ); - bolt = G_Spawn( ); - bolt->classname = "lockblob"; - bolt->pointAgainstWorld = qtrue; - bolt->nextthink = level.time + 15000; - bolt->think = G_ExplodeMissile; - bolt->s.eType = ET_MISSILE; - bolt->r.svFlags = SVF_USE_CURRENT_ORIGIN; - bolt->s.weapon = WP_LOCKBLOB_LAUNCHER; - bolt->s.generic1 = WPM_PRIMARY; //weaponMode - bolt->r.ownerNum = self->s.number; - bolt->parent = self; - bolt->damage = 0; - bolt->splashDamage = 0; - bolt->splashRadius = 0; - bolt->methodOfDeath = MOD_UNKNOWN; //doesn't do damage so will never kill - bolt->clipmask = MASK_SHOT; - bolt->target_ent = NULL; - bolt->s.pos.trType = TR_LINEAR; - bolt->s.pos.trTime = level.time - MISSILE_PRESTEP_TIME; // move a bit on the very first frame - VectorCopy( start, bolt->s.pos.trBase ); - VectorScale( dir, 500, bolt->s.pos.trDelta ); - SnapVector( bolt->s.pos.trDelta ); // save net bandwidth - VectorCopy( start, bolt->r.currentOrigin ); - - return bolt; -} - -/* -================= fire_slowBlob ================= */ @@ -1571,42 +1521,6 @@ gentity_t *launch_mine( gentity_t *self, vec3_t start, vec3_t dir ) return bolt; } - -/* -================= -fire_paraLockBlob -================= -*/ -gentity_t *fire_paraLockBlob( gentity_t *self, vec3_t start, vec3_t dir ) -{ - gentity_t *bolt; - VectorNormalize ( dir ); - bolt = G_Spawn( ); - bolt->classname = "lockblob"; - bolt->pointAgainstWorld = qtrue; - bolt->nextthink = level.time + 15000; - bolt->think = G_ExplodeMissile; - bolt->s.eType = ET_MISSILE; - bolt->r.svFlags = SVF_USE_CURRENT_ORIGIN; - bolt->s.weapon = WP_LOCKBLOB_LAUNCHER; - bolt->s.generic1 = self->s.generic1; //weaponMode - bolt->r.ownerNum = self->s.number; - bolt->parent = self; - bolt->damage = 0; - bolt->splashDamage = 0; - bolt->splashRadius = 0; - bolt->clipmask = MASK_SHOT; - bolt->target_ent = NULL; - bolt->s.pos.trType = TR_GRAVITY; - bolt->s.pos.trTime = level.time - MISSILE_PRESTEP_TIME; // move a bit on the very first frame - VectorCopy( start, bolt->s.pos.trBase ); - VectorScale( dir, LOCKBLOB_SPEED, bolt->s.pos.trDelta ); - SnapVector( bolt->s.pos.trDelta ); // save net bandwidth - VectorCopy( start, bolt->r.currentOrigin ); - - return bolt; -} - /* ================= Prickles_Fire |