mirror of
https://github.com/nzp-team/quakec.git
synced 2025-02-16 17:10:55 +00:00
SERVER: Fix Tesla not firing from barrel on STANDARD
This commit is contained in:
parent
fce7de38d6
commit
eddf634665
1 changed files with 5 additions and 3 deletions
|
@ -226,6 +226,7 @@ void() tesla_arc = {
|
|||
void() W_FireTesla =
|
||||
{
|
||||
vector source;
|
||||
entity tempe = spawn();
|
||||
|
||||
makevectors(self.v_angle);
|
||||
source = self.origin + self.view_ofs;
|
||||
|
@ -234,7 +235,6 @@ void() W_FireTesla =
|
|||
source += v_up * (barrel_ofs.y/1000);
|
||||
source += v_forward * (barrel_ofs.z/1000);
|
||||
|
||||
|
||||
#ifdef FTE
|
||||
self.dimension_hit = HITBOX_DIM_LIMBS | HITBOX_DIM_ZOMBIES;
|
||||
#endif // FTE
|
||||
|
@ -256,7 +256,7 @@ void() W_FireTesla =
|
|||
|
||||
WriteByte(MSG_BROADCAST, SVC_TEMPENTITY);
|
||||
WriteByte(MSG_BROADCAST, TE_LIGHTNING2);
|
||||
WriteEntity(MSG_BROADCAST, self);
|
||||
WriteEntity(MSG_BROADCAST, tempe);
|
||||
WriteCoord(MSG_BROADCAST, source_x);
|
||||
WriteCoord(MSG_BROADCAST, source_y);
|
||||
WriteCoord(MSG_BROADCAST, source_z);
|
||||
|
@ -276,7 +276,7 @@ void() W_FireTesla =
|
|||
|
||||
WriteByte(MSG_BROADCAST, SVC_TEMPENTITY);
|
||||
WriteByte(MSG_BROADCAST, TE_LIGHTNING1);
|
||||
WriteEntity(MSG_BROADCAST, self);
|
||||
WriteEntity(MSG_BROADCAST, tempe);
|
||||
WriteCoord(MSG_BROADCAST, source_x);
|
||||
WriteCoord(MSG_BROADCAST, source_y);
|
||||
WriteCoord(MSG_BROADCAST, source_z);
|
||||
|
@ -288,6 +288,8 @@ void() W_FireTesla =
|
|||
|
||||
}
|
||||
|
||||
remove(tempe);
|
||||
|
||||
self.tesla_n_kills = 0;
|
||||
|
||||
entity hit_ent = trace_ent;
|
||||
|
|
Loading…
Reference in a new issue