projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cool
[carveJwlIkooP6JGAAIwe30JlM.git]
/
ent_objective.c
diff --git
a/ent_objective.c
b/ent_objective.c
index 68a3dd015f69882562201beadc2111940adeb19d..ee52af7518ff12062a82380925cca437e57a1bb9 100644
(file)
--- a/
ent_objective.c
+++ b/
ent_objective.c
@@
-4,6
+4,7
@@
#include "world.h"
#include "world_load.h"
#include "entity.h"
#include "world.h"
#include "world_load.h"
#include "entity.h"
+#include "audio.h"
VG_STATIC void ent_objective_pass( world_instance *world,
ent_objective *objective ){
VG_STATIC void ent_objective_pass( world_instance *world,
ent_objective *objective ){
@@
-17,11
+18,15
@@
VG_STATIC void ent_objective_pass( world_instance *world,
if( next->filter & k_ent_objective_filter_passthrough )
ent_objective_pass( world, next );
if( next->filter & k_ent_objective_filter_passthrough )
ent_objective_pass( world, next );
- else
+ else
{
vg_info( "pass challenge point\n" );
vg_info( "pass challenge point\n" );
+ audio_oneshot_3d( &audio_challenge[0], localplayer.rb.co,
+ 30.0f, 1.0f );
+ }
}
else {
}
else {
- vg_success( "NYU Film school graduate SUCKAH\n" );
+ vg_success( "challenge win\n" );
+ audio_oneshot( &audio_challenge[2], 1.0f, 0.0f );
world_static.challenge_target = NULL;
world_static.challenge_timer = 0.0f;
world_static.challenge_target = NULL;
world_static.challenge_timer = 0.0f;
@@
-82,7
+87,9
@@
VG_STATIC void ent_objective_call( world_instance *world, ent_call *call ){
ent_objective_pass( world, objective );
}
else {
ent_objective_pass( world, objective );
}
else {
- vg_error( "womp womp\n" );
+ audio_oneshot_3d( &audio_challenge[6], localplayer.rb.co,
+ 30.0f, 1.0f );
+ vg_error( "challenge fialed\n" );
world_static.challenge_target = NULL;
world_static.challenge_timer = 0.0f;
}
world_static.challenge_target = NULL;
world_static.challenge_timer = 0.0f;
}