30 vector usti_hlavne_position = owner.GetSelectionPositionLS(
"usti hlavne" );
31 vector konec_hlavne_position = owner.GetSelectionPositionLS(
"konec hlavne" );
32 usti_hlavne_position = owner.ModelToWorld(usti_hlavne_position);
33 konec_hlavne_position = owner.ModelToWorld(konec_hlavne_position);
34 return vector.
Distance(usti_hlavne_position, konec_hlavne_position);
44 for (
int i = 0; i <
m_OwnerItem.GetInventory().AttachmentCount(); i++)
67 if( item.ConfigIsExisting(modifier_name) )
69 value = item.ConfigGetVector(modifier_name);
protected InventoryItem m_Weapon
Weapons - cache.
static vector GetModifierRaw(ItemBase item, string modifier_name, vector value="1 1 1")
float m_Weapon void PropertyModifiers(ItemBase owner)
float CalculateBarrelLength(ItemBase owner)
float GetBarrelLength()
Get Barrel Legth in mm.
vector m_SightMisalignment
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.