mirror of
https://github.com/DrBeef/QuestZDoom.git
synced 2025-04-25 02:31:12 +00:00
Small tweaks to angles
This commit is contained in:
parent
bf2d95dae4
commit
bdb1976cf8
2 changed files with 3 additions and 2 deletions
|
@ -1357,11 +1357,11 @@ static int DamageMobj (AActor *target, AActor *inflictor, AActor *source, int da
|
|||
QzDoom_Vibrate(200, 0, level); // left
|
||||
QzDoom_Vibrate(200, 1, level); // right
|
||||
|
||||
DAngle attackAngle = player->mo->Angles.Yaw - target->AngleTo(source);
|
||||
DAngle attackAngle = (source != NULL) ? (target->AngleTo(source) - player->mo->Angles.Yaw) : angle;
|
||||
|
||||
if (mod == NAME_None)
|
||||
{
|
||||
if (damage >= 12) {
|
||||
if (damage >= 15) {
|
||||
QzDoom_HapticEvent("shotgun", 0, 100, attackAngle.Normalized360().Degrees, 0);
|
||||
}
|
||||
else {
|
||||
|
|
1
assets/bHaptics/Damage/Body_Shield_Break.tact
Normal file
1
assets/bHaptics/Damage/Body_Shield_Break.tact
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue