Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

adding alternative megahealth sounds

there will be a forum post about this
  • Loading branch information...
commit 164e0a8ede33fc6427aa68994fa4b8c462ed696a 1 parent 4e08306
Jan Raszyk authored March 13, 2011

Showing 1 changed file with 11 additions and 1 deletion. Show diff stats Hide diff stats

  1. 12  fmod.c
12  fmod.c
@@ -198,6 +198,12 @@ static check_models_hashes_entry_t mdlhash_unknown_end4 = { {0xe3a1b910, 0x28c4e
198 198
 // megaheath converted from Generations Arena
199 199
 static check_models_hashes_entry_t mdlhash_generations_b_bh100 = { {0xc6b455ff, 0xad7cb845, 0xa7356729, 0x35375fcf, 0x10adb479}, NULL };
200 200
 
  201
+// megahealth alternatives
  202
+// this one is said to be used in the US
  203
+static check_models_hashes_entry_t sound_items_r_item2_wav_us = {{0xf62a00d2, 0x5fceaaca, 0x25f91692, 0xf7602cb7, 0x230da525}, NULL};
  204
+// this is just 11kHz version of the US one, but resampled to 11 kHz
  205
+// this one might be used widely in russia
  206
+static check_models_hashes_entry_t sound_items_r_item2_wav_ru = {{0x83a8e646, 0xbc4cc313, 0xa07aa96e, 0x9d81eada, 0xf619bd10}, NULL};
201 207
 
202 208
 #define MAX_CHECK_MODELS 128
203 209
 #define	FMOD_DM 1
@@ -462,7 +468,11 @@ void FMod_Init (void)
462 468
 	FMod_AddModel ("sound/items/protect2.wav",	FMOD_DM | FMOD_TF,	sound_items_protect2_wav_FMOD_DM_FMOD_TF);
463 469
 	FMod_AddModel ("sound/items/protect3.wav",	FMOD_DM | FMOD_TF,	sound_items_protect3_wav_FMOD_DM_FMOD_TF);
464 470
 	FMod_AddModel ("sound/items/r_item1.wav",	FMOD_DM | FMOD_TF,	sound_items_r_item1_wav_FMOD_DM_FMOD_TF);
465  
-	FMod_AddModel ("sound/items/r_item2.wav",	FMOD_DM | FMOD_TF,	sound_items_r_item2_wav_FMOD_DM_FMOD_TF);
  471
+
  472
+	lastid = FMod_AddModel ("sound/items/r_item2.wav",	FMOD_DM | FMOD_TF,	sound_items_r_item2_wav_FMOD_DM_FMOD_TF);
  473
+	FMod_AddModelAlt(lastid, &sound_items_r_item2_wav_us);
  474
+	FMod_AddModelAlt(lastid, &sound_items_r_item2_wav_ru);
  475
+
466 476
 	FMod_AddModel ("sound/misc/water1.wav",		FMOD_DM | FMOD_TF,	sound_misc_water1_wav_FMOD_DM_FMOD_TF);
467 477
 	FMod_AddModel ("sound/misc/water2.wav",		FMOD_DM | FMOD_TF,	sound_misc_water2_wav_FMOD_DM_FMOD_TF);
468 478
 

0 notes on commit 164e0a8

Please sign in to comment.
Something went wrong with that request. Please try again.