diff options
author | Tim Angus <tim@ngus.net> | 2005-12-02 01:58:49 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2005-12-02 01:58:49 +0000 |
commit | fd65393a26be093d770d4b77e17381fab2862aed (patch) | |
tree | 6eaf92a9a0728ce28011f45fd09a83e24ce423f9 /src/game/g_target.c | |
parent | 32d5e0a42e3d06ce6ce94dc42d4cc5e50fc8061f (diff) |
* 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
Diffstat (limited to 'src/game/g_target.c')
-rw-r--r-- | src/game/g_target.c | 40 |
1 files changed, 40 insertions, 0 deletions
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; +} |