mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Ignore bullet tracers in 1.11 and below
Before 2.0, the tracer frequency is set on almost all weapons. This has some artifacts on multiplayer, the tracer doesn't look adjusted in first-person view
This commit is contained in:
parent
a0e2162dd7
commit
1e609a4b2f
1 changed files with 3 additions and 1 deletions
|
@ -1887,7 +1887,9 @@ void Weapon::Shoot(Event *ev)
|
|||
vSpread = (bulletspreadmax[mode] + bulletspread[mode]) * 0.5f;
|
||||
}
|
||||
|
||||
if (!g_gametype->integer && owner && owner->IsSubclassOfPlayer()) {
|
||||
// Don't display tracers if the owner is a player for non-turret weapons
|
||||
// It would have some artifacts for the first person model, as the tracer is created from the world model
|
||||
if ((g_target_game == TG_MOH || g_gametype->integer == GT_SINGLE_PLAYER) && owner && owner->IsSubclassOfPlayer()) {
|
||||
if (IsSubclassOfTurretGun()) {
|
||||
tracerFrequency = 3;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue