328 {
329 vector particle_ori = "0 0 0";
331 {
333 target_pos = vector.
Direction(local_pos, target_pos);
335 }
336 else
337 {
339 {
341 }
342
343 if (muzzle_owner.IsInherited(ItemSuppressor))
344 {
345 particle_ori = particle_ori +
Vector(0,0,270);
346 }
347 }
348
349 return particle_ori;
350 }
string m_OverrideDirectionPoint
vector m_OverrideDirectionVector
static vector Direction(vector p1, vector p2)
Returns direction vector from point p1 to point p2.
proto vector VectorToAngles()
Converts vector to spherical coordinates with radius = 1.
proto native vector Vector(float x, float y, float z)
Vector constructor from components.