X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;ds=inline;f=ent_objective.c;fp=ent_objective.c;h=ee52af7518ff12062a82380925cca437e57a1bb9;hb=d09933d9ff5d3b49e48bff09c67c991c11b631e6;hp=68a3dd015f69882562201beadc2111940adeb19d;hpb=99376ce8eaf30125fb08dd5dc8b534800580fe47;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/ent_objective.c b/ent_objective.c index 68a3dd0..ee52af7 100644 --- a/ent_objective.c +++ b/ent_objective.c @@ -4,6 +4,7 @@ #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 ){ @@ -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 ); - else + else{ vg_info( "pass challenge point\n" ); + audio_oneshot_3d( &audio_challenge[0], localplayer.rb.co, + 30.0f, 1.0f ); + } } 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; @@ -82,7 +87,9 @@ VG_STATIC void ent_objective_call( world_instance *world, ent_call *call ){ 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; }