mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fixed bullet tracers being incorrect
This should fix almost immobile bullet tracers on t1l1
This commit is contained in:
parent
a74b966b7c
commit
de02c868a2
1 changed files with 10 additions and 2 deletions
|
@ -2524,8 +2524,12 @@ float BulletAttack(
|
|||
if (tracerspeed == 1.f) {
|
||||
gi.MSG_WriteBits(0, 1);
|
||||
} else {
|
||||
int speed;
|
||||
|
||||
speed = tracerspeed * (1 << 9);
|
||||
|
||||
gi.MSG_WriteBits(1, 1);
|
||||
gi.MSG_WriteBits(Q_clamp(tracerspeed, 1, 1023), 10);
|
||||
gi.MSG_WriteBits(Q_clamp(speed, 1, 1023), 10);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2611,8 +2615,12 @@ void FakeBulletAttack(
|
|||
if (tracerspeed == 1.f) {
|
||||
gi.MSG_WriteBits(0, 1);
|
||||
} else {
|
||||
int speed;
|
||||
|
||||
speed = tracerspeed * (1 << 9);
|
||||
|
||||
gi.MSG_WriteBits(1, 1);
|
||||
gi.MSG_WriteBits(Q_clamp(tracerspeed, 1, 1023), 10);
|
||||
gi.MSG_WriteBits(Q_clamp(speed, 1, 1023), 10);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue