diff options
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/bg_public.h | 22 | ||||
-rw-r--r-- | src/game/g_buildable.c | 4 | ||||
-rw-r--r-- | src/game/g_missile.c | 20 | ||||
-rw-r--r-- | src/game/g_weapon.c | 6 |
4 files changed, 24 insertions, 28 deletions
diff --git a/src/game/bg_public.h b/src/game/bg_public.h index 4ed62ec7..7984645c 100644 --- a/src/game/bg_public.h +++ b/src/game/bg_public.h @@ -781,19 +781,14 @@ typedef enum { MOD_UNKNOWN, MOD_SHOTGUN, - MOD_GAUNTLET, + MOD_BLASTER, MOD_MACHINEGUN, MOD_CHAINGUN, - MOD_GRENADE, - MOD_GRENADE_SPLASH, - MOD_ROCKET, - MOD_ROCKET_SPLASH, + MOD_PRIFLE, + MOD_LCANNON, + MOD_LCANNON_SPLASH, MOD_FLAMER, MOD_FLAMER_SPLASH, - MOD_RAILGUN, - MOD_LIGHTNING, - MOD_BFG, - MOD_BFG_SPLASH, MOD_WATER, MOD_SLIME, MOD_LAVA, @@ -803,10 +798,15 @@ typedef enum MOD_SUICIDE, MOD_TARGET_LASER, MOD_TRIGGER_HURT, - MOD_GRAPPLE, + MOD_VENOM, + MOD_SLOWBLOB, + MOD_HSPAWN, - MOD_ASPAWN + MOD_TESLAGEN, + MOD_ASPAWN, + MOD_ATUBE, + MOD_OVERMIND } meansOfDeath_t; diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index 224efc72..c10df521 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -447,7 +447,7 @@ void ASpawn_Die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int self->think = ASpawn_Blast; self->nextthink = level.time + 5000; //wait .5 seconds before damaging others - if( attacker && attacker->client ) + if( attacker && attacker->client && attacker->client->ps.stats[ STAT_PTEAM ] == PTE_HUMANS ) { if( self->s.modelindex == BA_A_OVERMIND ) attacker->client->ps.persistant[ PERS_CREDIT ] += OVERMIND_VALUE; @@ -1743,7 +1743,7 @@ void HSpawn_Die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int self->nextthink = level.time + HUMAN_DETONATION_DELAY; self->powered = qfalse; //free up power - if( attacker && attacker->client ) + if( attacker && attacker->client && attacker->client->ps.stats[ STAT_PTEAM ] == PTE_ALIENS ) { if( self->s.modelindex == BA_H_REACTOR ) attacker->client->ps.persistant[ PERS_CREDIT ] += REACTOR_VALUE; diff --git a/src/game/g_missile.c b/src/game/g_missile.c index e106aff9..76f3cd10 100644 --- a/src/game/g_missile.c +++ b/src/game/g_missile.c @@ -312,8 +312,8 @@ gentity_t *fire_blaster( gentity_t *self, vec3_t start, vec3_t dir ) bolt->damage = BLASTER_DMG; bolt->splashDamage = 0; bolt->splashRadius = 0; - //bolt->methodOfDeath = MOD_FLAMER; - //bolt->splashMethodOfDeath = MOD_FLAMER_SPLASH; + bolt->methodOfDeath = MOD_BLASTER; + bolt->splashMethodOfDeath = MOD_BLASTER; bolt->clipmask = MASK_SHOT; bolt->target_ent = NULL; @@ -354,8 +354,8 @@ gentity_t *fire_pulseRifle( gentity_t *self, vec3_t start, vec3_t dir ) bolt->damage = PRIFLE_DMG; bolt->splashDamage = 0; bolt->splashRadius = 0; - //bolt->methodOfDeath = MOD_FLAMER; - //bolt->splashMethodOfDeath = MOD_FLAMER_SPLASH; + bolt->methodOfDeath = MOD_PRIFLE; + bolt->splashMethodOfDeath = MOD_PRIFLE; bolt->clipmask = MASK_SHOT; bolt->target_ent = NULL; @@ -399,8 +399,8 @@ gentity_t *fire_luciferCannon( gentity_t *self, vec3_t start, vec3_t dir, int da bolt->splashDamage = localDamage / 2; bolt->splashRadius = localDamage; bolt->s.generic1 = damage; - //bolt->methodOfDeath = MOD_FLAMER; - //bolt->splashMethodOfDeath = MOD_FLAMER_SPLASH; + bolt->methodOfDeath = MOD_LCANNON; + bolt->splashMethodOfDeath = MOD_LCANNON_SPLASH; bolt->clipmask = MASK_SHOT; bolt->target_ent = NULL; @@ -440,8 +440,6 @@ gentity_t *fire_lockblob( gentity_t *self, vec3_t start, vec3_t dir ) bolt->damage = 0; bolt->splashDamage = 0; bolt->splashRadius = 0; - bolt->methodOfDeath = MOD_ROCKET; - bolt->splashMethodOfDeath = MOD_ROCKET_SPLASH; bolt->clipmask = MASK_SHOT; bolt->target_ent = NULL; @@ -478,8 +476,8 @@ gentity_t *fire_slowBlob( gentity_t *self, vec3_t start, vec3_t dir ) bolt->damage = DRAGOON_SLOWBLOB_DMG; bolt->splashDamage = 0; bolt->splashRadius = 0; - bolt->methodOfDeath = MOD_ROCKET; - bolt->splashMethodOfDeath = MOD_ROCKET_SPLASH; + bolt->methodOfDeath = MOD_SLOWBLOB; + bolt->splashMethodOfDeath = MOD_SLOWBLOB; bolt->clipmask = MASK_SHOT; bolt->target_ent = NULL; @@ -516,8 +514,6 @@ gentity_t *fire_paraLockBlob( gentity_t *self, vec3_t start, vec3_t dir ) bolt->damage = 0; bolt->splashDamage = 0; bolt->splashRadius = 0; - bolt->methodOfDeath = MOD_ROCKET; - bolt->splashMethodOfDeath = MOD_ROCKET_SPLASH; bolt->clipmask = MASK_SHOT; bolt->target_ent = NULL; diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c index 2d9d0744..06be1359 100644 --- a/src/game/g_weapon.c +++ b/src/game/g_weapon.c @@ -402,7 +402,7 @@ void teslaFire( gentity_t *ent ) if( traceEnt->takedamage) { G_Damage( traceEnt, ent, ent, forward, tr.endpos, - damage, 0, MOD_LIGHTNING); + damage, 0, MOD_TESLAGEN ); } // snap the endpos to integers to save net bandwidth, but nudged towards the line @@ -774,7 +774,7 @@ void areaZapFire( gentity_t *ent ) //do some damage G_Damage( enemy, ent, ent, dir, tr.endpos, - damage, DAMAGE_NO_KNOCKBACK, MOD_LIGHTNING ); + damage, DAMAGE_NO_KNOCKBACK, MOD_TESLAGEN ); // snap the endpos to integers to save net bandwidth, but nudged towards the line SnapVectorTowards( tr.endpos, muzzle ); @@ -846,7 +846,7 @@ void directZapFire( gentity_t *ent ) { //do some damage G_Damage( target, ent, ent, dir, tr.endpos, - CHIMERA_DIRECTZAP_DMG, DAMAGE_NO_KNOCKBACK, MOD_LIGHTNING ); + CHIMERA_DIRECTZAP_DMG, DAMAGE_NO_KNOCKBACK, MOD_TESLAGEN ); // snap the endpos to integers to save net bandwidth, but nudged towards the line SnapVectorTowards( tr.endpos, muzzle ); |