diff options
author | Tim Angus <tim@ngus.net> | 2003-08-13 03:21:41 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2003-08-13 03:21:41 +0000 |
commit | 80de4f4d3406bf9af27dcd297f6bedb776b1fa18 (patch) | |
tree | c384e5633189305c46a94cdc094ae8befc34b447 /src/game | |
parent | 9cbbda861caa3d4a61a049e4c33bf873d87f50d7 (diff) |
* Sound is now played upon recharging weapons from the reactor/repeater
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/bg_public.h | 3 | ||||
-rw-r--r-- | src/game/g_buildable.c | 1 | ||||
-rw-r--r-- | src/game/tremulous.h | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/src/game/bg_public.h b/src/game/bg_public.h index c914643a..20fced4b 100644 --- a/src/game/bg_public.h +++ b/src/game/bg_public.h @@ -532,7 +532,8 @@ typedef enum EV_BUILD_DELAY, //TA: can't build yet EV_POISONCLOUD, //TA: client poisoned EV_KNOCKOVER, //TA: client knocked over - EV_GETUP //TA: client getting up + EV_GETUP, //TA: client getting up + EV_RPTUSE_SOUND //TA: trigger a sound } entity_event_t; typedef enum diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index 0f6a84d2..640fa752 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -1144,6 +1144,7 @@ void HRpt_Use( gentity_t *self, gentity_t *other, gentity_t *activator ) BG_packAmmoArray( ps->weapon, ps->ammo, ps->powerups, ammo, clips, maxClips ); + G_AddEvent( activator, EV_RPTUSE_SOUND, 0 ); activator->client->lastRefilTime = level.time; } diff --git a/src/game/tremulous.h b/src/game/tremulous.h index b2da4117..884e6526 100644 --- a/src/game/tremulous.h +++ b/src/game/tremulous.h @@ -454,7 +454,7 @@ #define REPEATER_SPLASHDAMAGE 50 #define REPEATER_SPLASHRADIUS 100 -#define ENERGY_REFIL_TIME 500 //1/2 second between every clip refil +#define ENERGY_REFIL_TIME 1000 //1/2 second between every clip refil #define FLOATMINE_BP 50 #define FLOATMINE_HEALTH HBHM(10) |