You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// import { apiDefinition as classFunctionApiDefinition, json as classFunctionJson } from '../test-data/offline-sites/gmod-wiki/class-function-weapon-allowsautoswitchto';
3
3
// import { apiDefinition as libraryFunctionApiDefinition, json as libraryFunctionJson } from '../test-data/offline-sites/gmod-wiki/library-function-ai-getscheduleid';
4
-
// import { apiDefinition as structApiDefinition, json as structJson } from '../test-data/offline-sites/gmod-wiki/struct-ang-pos';
---@field RenderOverride function Documented at ENTITY:RenderOverride.
65
65
---@field m_RenderOrigin Vector (Clientside) Do not use.
66
66
---@field m_RenderAngles Angle (Clientside) Do not use.
67
-
local Custom_Entity_Fields = {}\n\n`;
67
+
local Custom_Entity_Fields = {}\n\n`;
68
+
69
+
exportconstjson={
70
+
name: 'Custom_Entity_Fields',
71
+
address: 'Custom_Entity_Fields',
72
+
type: 'struct',
73
+
fields: [
74
+
{
75
+
name: 'GetEntityDriveMode',
76
+
type: 'function',
77
+
description: '`Serverside`, Sandbox and Sandbox derived only.\n\nCalled by the Drive property to override the default drive type, which is `drive_sandbox`.',
78
+
},
79
+
{
80
+
name: 'OnEntityCopyTableFinish',
81
+
type: 'function',
82
+
description: 'Documented at ENTITY:OnEntityCopyTableFinish.',
83
+
},
84
+
{
85
+
name: 'PostEntityCopy',
86
+
type: 'function',
87
+
description: 'Documented at ENTITY:PostEntityCopy.',
88
+
},
89
+
{
90
+
name: 'PostEntityPaste',
91
+
type: 'function',
92
+
description: 'Documented at ENTITY:PostEntityPaste.',
93
+
},
94
+
{
95
+
name: 'PreEntityCopy',
96
+
type: 'function',
97
+
description: 'Documented at ENTITY:PreEntityCopy.',
98
+
},
99
+
{
100
+
name: 'OnDuplicated',
101
+
type: 'function',
102
+
description: 'Documented at ENTITY:OnDuplicated.',
103
+
},
104
+
{
105
+
name: 'PhysgunDisabled',
106
+
type: 'boolean',
107
+
description: '`Shared`, Sandbox or Sandbox derived only.\n\nIf set to `true`, physgun will not be able to pick this entity up. This can also be set from map, see Sandbox Specific Mapping',
108
+
},
109
+
{
110
+
name: 'PhysgunPickup',
111
+
type: 'function',
112
+
description: '`Shared`, Sandbox or Sandbox derived only.\n\nCalled from GM:PhysgunPickup, overrides `PhysgunDisabled`',
113
+
},
114
+
{
115
+
name: 'm_tblToolsAllowed',
116
+
type: 'table',
117
+
description: '`Shared`, Sandbox or Sandbox derived only.\n\nControls which tools **and** properties can be used on this entity. Format is a list of strings where each string is the tool or property classname.\n\nThis can also be set from map, see Sandbox Specific Mapping',
118
+
},
119
+
{
120
+
name: 'GravGunPickupAllowed',
121
+
type: 'function',
122
+
description: 'Documented at ENTITY:GravGunPickupAllowed.',
123
+
},
124
+
{
125
+
name: 'GravGunPunt',
126
+
type: 'function',
127
+
description: 'Documented at ENTITY:GravGunPunt.',
128
+
},
129
+
{
130
+
name: 'CanProperty',
131
+
type: 'function',
132
+
description: 'Documented at ENTITY:CanProperty.',
133
+
},
134
+
{
135
+
name: 'CanTool',
136
+
type: 'function',
137
+
description: 'Documented at ENTITY:CanTool.',
138
+
},
139
+
{
140
+
name: 'CalcAbsolutePosition',
141
+
type: 'function',
142
+
description: 'Documented at ENTITY:CalcAbsolutePosition.',
143
+
},
144
+
{
145
+
name: 'RenderOverride',
146
+
type: 'function',
147
+
description: 'Documented at ENTITY:RenderOverride.',
--- This function is very expensive when used in often running hooks or in operations requiring very frequent calls (like loops for example). It is better to store the angle in a variable or to use the [default angle](https://wiki.facepunch.com/gmod/Global_Variables#misc) available.
5
+
---
6
+
---[(View on wiki)](https://wiki.facepunch.com/gmod/Global.Angle)
7
+
---@paramanglestring Will be parsed to an angle. If it fails, a 0 angle will be returned.
8
+
---@returnAngle #Created angle
9
+
function_G.Angle(angle) end
10
+
11
+
---[SHARED AND MENU] Creates an Angle object.
12
+
--- This function is very expensive when used in often running hooks or in operations requiring very frequent calls (like loops for example). It is better to store the angle in a variable or to use the [default angle](https://wiki.facepunch.com/gmod/Global_Variables#misc) available.
13
+
---
14
+
---[(View on wiki)](https://wiki.facepunch.com/gmod/Global.Angle)
15
+
---@paramangleAngle A copy of this angle will be returned.
0 commit comments