См. определение в файле ItemOptics.c строка 374
375 {
377
379 if (isUsing2D)
380 {
381 path =
"cfgVehicles " +
GetType() +
" OpticsModelInfo";
382 }
383 else
384 {
386 }
387 string temp;
388
390 {
391 if (isUsing2D)
393 else
395
396 if (
g_Game.ConfigIsExisting(
path +
" opticSightTexture"))
397 {
398 g_Game.ConfigGetText(
path +
" opticSightTexture", temp);
400 temp = "";
401 }
402 if (
g_Game.ConfigIsExisting(
path +
" opticSightMaterial"))
403 {
404 g_Game.ConfigGetText(
path +
" opticSightMaterial", temp);
406 temp = "";
407 }
408 }
410 }
eBleedingSourceType GetType()
bool IsUsingOptics2DModel()
Returns whether this ItemOptics uses the 2D optics model.
string m_optic_sight_material
ItemOpticsType GetItemOpticsType()
Returns the ItemOpticsType of this ItemOptics instance.
string m_optic_sight_texture
proto native int FindOptics2DSelection(string selectionName, bool ignoreCase=true)
Finds selection index by name.
Перекрестные ссылки ItemOpticsType::FindOptics2DSelection(), g_Game, GetItemOpticsType(), GetType(), IsUsingOptics2DModel(), m_data_set, m_optic_sight_material, m_optic_sight_texture, m_reddot_index и path.
Используется в ItemOptics() и ShowReddot().