slashback79 | 2012-07-05 14:26
Interactive music script in Cube

I'm doing a project for university looking at audio design for games and I'm using Cube as the game and Audiokinetic's Wwise and the audio engine.
For the most part I can go into the source, modify the code to trigger Wwise sound events for things like weapons and footsteps etc, but I'm struggling getting an interactive music system going.
I have an event in Wwise that contains ambient, tension and action music sequences and there is a game switch to change between them.
What I want to do is have it so ambient is default but if the player is within X distance of a monster the switch is set to tension and if the monster has seen the player the switch is set to action.

I have been following this tutorial which works fine with just one monster but it fails in a single player or deathmatch map with many monsters.
I think its because its checking the distance to the player for every enemy every frame.
http://www.gatheral.co.uk/tutorials/wwise/index.php?/archives/3-Music-Transitions.html

Anyone have an idea on how this can be achieved in Cube?

0
points
 (0 votes)
User login
Users on Quadropolis
1 guest & no users online
Getridou
Created 2020-07-02 18:52
4 hours 49 min ago
LURKing
10
points ]
 (1 vote)
Created 2020-07-01 13:16
1 day 10 hours ago
70
points ]
 (7 votes)
Created 2020-01-24 22:26
22 weeks 6 days ago
TheMisterCat
16
points ]
 (2 votes)
Created 2007-02-21 18:06
13 years 19 weeks ago
92
points ]
 (11 votes)
Created 2011-05-17 17:36
9 years 7 weeks ago
Created 2020-05-14 12:56
7 weeks 10 hours ago
18
points ]
 (2 votes)
Created 2020-06-01 20:40
4 weeks 3 days ago
30
points ]
 (3 votes)
Created 2018-09-17 02:06
1 year 41 weeks ago
26
points ]
 (3 votes)
Created 2020-06-27 11:13
5 days 12 hours ago
LURKing
40
points ]
 (5 votes)
Created 2020-05-09 17:56
7 weeks 5 days ago
30
points ]
 (3 votes)
Created 2020-06-13 21:05
2 weeks 5 days ago
7YearBitch
8
points ]
 (1 vote)
Created 2020-06-14 17:58
2 weeks 4 days ago
7YearBitch
44
points ]
 (5 votes)
Created 2020-06-02 09:43
4 weeks 2 days ago
LURKing
25
points ]
 (3 votes)
Created 2020-06-12 18:25
2 weeks 6 days ago
7YearBitch
15
points ]
 (2 votes)
Created 2020-06-07 14:58
3 weeks 4 days ago
7YearBitch
15
points ]
 (2 votes)
Created 2020-06-07 14:48
3 weeks 4 days ago
19
points ]
 (2 votes)
Created 2020-05-31 16:27
4 weeks 4 days ago
38
points ]
 (4 votes)
Created 2020-05-16 23:15
6 weeks 5 days ago
224
points ]
 (23 votes)
Created 2012-10-20 09:56
7 years 36 weeks ago
Gangler
10
points ]
 (1 vote)
Created 2020-05-12 22:59
7 weeks 2 days ago
Who's new
  • Getridou
  • Spr1te
  • Akari
  • LURKing
  • Antknee55