Skip to content

Latest commit

 

History

History
757 lines (510 loc) · 18.8 KB

ServerInteraction.md

File metadata and controls

757 lines (510 loc) · 18.8 KB

ServerInteractionInit.sqf

SI_RAYCAST_DISTANCE

Type: constant

Description:

Replaced value:

2000

File: host\ServerInteraction\ServerInteractionInit.sqf at line 72

SH_DEBUG_SHOTGUN

Type: constant

Description: #define SI_THROW_DEBUG

Replaced value:

File: host\ServerInteraction\ServerInteractionInit.sqf at line 272

debug_t(data)

Type: constant

Exists if SI_THROW_DEBUG defined

Description:

  • Param: data

Replaced value:

traceformat("[THROW_DEBUG]: %1",data)

File: host\ServerInteraction\ServerInteractionInit.sqf at line 278

debug_line(p,v,clr)

Type: constant

Exists if SI_THROW_DEBUG defined

Description:

  • Param: p
  • Param: v
  • Param: clr

Replaced value:

__D_IL_OBJ = "Sign_Arrow_F" createVehicle [0,0,0]; si_debug_listVectors pushBack __D_IL_OBJ; \
__D_IL_OBJ setPosAtl p; __D_IL_OBJ setVectorUp v; __D_IL_OBJ setObjectTexture [0,format["#(rgb,8,8,3)color(%1,%2,%3,1)",clr select 0,clr select 1,clr select 2]];

File: host\ServerInteraction\ServerInteractionInit.sqf at line 279

debug_t(data)

Type: constant

Exists if SI_THROW_DEBUG not defined

Description:

  • Param: data

Replaced value:

File: host\ServerInteraction\ServerInteractionInit.sqf at line 284

debug_line(p,v,clr)

Type: constant

Exists if SI_THROW_DEBUG not defined

Description:

  • Param: p
  • Param: v
  • Param: clr

Replaced value:

File: host\ServerInteraction\ServerInteractionInit.sqf at line 285

logshotgun(txt,vars)

Type: constant

Exists if SH_DEBUG_SHOTGUN defined

Description:

  • Param: txt
  • Param: vars

Replaced value:

errorformat("[SH_DEBUG_SHOTGUN]: %1 %2",txt arg [vars]);

File: host\ServerInteraction\ServerInteractionInit.sqf at line 491

logshotgun(txt,vars)

Type: constant

Exists if SH_DEBUG_SHOTGUN not defined

Description:

  • Param: txt
  • Param: vars

Replaced value:

File: host\ServerInteraction\ServerInteractionInit.sqf at line 493

si_internal_rayObject

Type: Variable

Description: Общий объект рэйкаста. Арма у нас в одном потоке так что боятся нечего

Initial value:

"Sign_Sphere10cm_F" createVehicleLocal[0,0,0]

File: host\ServerInteraction\ServerInteractionInit.sqf at line 67

si_throwTasks

Type: Variable

Description: Список задач летящих объектов

Initial value:

[] //obj, vecpos, vecdir, dist, precdown, downlevel, speed

File: host\ServerInteraction\ServerInteractionInit.sqf at line 275

si_debug_listVectors

Type: Variable

Exists if SI_THROW_DEBUG defined

Description:

Initial value:

[]

File: host\ServerInteraction\ServerInteractionInit.sqf at line 282

si_throwModes

Type: Variable

Description: список алгоритмов полета объектов. каждый элемент - структура из 2 сегментов кода

Initial value:

[...

File: host\ServerInteraction\ServerInteractionInit.sqf at line 620

si_throwingProcess

Type: function

Description:

  • Param: _mob
  • Param: _item
  • Param: _startPoint

File: host\ServerInteraction\ServerInteractionInit.sqf at line 31

si_rayCast

Type: function

Description: Возвращает визуальный объект

  • Param: _rayPosStart
  • Param: _rayVector
  • Param: _retVirtual (optional, default false)
  • Param: _bias (optional, default 0.001)
  • Param: _refposret (optional, default [])
  • Param: _ignored1 (optional, default objNull)
  • Param: _normal (optional, default [])

File: host\ServerInteraction\ServerInteractionInit.sqf at line 70

si_handleObjectReturnCheckVirtual

Type: function

Description: системная функция обработки и модификации параметра (конвертация из мирового объекта в виртуальный)

  • Param: _obj

File: host\ServerInteraction\ServerInteractionInit.sqf at line 138

si_getIntersectData

Type: function

Description: При изменении данной функции исправь реализацию в interact::th::getItscData()

  • Param: _p1
  • Param: _p2
  • Param: _ig1 (optional, default objnull)
  • Param: _ig2 (optional, default objnull)

File: host\ServerInteraction\ServerInteractionInit.sqf at line 174

si_getIntersectDataV2

Type: function

Description:

  • Param: _p1
  • Param: _p2
  • Param: _ig1 (optional, default objnull)
  • Param: _ig2 (optional, default objnull)

File: host\ServerInteraction\ServerInteractionInit.sqf at line 202

si_getIntersectObjects

Type: function

Description:

  • Param: _p1
  • Param: _p2
  • Param: _ig1 (optional, default objNUll)
  • Param: _ig2 (optional, default objNUll)
  • Param: _countObjs (optional, default 10)
  • Param: _retUnique (optional, default true)
  • Param: _retAsVObj (optional, default false)
  • Param: _retIPos (optional, default false)

File: host\ServerInteraction\ServerInteractionInit.sqf at line 221

si_addThrowTask

Type: function

Description:

  • Param: _gobj
  • Param: _vecPos
  • Param: _vecDir
  • Param: _distance
  • Param: _precdown
  • Param: _leveldown
  • Param: _speed
  • Param: _refThis
  • Param: _throwMode (optional, default SI_TM_THROW)
  • Param: _addPenaltySupressFire

File: host\ServerInteraction\ServerInteractionInit.sqf at line 288

si_onFlyWorldActionLoad

Type: function

Description: например взрыв летящей гранаты

  • Param: _tempObj

File: host\ServerInteraction\ServerInteractionInit.sqf at line 410

si_onThrowingEnd

Type: function

Description:

  • Param: _tempObj
  • Param: _barrierObj

File: host\ServerInteraction\ServerInteractionInit.sqf at line 426

si_onBulletAct

Type: function

Description:

  • Param: _tempObj
  • Param: _barrierObj

File: host\ServerInteraction\ServerInteractionInit.sqf at line 455

ServerInteractionShared.sqf

addInteractSecondPassObj(path)

Type: constant

Description:

  • Param: path

Replaced value:

interact_map_secondPass set [tolower path,false]

File: host\ServerInteraction\ServerInteractionShared.sqf at line 11

isNotSecondPassObject(obj)

Type: constant

Description: Проверка

  • Param: obj

Replaced value:

(interact_map_secondPass getOrDefault [toLower(getModelInfo (obj) select 1),true])

File: host\ServerInteraction\ServerInteractionShared.sqf at line 15

interact_map_secondPass

Type: Variable

Description: Публичные данные

Initial value:

createHashMap

File: host\ServerInteraction\ServerInteractionShared.sqf at line 10

interact_throwlist

Type: Variable

Description:

Initial value:

[]

File: host\ServerInteraction\ServerInteractionShared.sqf at line 17

interact_th_map_codeAssoc

Type: Variable

Description:

Initial value:

createHashMapFromArray [["th",0],["sh",1]]

File: host\ServerInteraction\ServerInteractionShared.sqf at line 218

interact_th_delegates

Type: Variable

Description: mode -> vec2: success fly, intersection

Initial value:

[...

File: host\ServerInteraction\ServerInteractionShared.sqf at line 221

interact_shassoc_idx

Type: Variable

Description:

Initial value:

0

File: host\ServerInteraction\ServerInteractionShared.sqf at line 296

interact_map_shassoc_keyint

Type: Variable

Description:

Initial value:

createHashMap

File: host\ServerInteraction\ServerInteractionShared.sqf at line 297

interact_map_shassoc_keystr

Type: Variable

Description:

Initial value:

createHashMap

File: host\ServerInteraction\ServerInteractionShared.sqf at line 298

interact_th_getItscData

Type: function

Description: Это псевдоним функции si::getIntersectData()

  • Param: _p1
  • Param: _p2
  • Param: _ig1 (optional, default objnull)
  • Param: _ig2 (optional, default objnull)

File: host\ServerInteraction\ServerInteractionShared.sqf at line 20

interact_th_getRelRadiusPos

Type: function

Description: копия с noe_visual_getRelRadiusPos. Константа DROP_RADIUS 0.6 на текущий момент

  • Param: _posI
  • Param: _dirPos (optional, default random 360)
  • Param: _dropRad (optional, default 0.6)

File: host\ServerInteraction\ServerInteractionShared.sqf at line 48

interact_th_onThrowingEnd

Type: function

Description: Событие остановки света

  • Param: _obj
  • Param: _targ

File: host\ServerInteraction\ServerInteractionShared.sqf at line 54

interact_th_calculateStartPoint

Type: function

Description: internal impl. of calculating start point of projectile

File: host\ServerInteraction\ServerInteractionShared.sqf at line 72

interact_th_addTask

Type: function

Description:

  • Param: _mode
  • Param: _ctx

File: host\ServerInteraction\ServerInteractionShared.sqf at line 80

interact_th__clith

Type: function

Description:

File: host\ServerInteraction\ServerInteractionShared.sqf at line 155

ServerInteractionTests.sqf

SI_DEBUG_TRACELINE

Type: constant

Description:

Replaced value:

File: host\ServerInteraction\ServerInteractionTests.sqf at line 8

si_debug_tracelineobjs

Type: Variable

Exists if SI_DEBUG_TRACELINE defined

Description:

Initial value:

[]

File: host\ServerInteraction\ServerInteractionTests.sqf at line 12

si_debug_obj

Type: Variable

Exists if EDITOR defined

Description:

Initial value:

createSimpleObject ["Sign_Sphere10cm_F",[0,0,0],true]

File: host\ServerInteraction\ServerInteractionTests.sqf at line 97

si_debug_task

Type: Variable

Description:

Initial value:

-1

File: host\ServerInteraction\ServerInteractionTests.sqf at line 98

si_debug_olist

Type: Variable

Description:

Initial value:

[]

File: host\ServerInteraction\ServerInteractionTests.sqf at line 103

si_makeline

Type: function

Description: Алгоритм не подходит

  • Param: _m
  • Param: _distance
  • Param: _precdown
  • Param: _ld

File: host\ServerInteraction\ServerInteractionTests.sqf at line 19

si_debug_throwDebug

Type: function

Exists if EDITOR defined

Description:

File: host\ServerInteraction\ServerInteractionTests.sqf at line 53

si_debug_tester_internal

Type: function

Exists if EDITOR defined

Description: DEPRECATED

File: host\ServerInteraction\ServerInteractionTests.sqf at line 58

si_debug_interptest

Type: function

Exists if EDITOR defined

Description:

  • Param: _sp
  • Param: _ep
  • Param: _maxheight (optional, default 10)

File: host\ServerInteraction\ServerInteractionTests.sqf at line 105

si_debug_projectile

Type: function

Exists if EDITOR defined

Description:

  • Param: _basepos
  • Param: _vectordrect
  • Param: _distance
  • Param: _precdown
  • Param: _ld

File: host\ServerInteraction\ServerInteractionTests.sqf at line 125

si_debug_testCamerapos

Type: function

Exists if EDITOR defined

Description:

File: host\ServerInteraction\ServerInteractionTests.sqf at line 153

si_debug_mousepostest

Type: function

Exists if EDITOR defined

Description:

File: host\ServerInteraction\ServerInteractionTests.sqf at line 176

si_debug_createthrowtask

Type: function

Exists if EDITOR defined

Description: ACTUAL

  • Param: _model
  • Param: _vecPos
  • Param: _vecDir
  • Param: _distance
  • Param: _precdown
  • Param: _leveldown
  • Param: _duration

File: host\ServerInteraction\ServerInteractionTests.sqf at line 196

si_debug_setpby

Type: function

Exists if EDITOR defined

Description: common funcs

File: host\ServerInteraction\ServerInteractionTests.sqf at line 245

ServerInteraction_rayTrace.sqf

rtdbg(val,arg_)

Type: constant

Exists if SI_RAYTRACE_DEBUG defined

Description:

  • Param: val
  • Param: arg_

Replaced value:

traceformat("RTDBG: %1", format[val arg arg_])

File: host\ServerInteraction\ServerInteraction_rayTrace.sqf at line 28

rtdbg(val,arg_)

Type: constant

Exists if SI_RAYTRACE_DEBUG not defined

Description:

  • Param: val
  • Param: arg_

Replaced value:

File: host\ServerInteraction\ServerInteraction_rayTrace.sqf at line 30

SI_RAYTRACE_CHECK_DISTANCE

Type: constant

Description: проверка каждые SI_RAYTRACE_CHECK_DISTANCE метров

Replaced value:

0.01

File: host\ServerInteraction\ServerInteraction_rayTrace.sqf at line 112

linesize(newsize)

Type: constant

Exists if SI_RAYTRACE_DEBUG_LINES defined

Description:

  • Param: newsize

Replaced value:

_lineSize_dbg = newsize;

File: host\ServerInteraction\ServerInteraction_rayTrace.sqf at line 122

addline(p1,p2,clr)

Type: constant

Exists if SI_RAYTRACE_DEBUG_LINES defined

Description:

  • Param: p1
  • Param: p2
  • Param: clr

Replaced value:

_a_dbg = [0,0,0,1]; _a_dbg set [clr,1];_batcher_debug pushBack [p1,p2,_a_dbg,_lineSize_dbg]; _lineSize_dbg = 7;

File: host\ServerInteraction\ServerInteraction_rayTrace.sqf at line 123

addline(p1,p2,clr)

Type: constant

Exists if SI_RAYTRACE_DEBUG_LINES not defined

Description:

  • Param: p1
  • Param: p2
  • Param: clr

Replaced value:

File: host\ServerInteraction\ServerInteraction_rayTrace.sqf at line 125

linesize(n)

Type: constant

Exists if SI_RAYTRACE_DEBUG_LINES not defined

Description:

  • Param: n

Replaced value:

File: host\ServerInteraction\ServerInteraction_rayTrace.sqf at line 126

si_rayTraceProcess

Type: function

Description: _force - не рекомендуется больше 10

  • Param: _vobj
  • Param: _pstart
  • Param: _vecDirect
  • Param: _force
  • Param: _precdownIn (optional, default 70)
  • Param: _leveldownIn (optional, default 0.1)
  • Param: _ignoredObjects (optional, default [])

File: host\ServerInteraction\ServerInteraction_rayTrace.sqf at line 35

ServerInteraction_ThrowModes.sqf

SI_TM_THROW

Type: constant

Description:

Replaced value:

0

File: host\ServerInteraction\ServerInteraction_ThrowModes.sqf at line 6

SI_TM_SHOOT

Type: constant

Description:

Replaced value:

1

File: host\ServerInteraction\ServerInteraction_ThrowModes.sqf at line 7