summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/g_buildable.c16
-rw-r--r--src/game/tremulous.h6
2 files changed, 21 insertions, 1 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index 93514727..0f6a84d2 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -445,6 +445,14 @@ 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( self->s.modelindex == BA_A_OVERMIND )
+ attacker->client->ps.persistant[ PERS_CREDIT ] += OVERMIND_VALUE;
+ else if( self->s.modelindex == BA_A_SPAWN )
+ attacker->client->ps.persistant[ PERS_CREDIT ] += ASPAWN_VALUE;
+ }
+
trap_LinkEntity( self );
}
@@ -1691,6 +1699,14 @@ 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( self->s.modelindex == BA_H_REACTOR )
+ attacker->client->ps.persistant[ PERS_CREDIT ] += REACTOR_VALUE;
+ else if( self->s.modelindex == BA_H_SPAWN )
+ attacker->client->ps.persistant[ PERS_CREDIT ] += HSPAWN_VALUE;
+ }
+
trap_LinkEntity( self );
}
diff --git a/src/game/tremulous.h b/src/game/tremulous.h
index 016600ac..b2da4117 100644
--- a/src/game/tremulous.h
+++ b/src/game/tremulous.h
@@ -189,6 +189,7 @@
#define ASPAWN_SPLASHDAMAGE 50
#define ASPAWN_SPLASHRADIUS 50
#define ASPAWN_CREEPSIZE 120
+#define ASPAWN_VALUE 150
#define BARRICADE_BP 80
#define BARRICADE_HEALTH ABHM(250)
@@ -233,6 +234,7 @@
#define OVERMIND_CREEPSIZE 120
#define OVERMIND_ATTACK_RANGE 150.0f
#define OVERMIND_ATTACK_REPEAT 1000
+#define OVERMIND_VALUE 300
#define HOVEL_BP 80
#define HOVEL_HEALTH ABHM(750)
@@ -292,7 +294,7 @@
#define CHAINGUN_SPREAD 1200
#define CHAINGUN_DMG HDM(14)
-#define FLAMER_GAS 40
+#define FLAMER_GAS 80
#define FLAMER_REPEAT 300
#define FLAMER_PRICE 300
#define FLAMER_DMG HDM(30)
@@ -401,6 +403,7 @@
#define HSPAWN_HEALTH HBHM(500)
#define HSPAWN_SPLASHDAMAGE 50
#define HSPAWN_SPLASHRADIUS 100
+#define HSPAWN_VALUE 1
#define MEDISTAT_BP 80
#define MEDISTAT_HEALTH HBHM(200)
@@ -444,6 +447,7 @@
#define REACTOR_HEALTH HBHM(1000)
#define REACTOR_SPLASHDAMAGE 200
#define REACTOR_SPLASHRADIUS 300
+#define REACTOR_VALUE 2
#define REPEATER_BP 100
#define REPEATER_HEALTH HBHM(200)