From fd65393a26be093d770d4b77e17381fab2862aed Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Fri, 2 Dec 2005 01:58:49 +0000 Subject: * Added target_alien_win and target_human_win * Made the test for particles at rest less strict * Fixed a bug with the game element disabling stuff --- src/game/g_target.c | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'src/game/g_target.c') diff --git a/src/game/g_target.c b/src/game/g_target.c index 216b2550..c704d72f 100644 --- a/src/game/g_target.c +++ b/src/game/g_target.c @@ -390,3 +390,43 @@ void SP_target_rumble( gentity_t *self ) self->think = target_rumble_think; self->use = target_rumble_use; } + +/* +=============== +target_alien_win_use +=============== +*/ +void target_alien_win_use( gentity_t *self, gentity_t *other, gentity_t *activator ) +{ + level.uncondAlienWin = qtrue; +} + +/* +=============== +SP_target_alien_win +=============== +*/ +void SP_target_alien_win( gentity_t *self ) +{ + self->use = target_alien_win_use; +} + +/* +=============== +target_human_win_use +=============== +*/ +void target_human_win_use( gentity_t *self, gentity_t *other, gentity_t *activator ) +{ + level.uncondHumanWin = qtrue; +} + +/* +=============== +SP_target_human_win +=============== +*/ +void SP_target_human_win( gentity_t *self ) +{ + self->use = target_human_win_use; +} -- cgit