engine.txt 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. # ICvar
  2. # XXX: const and non-const entries might be flipped here on Windows, not 100%
  3. # sure. kind of just choosing not to care thusfar, as it still works the same!
  4. vtidx_AllocateDLLIdentifier 5
  5. Portal2 8
  6. vtidx_RegisterConCommand 6
  7. Portal2 9
  8. vtidx_UnregisterConCommands 8
  9. Portal2 11
  10. # unused:
  11. #vtidx_FindCommandBase 10
  12. # Portal2 13
  13. vtidx_FindVar 12
  14. Portal2 15
  15. vtidx_FindCommand 14
  16. Portal2 17
  17. vtidx_CallGlobalChangeCallbacks 20
  18. L4Dx 18
  19. Portal2 21
  20. vtidx_ConsoleColorPrintf
  21. OrangeBoxbased 23
  22. L4Dx 21
  23. Portal2 24
  24. # CDemoRecorder
  25. vtidx_StartRecording 2
  26. vtidx_SetSignonState 3
  27. vtidx_StopRecording 7
  28. vtidx_RecordPacket 11
  29. # VEngineClient
  30. vtidx_IsInGame
  31. Client015 26
  32. Client014
  33. L4D2 28
  34. 2013 26
  35. Client013 26
  36. L4D1 27
  37. # TODO(compat): unconfirmed, and OE support isn't really a thing yet anyway
  38. #Client012 28
  39. vtidx_GetGameDirectory
  40. Client015 35 # current Portal 2
  41. Client014
  42. L4D2 73 # YES IT'S SEVENTY THREE SOMEHOW ALL OF A SUDDEN.
  43. 2013 35
  44. Client013 35
  45. L4Dx 36 # AND THEY ACTUALLY CHANGED IT BACK LATER! (on 2.0.4.1)
  46. Client012 37 # dmomm, ep1, ...
  47. vtidx_GetEngineBuildNumber
  48. Client013
  49. L4D2 99
  50. Portal2 100
  51. Client014
  52. L4D2 31
  53. 2013 98
  54. Portal1_3420 91
  55. # TODO(compat): we'll need these... but need to detect first
  56. #Portal1_5135 102
  57. #L4D1_1005 99
  58. #L4D1_Steam 97
  59. # IGameUIFuncs
  60. vtidx_GetDesktopResolution 5
  61. # IGame/CGame
  62. vtidx_DispatchAllStoredGameMessages 16
  63. # VEngineServer
  64. vtidx_PEntityOfEntIndex
  65. OrangeBoxbased 19 # probably OE too but ??
  66. vtidx_ServerCommand
  67. OrangeBoxbased 36
  68. sz_edict 20
  69. L4Dbased 16
  70. # vgui::Panel
  71. vtidx_SetPaintEnabled 67
  72. Client013
  73. L4D1 68
  74. L4D2 71
  75. L4D2_2147plus 72
  76. Client014
  77. L4D2 70
  78. vtidx_Paint 123
  79. Client014
  80. L4D2 126 # 2000
  81. Client013
  82. L4D2 127 # 2045
  83. L4D2_2147plus 128
  84. # SendProp
  85. sz_SendProp
  86. # wrapping all these in 005 for right now.
  87. # will need at least 009 as well at some point!
  88. SrvDLL005
  89. OrangeBox 76
  90. L4D1 80
  91. L4D2 84
  92. Portal2 84
  93. #2013 80 # TODO(compat): not sure about 2013/009 yet
  94. off_SP_type 8
  95. off_SP_varname
  96. SrvDLL005
  97. OrangeBox 44
  98. #L4Dbased 48 # TODO(compat): haven't tested Survivors
  99. # for now do this instead:
  100. L4D 48
  101. Portal2 48
  102. #2013 48 # TODO(compat): not sure about 2013/009 yet pt2
  103. off_SP_subtable
  104. SrvDLL005
  105. OrangeBox 64
  106. L4D1 68
  107. L4D2 72
  108. Portal2 72
  109. #2013 68 # TODO(compat): not sure about 2013/009 yet pt3
  110. off_SP_offset
  111. SrvDLL005
  112. OrangeBox 68
  113. L4D1 72
  114. L4D2 76
  115. Portal2 76
  116. #2013 72 # TODO(compat): not sure about 2013/009 yet pt4
  117. DT_DataTable 5 # constant value from SendPropType enum (XXX: name okay???)
  118. L4Dbased 6
  119. # CBaseServer/CGameServer
  120. vtidx_GetSpawnCount
  121. #OrangeBox 13 + NVDTOR # not used right now anyway
  122. L4D1 13 + NVDTOR
  123. L4D2 14 + NVDTOR # GetTimescale() added, pushed it down
  124. # rest untested, add later if/when actually needed for something
  125. # IEngineVGuiInternal/CEngineVGui
  126. vtidx_GetPanel NVDTOR
  127. # note: actual name of this function is Connect() but that's too generic
  128. vtidx_VGuiConnect 3 + NVDTOR
  129. L4Dbased 4 + NVDTOR # ActivateGameUI added
  130. L4DS 5 + NVDTOR # some other crap added, god knows
  131. vtidx_VGuiIsInitialized 6 + NVDTOR # this is also just called IsInitialized()
  132. L4Dbased 7 + NVDTOR
  133. L4DS 8 + NVDTOR
  134. # CDedicatedServerAPI
  135. vtidx_RunFrame 7
  136. # IEngine
  137. vtidx_Frame 4 + NVDTOR
  138. # CEngineTool
  139. vtidx_GetRealTime 34 # HL2, P1, L4D1, BMS
  140. # OE, DMoMM 24
  141. L4D2 35
  142. Portal2 36
  143. vtidx_HostFrameTime 35
  144. # OE, DMoMM 25
  145. L4D2 38
  146. Portal2 39
  147. # vi: sw=4 ts=4 noet tw=80 cc=80