9a76eea2f5a4966f140916a40d0f5bf4b00fb01b | ecea45defab258134a175bcf8a178f1ac7e4243e | ||
---|---|---|---|
4670 | if (hits) | 4670 | if (hits) |
4671 | { | 4671 | { |
4672 | alien_claw(&Player_Weapon_Damage, ONE_FIXED * hits, 2500); | 4672 | alien_claw(&Player_Weapon_Damage, ONE_FIXED * hits, 2500); |
4673 | PlayAlienSound(0, ASC_Swipe, ((FastRandom() & 255) - 128), &weaponHandle, NULL); | 4673 | SpeciesSound(0, ASC_Swipe, ((FastRandom() & 255) - 128), &weaponHandle, &PlayerStatus.sbptr->DynPtr->Position, ALIEN_SOUND); |
4674 | } | 4674 | } |
4675 | 4675 | ||
4676 | PlayerStatus.WeaponStateTimeOutCounter -= NormalFrameTime; | 4676 | PlayerStatus.WeaponStateTimeOutCounter -= NormalFrameTime; |
... | ... | ||
4777 | CauseDamageToObject(Alien_Tail_Target, &Player_Weapon_Damage, multiple, &attack_dir); | 4777 | CauseDamageToObject(Alien_Tail_Target, &Player_Weapon_Damage, multiple, &attack_dir); |
4778 | } | 4778 | } |
4779 | 4779 | ||
4780 | PlayAlienSound(0, ASC_TailSound, ((FastRandom() & 255) - 128), &weaponHandle, NULL); | 4780 | SpeciesSound(0, ASC_TailSound, ((FastRandom() & 255) - 128), &weaponHandle, &PlayerStatus.sbptr->DynPtr->Position, ALIEN_SOUND); |
4781 | /* Slower recoil... */ | 4781 | /* Slower recoil... */ |
4782 | HModel_ChangeSpeed(&PlayersWeaponHModelController, ONE_FIXED); | 4782 | HModel_ChangeSpeed(&PlayersWeaponHModelController, ONE_FIXED); |
4783 | } | 4783 | } |
... | ... | ||
5289 | else if (PlayersWeaponHModelController.keyframe_flags & 1) | 5289 | else if (PlayersWeaponHModelController.keyframe_flags & 1) |
5290 | { | 5290 | { |
5291 | MeleeWeapon_90Degree_Front_Core(&TemplateAmmo[AMMO_PRED_WRISTBLADE].MaxDamage, 2500, 0); | 5291 | MeleeWeapon_90Degree_Front_Core(&TemplateAmmo[AMMO_PRED_WRISTBLADE].MaxDamage, 2500, 0); |
5292 | PlayPredatorSound(0, PSC_Swipe, ((FastRandom() & 255) - 128), &weaponHandle, NULL); | 5292 | SpeciesSound(0, PSC_Swipe, ((FastRandom() & 255) - 128), &weaponHandle, &PlayerStatus.sbptr->DynPtr->Position, PREDATOR_SOUND); |
5293 | } | 5293 | } |
5294 | 5294 | ||
5295 | PlayerStatus.WeaponState = WEAPONSTATE_FIRING_PRIMARY; | 5295 | PlayerStatus.WeaponState = WEAPONSTATE_FIRING_PRIMARY; |
... | ... | ||
5313 | CauseDamageToHModel(Trophy->DisplayBlock->HModelControlBlock, Trophy, &TemplateAmmo[AMMO_PRED_TROPHY_KILLSECTION].MaxDamage, ONE_FIXED, head_sec, NULL, NULL, 0); | 5313 | CauseDamageToHModel(Trophy->DisplayBlock->HModelControlBlock, Trophy, &TemplateAmmo[AMMO_PRED_TROPHY_KILLSECTION].MaxDamage, ONE_FIXED, head_sec, NULL, NULL, 0); |
5314 | 5314 | ||
5315 | if (PlayerStatus.sound_mouth == SOUND_NOACTIVEINDEX) | 5315 | if (PlayerStatus.sound_mouth == SOUND_NOACTIVEINDEX) |
5316 | PlayPredatorSound(0, PSC_Taunt, 0, &PlayerStatus.sound_mouth, &PlayerStatus.sbptr->DynPtr->Position); | 5316 | SpeciesSound(0, PSC_Taunt, 0, &PlayerStatus.sound_mouth, &PlayerStatus.sbptr->DynPtr->Position, PREDATOR_SOUND); |
5317 | 5317 | ||
5318 | CurrentGameStats_TrophyCollected(Trophy); | 5318 | CurrentGameStats_TrophyCollected(Trophy); |
5319 | } | 5319 | } |
... | ... | ||
5322 | MeleeWeapon_90Degree_Front_Core(&TemplateAmmo[AMMO_HEAVY_PRED_WRISTBLADE].MaxDamage, 2500, 1); | 5322 | MeleeWeapon_90Degree_Front_Core(&TemplateAmmo[AMMO_HEAVY_PRED_WRISTBLADE].MaxDamage, 2500, 1); |
5323 | } | 5323 | } |
5324 | 5324 | ||
5325 | PlayPredatorSound(0, PSC_Swipe, ((FastRandom()&255)-128), &weaponHandle, &PlayerStatus.sbptr->DynPtr->Position); | 5325 | SpeciesSound(0, PSC_Swipe, ((FastRandom()&255)-128), &weaponHandle, &PlayerStatus.sbptr->DynPtr->Position, PREDATOR_SOUND); |
5326 | } | 5326 | } |
5327 | PlayerStatus.WeaponState = WEAPONSTATE_FIRING_SECONDARY; | 5327 | PlayerStatus.WeaponState = WEAPONSTATE_FIRING_SECONDARY; |
5328 | } | 5328 | } |
... | ... | ||
5374 | else if (PlayersWeaponHModelController.keyframe_flags & 1) | 5374 | else if (PlayersWeaponHModelController.keyframe_flags & 1) |
5375 | { | 5375 | { |
5376 | MeleeWeapon_90Degree_Front_Core(&TemplateAmmo[AMMO_PRED_WRISTBLADE].MaxDamage, 2500, 0); | 5376 | MeleeWeapon_90Degree_Front_Core(&TemplateAmmo[AMMO_PRED_WRISTBLADE].MaxDamage, 2500, 0); |
5377 | PlayPredatorSound(0, PSC_Swipe, ((FastRandom()&255)-128), &weaponHandle, NULL); | 5377 | SpeciesSound(0, PSC_Swipe, ((FastRandom()&255)-128), &weaponHandle, &PlayerStatus.sbptr->DynPtr->Position, PREDATOR_SOUND); |
5378 | } | 5378 | } |
5379 | PlayerStatus.WeaponState = WEAPONSTATE_FIRING_PRIMARY; | 5379 | PlayerStatus.WeaponState = WEAPONSTATE_FIRING_PRIMARY; |
5380 | } | 5380 | } |