self.ballcarried.velocity = self.velocity;
self.ballcarried.customizeentityforclient = ball_customize;
- setorigin(self.ballcarried, self.origin + self.view_ofs +
+ vector org = self.origin + self.view_ofs +
v_forward * autocvar_g_nexball_viewmodel_offset.x +
v_right * autocvar_g_nexball_viewmodel_offset.y +
- v_up * autocvar_g_nexball_viewmodel_offset.z);
+ v_up * autocvar_g_nexball_viewmodel_offset.z;
+ setorigin(self.ballcarried, org);
// 'safe passing'
if(autocvar_g_nexball_safepass_maxdist)
{SELFPARAM();
entity _gib = spawn();
_setmodel(_gib, _template.model);
- setorigin(_gib, gettaginfo(self, gettagindex(self, _tag)));
+ vector org = gettaginfo(self, gettagindex(self, _tag));
+ setorigin(_gib, org);
_gib.velocity = _vel;
_gib.movetype = MOVETYPE_TOSS;
_gib.solid = SOLID_CORPSE;
bomb_1 = spawn();
bomb_2 = spawn();
- setorigin(bomb_1, gettaginfo(self, gettagindex(self, "bombmount_left")));
- setorigin(bomb_2, gettaginfo(self, gettagindex(self, "bombmount_right")));
+ vector org = gettaginfo(self, gettagindex(self, "bombmount_left"));
+ setorigin(bomb_1, org);
+ org = gettaginfo(self, gettagindex(self, "bombmount_right"));
+ setorigin(bomb_2, org);
bomb_1.movetype = bomb_2.movetype = MOVETYPE_BOUNCE;
bomb_1.velocity = bomb_2.velocity = self.velocity;
b.angles = self.angles;
setsize(b, self.mins, self.maxs);
- setorigin(h, gettaginfo(self, gettagindex(self, "tag_head")));
+ vector org = gettaginfo(self, gettagindex(self, "tag_head"));
+ setorigin(h, org);
h.movetype = MOVETYPE_BOUNCE;
h.solid = SOLID_BBOX;
h.velocity = v_up * (500 + random() * 500) + randomvec() * 128;
h.think = spiderbot_headfade;
h.nextthink = time;
- setorigin(g1, gettaginfo(self.tur_head, gettagindex(self.tur_head, "tag_hardpoint01")));
+ org = gettaginfo(self.tur_head, gettagindex(self.tur_head, "tag_hardpoint01"));
+ setorigin(g1, org);
g1.movetype = MOVETYPE_TOSS;
g1.solid = SOLID_CORPSE;
g1.velocity = v_forward * 700 + (randomvec() * 32);
g1.avelocity = randomvec() * 180;
- setorigin(g2, gettaginfo(self.tur_head, gettagindex(self.tur_head, "tag_hardpoint02")));
+ org = gettaginfo(self.tur_head, gettagindex(self.tur_head, "tag_hardpoint02"));
+ setorigin(g2, org);
g2.movetype = MOVETYPE_TOSS;
g2.solid = SOLID_CORPSE;
g2.velocity = v_forward * 700 + (randomvec() * 32);