mirror of
https://github.com/DrBeef/QuestZDoom.git
synced 2025-04-25 10:41:00 +00:00
Small tweaks to angles
This commit is contained in:
parent
9592dc97bf
commit
8ae6d5604f
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, 0, level); // left
|
||||||
QzDoom_Vibrate(200, 1, level); // right
|
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 (mod == NAME_None)
|
||||||
{
|
{
|
||||||
if (damage >= 12) {
|
if (damage >= 15) {
|
||||||
QzDoom_HapticEvent("shotgun", 0, 100, attackAngle.Normalized360().Degrees, 0);
|
QzDoom_HapticEvent("shotgun", 0, 100, attackAngle.Normalized360().Degrees, 0);
|
||||||
}
|
}
|
||||||
else {
|
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