comparison Engine/Objects/SpriteObject.cpp @ 2534:1bcadc6dd203

enum SOUND_
author Ritor1
date Mon, 09 Feb 2015 19:17:12 +0600
parents 9b96a51011fb
children a902abdfc7f2
comparison
equal deleted inserted replaced
2533:2baaac65d5bf 2534:1bcadc6dd203
1080 v8 = a1.Create(0, 0, 0, 0); 1080 v8 = a1.Create(0, 0, 0, 0);
1081 if ( v8 != -1 ) 1081 if ( v8 != -1 )
1082 { 1082 {
1083 v9 = 8 * v8; 1083 v9 = 8 * v8;
1084 LOBYTE(v9) = v9 | 2; 1084 LOBYTE(v9) = v9 | 2;
1085 pAudioPlayer->PlaySound((SoundID)(SOUND_GoldReceived|0x14), v9, 0, -1, 0, 0, 0, 0); 1085 pAudioPlayer->PlaySound((SoundID)SOUND_splash, v9, 0, -1, 0, 0, 0, 0);
1086 } 1086 }
1087 } 1087 }
1088 1088
1089 //----- (0046BFFA) -------------------------------------------------------- 1089 //----- (0046BFFA) --------------------------------------------------------
1090 bool __fastcall _46BFFA_check_object_intercept(unsigned int uLayingItemID, signed int a2) 1090 bool __fastcall _46BFFA_check_object_intercept(unsigned int uLayingItemID, signed int a2)
1243 pSpriteObjects[uLayingItemID].vVelocity.y = 0; 1243 pSpriteObjects[uLayingItemID].vVelocity.y = 0;
1244 pSpriteObjects[uLayingItemID].vVelocity.x = 0; 1244 pSpriteObjects[uLayingItemID].vVelocity.x = 0;
1245 pSpriteObjects[uLayingItemID].uSpriteFrameID = 0; 1245 pSpriteObjects[uLayingItemID].uSpriteFrameID = 0;
1246 v13 = 8 * uLayingItemID; 1246 v13 = 8 * uLayingItemID;
1247 LOBYTE(v13) = PID(OBJECT_Item, uLayingItemID); 1247 LOBYTE(v13) = PID(OBJECT_Item, uLayingItemID);
1248 pAudioPlayer->PlaySound(SOUND_Explosion, v13, 0, -1, 0, 0, 0, 0); 1248 pAudioPlayer->PlaySound(SOUND_fireBall, v13, 0, -1, 0, 0, 0, 0);
1249 return 0; 1249 return 0;
1250 } 1250 }
1251 1251
1252 1252
1253 case 500: 1253 case 500:
1277 pSpriteObjects[uLayingItemID].uSpriteFrameID = 0; 1277 pSpriteObjects[uLayingItemID].uSpriteFrameID = 0;
1278 if (pSpriteObjects[uLayingItemID].uType == 555) 1278 if (pSpriteObjects[uLayingItemID].uType == 555)
1279 { 1279 {
1280 v13 = 8 * uLayingItemID; 1280 v13 = 8 * uLayingItemID;
1281 LOBYTE(v13) = PID(OBJECT_Item, uLayingItemID); 1281 LOBYTE(v13) = PID(OBJECT_Item, uLayingItemID);
1282 pAudioPlayer->PlaySound(SOUND_Explosion, v13, 0, -1, 0, 0, 0, 0); 1282 pAudioPlayer->PlaySound(SOUND_fireBall, v13, 0, -1, 0, 0, 0, 0);
1283 } 1283 }
1284 return 0; 1284 return 0;
1285 } 1285 }
1286 1286
1287 case 545: 1287 case 545:
1337 pSpriteObjects[uLayingItemID].uSpriteFrameID = 0; 1337 pSpriteObjects[uLayingItemID].uSpriteFrameID = 0;
1338 if (!v44) 1338 if (!v44)
1339 { 1339 {
1340 v13 = 8 * uLayingItemID; 1340 v13 = 8 * uLayingItemID;
1341 LOBYTE(v13) = PID(OBJECT_Item, uLayingItemID); 1341 LOBYTE(v13) = PID(OBJECT_Item, uLayingItemID);
1342 pAudioPlayer->PlaySound(SOUND_Explosion, v13, 0, -1, 0, 0, 0, 0); 1342 pAudioPlayer->PlaySound(SOUND_fireBall, v13, 0, -1, 0, 0, 0, 0);
1343 return 0; 1343 return 0;
1344 } 1344 }
1345 return 0; 1345 return 0;
1346 } 1346 }
1347 1347
1368 pSpriteObjects[uLayingItemID].uSpriteFrameID = 0; 1368 pSpriteObjects[uLayingItemID].uSpriteFrameID = 0;
1369 v147 = v38; 1369 v147 = v38;
1370 AttackerInfo.Add(v38, 512, v40, v39, v37, 0, 0); 1370 AttackerInfo.Add(v38, 512, v40, v39, v37, 0, 0);
1371 if (object->uFlags & OBJECT_DESC_TRIAL_PARTICLE) 1371 if (object->uFlags & OBJECT_DESC_TRIAL_PARTICLE)
1372 trail_particle_generator.GenerateTrailParticles(pSpriteObjects[uLayingItemID].vPosition.x, pSpriteObjects[uLayingItemID].vPosition.y, pSpriteObjects[uLayingItemID].vPosition.z, object->uParticleTrailColor); 1372 trail_particle_generator.GenerateTrailParticles(pSpriteObjects[uLayingItemID].vPosition.x, pSpriteObjects[uLayingItemID].vPosition.y, pSpriteObjects[uLayingItemID].vPosition.z, object->uParticleTrailColor);
1373 pAudioPlayer->PlaySound(SOUND_Explosion, v147, 0, -1, 0, 0, 0, 0); 1373 pAudioPlayer->PlaySound(SOUND_fireBall, v147, 0, -1, 0, 0, 0, 0);
1374 return 0; 1374 return 0;
1375 } 1375 }
1376 1376
1377 case 1010: 1377 case 1010:
1378 case 1100: 1378 case 1100: