From: LegendaryGuard Date: Sat, 2 Jul 2022 01:00:07 +0000 (+0200) Subject: Spawn the same drop position of vehicles for the turrets X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=50d2cdc9aa93609a747ef2b08ff4187658c82cb5;p=xonotic%2Fxonotic-data.pk3dir.git Spawn the same drop position of vehicles for the turrets --- diff --git a/qcsrc/common/turrets/sv_turrets.qc b/qcsrc/common/turrets/sv_turrets.qc index 2b791bbd9d..0d4dd74e4a 100644 --- a/qcsrc/common/turrets/sv_turrets.qc +++ b/qcsrc/common/turrets/sv_turrets.qc @@ -1478,8 +1478,8 @@ entity spawnturret (entity e, string turret, Turret tur, entity spawnedby, entit if(!(e.spawnflags & TSF_SUSPENDED)) { delete(e); return NULL; } // remove even if told not to, as we didn't spawn any kind of turret // don't spawn suspended in the air, spawn on the ground - setorigin(e, e.origin + '0 0 20'); - tracebox(e.origin + '0 0 64', e.mins, e.maxs, e.origin - '0 0 10000', MOVE_WORLDONLY, e); + setorigin(e, e.origin); + tracebox(e.origin + '0 0 100', tur.m_mins, tur.m_maxs, e.origin - '0 0 10000', MOVE_WORLDONLY, e); setorigin(e, trace_endpos); // spawn!