@tlua/gmod 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/achievements.d.tlua +15 -45
- package/types/ai.d.tlua +5 -15
- package/types/angle.d.tlua +18 -54
- package/types/baseclass.d.tlua +2 -4
- package/types/bf_read.d.tlua +11 -32
- package/types/bit.d.tlua +11 -33
- package/types/cam.d.tlua +16 -48
- package/types/ceffectdata.d.tlua +32 -95
- package/types/chat.d.tlua +5 -15
- package/types/cleanup.d.tlua +7 -21
- package/types/cluaemitter.d.tlua +12 -35
- package/types/clualocomotion.d.tlua +40 -119
- package/types/cluaparticle.d.tlua +44 -131
- package/types/cmovedata.d.tlua +47 -140
- package/types/cnavarea.d.tlua +77 -230
- package/types/cnavladder.d.tlua +22 -65
- package/types/cnewparticleeffect.d.tlua +26 -77
- package/types/color.d.tlua +28 -84
- package/types/concommand.d.tlua +4 -12
- package/types/constraint.d.tlua +28 -84
- package/types/construct.d.tlua +1 -3
- package/types/contentheader.d.tlua +3 -6
- package/types/contenticon.d.tlua +9 -24
- package/types/contentsidebar.d.tlua +4 -9
- package/types/contextbase.d.tlua +4 -9
- package/types/controlpanel.d.tlua +18 -40
- package/types/controlpresets.d.tlua +13 -36
- package/types/convar.d.tlua +16 -47
- package/types/cookie.d.tlua +3 -9
- package/types/coroutine.d.tlua +7 -21
- package/types/crecipientfilter.d.tlua +16 -47
- package/types/csoundpatch.d.tlua +14 -41
- package/types/ctakedamageinfo.d.tlua +33 -98
- package/types/ctrlnumpad.d.tlua +6 -17
- package/types/cusercmd.d.tlua +27 -80
- package/types/cvars.d.tlua +6 -18
- package/types/dadjustablemodelpanel.d.tlua +7 -18
- package/types/dalphabar.d.tlua +3 -6
- package/types/dbinder.d.tlua +4 -9
- package/types/dbubblecontainer.d.tlua +2 -3
- package/types/dbutton.d.tlua +8 -21
- package/types/dcheckbox.d.tlua +5 -12
- package/types/dcheckboxlabel.d.tlua +9 -27
- package/types/dcollapsiblecategory.d.tlua +23 -66
- package/types/dcolorbutton.d.tlua +7 -18
- package/types/dcolorcombo.d.tlua +5 -12
- package/types/dcolorcube.d.tlua +13 -36
- package/types/dcolormixer.d.tlua +27 -78
- package/types/dcolorpalette.d.tlua +23 -66
- package/types/dcolumnsheet.d.tlua +5 -12
- package/types/dcombobox.d.tlua +17 -48
- package/types/ddragbase.d.tlua +13 -36
- package/types/ddrawer.d.tlua +8 -21
- package/types/debug.d.tlua +44 -76
- package/types/debugoverlay.d.tlua +11 -33
- package/types/dentityproperties.d.tlua +5 -12
- package/types/derma.d.tlua +10 -30
- package/types/dexpandbutton.d.tlua +3 -6
- package/types/dfilebrowser.d.tlua +20 -60
- package/types/dform.d.tlua +18 -51
- package/types/dframe.d.tlua +24 -72
- package/types/dgrid.d.tlua +11 -30
- package/types/dhorizontaldivider.d.tlua +20 -57
- package/types/dhorizontalscroller.d.tlua +11 -30
- package/types/dhscrollbar.d.tlua +11 -30
- package/types/dhtml.d.tlua +8 -21
- package/types/dhtmlcontrols.d.tlua +5 -15
- package/types/diconbrowser.d.tlua +11 -30
- package/types/diconlayout.d.tlua +18 -51
- package/types/dimage.d.tlua +20 -55
- package/types/dimagebutton.d.tlua +9 -27
- package/types/dlabel.d.tlua +33 -96
- package/types/dlabeleditable.d.tlua +5 -12
- package/types/dlabelurl.d.tlua +10 -27
- package/types/dlistbox.d.tlua +8 -21
- package/types/dlistboxitem.d.tlua +4 -9
- package/types/dlistview.d.tlua +34 -99
- package/types/dlistview_column.d.tlua +14 -39
- package/types/dlistview_line.d.tlua +13 -36
- package/types/dmenu.d.tlua +28 -75
- package/types/dmenubar.d.tlua +6 -11
- package/types/dmenuoption.d.tlua +13 -36
- package/types/dmenuoptioncvar.d.tlua +6 -15
- package/types/dmodelpanel.d.tlua +22 -63
- package/types/dmodelselect.d.tlua +2 -3
- package/types/dmodelselectmulti.d.tlua +2 -3
- package/types/dnotify.d.tlua +10 -27
- package/types/dnumberscratch.d.tlua +26 -75
- package/types/dnumberwang.d.tlua +16 -45
- package/types/dnumslider.d.tlua +17 -51
- package/types/dpanel.d.tlua +14 -39
- package/types/dpanellist.d.tlua +11 -33
- package/types/dpaneloverlay.d.tlua +7 -18
- package/types/dpanpanel.d.tlua +6 -15
- package/types/dprogress.d.tlua +3 -6
- package/types/dproperties.d.tlua +4 -9
- package/types/dproperty_combo.d.tlua +3 -6
- package/types/dproperty_generic.d.tlua +5 -12
- package/types/dpropertysheet.d.tlua +26 -56
- package/types/dragndrop.d.tlua +10 -30
- package/types/draw.d.tlua +11 -31
- package/types/drgbpicker.d.tlua +4 -9
- package/types/drive.d.tlua +18 -41
- package/types/dscrollpanel.d.tlua +10 -30
- package/types/dshape.d.tlua +7 -18
- package/types/dsizetocontents.d.tlua +5 -12
- package/types/dslider.d.tlua +28 -81
- package/types/dsprite.d.tlua +9 -24
- package/types/dtab.d.tlua +8 -21
- package/types/dtextentry.d.tlua +43 -126
- package/types/dtilelayout.d.tlua +21 -60
- package/types/dtooltip.d.tlua +6 -15
- package/types/dtree.d.tlua +16 -45
- package/types/dtree_node.d.tlua +68 -201
- package/types/duplicator.d.tlua +30 -88
- package/types/dverticaldivider.d.tlua +23 -66
- package/types/dvscrollbar.d.tlua +11 -30
- package/types/effect.d.tlua +4 -9
- package/types/effects.d.tlua +6 -18
- package/types/engine.d.tlua +21 -63
- package/types/entity.d.tlua +676 -1962
- package/types/ents.d.tlua +23 -61
- package/types/file.d.tlua +39 -117
- package/types/frame_blend.d.tlua +7 -21
- package/types/game.d.tlua +39 -117
- package/types/gameevent.d.tlua +4 -8
- package/types/gamemode.d.tlua +3 -7
- package/types/gm.d.tlua +267 -800
- package/types/gmsave.d.tlua +4 -12
- package/types/gui.d.tlua +21 -63
- package/types/gwen.d.tlua +3 -9
- package/types/halo.d.tlua +2 -6
- package/types/hook.d.tlua +4 -12
- package/types/http.d.tlua +1 -3
- package/types/iconeditor.d.tlua +11 -30
- package/types/igmodaudiochannel.d.tlua +41 -122
- package/types/imagecheckbox.d.tlua +4 -9
- package/types/imaterial.d.tlua +26 -77
- package/types/imesh.d.tlua +5 -14
- package/types/input.d.tlua +24 -68
- package/types/irestore.d.tlua +9 -26
- package/types/isave.d.tlua +9 -26
- package/types/itexture.d.tlua +10 -29
- package/types/ivideowriter.d.tlua +5 -14
- package/types/jit.d.tlua +21 -53
- package/types/killicon.d.tlua +7 -21
- package/types/language.d.tlua +1 -3
- package/types/list.d.tlua +8 -24
- package/types/markup.d.tlua +2 -6
- package/types/markupobject.d.tlua +5 -14
- package/types/math.d.tlua +277 -447
- package/types/matproxy.d.tlua +3 -9
- package/types/matselect.d.tlua +11 -30
- package/types/menubar.d.tlua +2 -6
- package/types/mesh.d.tlua +19 -57
- package/types/motionsensor.d.tlua +10 -30
- package/types/navmesh.d.tlua +26 -78
- package/types/net.d.tlua +52 -154
- package/types/nextbot.d.tlua +46 -116
- package/types/notification.d.tlua +2 -6
- package/types/npc.d.tlua +182 -543
- package/types/numpad.d.tlua +7 -21
- package/types/os.d.tlua +4 -10
- package/types/panel.d.tlua +333 -991
- package/types/pathfollower.d.tlua +31 -92
- package/types/permissions.d.tlua +6 -18
- package/types/physcollide.d.tlua +3 -8
- package/types/physenv.d.tlua +11 -33
- package/types/physobj.d.tlua +78 -233
- package/types/player.d.tlua +302 -880
- package/types/player_manager.d.tlua +13 -39
- package/types/presets.d.tlua +6 -18
- package/types/projectedtexture.d.tlua +48 -143
- package/types/properties.d.tlua +5 -15
- package/types/propselect.d.tlua +5 -12
- package/types/render.d.tlua +142 -426
- package/types/resource.d.tlua +2 -6
- package/types/sandbox.d.tlua +54 -159
- package/types/saverestore.d.tlua +12 -36
- package/types/schedule.d.tlua +6 -17
- package/types/scripted_ents.d.tlua +11 -29
- package/types/search.d.tlua +1 -3
- package/types/serverlist.d.tlua +7 -21
- package/types/sound.d.tlua +10 -30
- package/types/spawnicon.d.tlua +8 -21
- package/types/spawnmenu.d.tlua +24 -70
- package/types/spawnmenucontentpanel.d.tlua +5 -12
- package/types/sql.d.tlua +9 -27
- package/types/stack.d.tlua +5 -14
- package/types/steamworks.d.tlua +18 -54
- package/types/string.d.tlua +49 -141
- package/types/surface.d.tlua +34 -102
- package/types/surfaceinfo.d.tlua +5 -14
- package/types/system.d.tlua +10 -30
- package/types/table.d.tlua +47 -137
- package/types/task.d.tlua +9 -26
- package/types/team.d.tlua +19 -57
- package/types/timer.d.tlua +14 -42
- package/types/tool.d.tlua +46 -131
- package/types/ugcpublishwindow.d.tlua +9 -24
- package/types/umsg.d.tlua +12 -36
- package/types/undo.d.tlua +10 -30
- package/types/usermessage.d.tlua +2 -6
- package/types/utf8.d.tlua +7 -21
- package/types/util.d.tlua +94 -274
- package/types/vector.d.tlua +36 -108
- package/types/vehicle.d.tlua +52 -149
- package/types/vgui.d.tlua +18 -46
- package/types/vmatrix.d.tlua +35 -105
- package/types/weapon.d.tlua +85 -248
- package/types/weapons.d.tlua +6 -16
- package/types/widgets.d.tlua +1 -3
- package/types/workshopfilebase.d.tlua +5 -14
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
* List of all possible functions to manipulate Recipient Filters. Can be created with [Global.RecipientFilter](https://wiki.facepunch.com/gmod/Global.RecipientFilter).
|
|
5
5
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter
|
|
6
6
|
*/
|
|
7
|
-
interface CRecipientFilter {}
|
|
8
|
-
|
|
9
7
|
interface CRecipientFilter {
|
|
10
8
|
/**
|
|
11
9
|
* Adds all players to the recipient filter.
|
|
@@ -13,135 +11,90 @@ interface CRecipientFilter {
|
|
|
13
11
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:AddAllPlayers
|
|
14
12
|
*/
|
|
15
13
|
AddAllPlayers(self: CRecipientFilter): void;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
interface CRecipientFilter {
|
|
19
14
|
/**
|
|
20
15
|
* Adds all players that are in the same [PAS (Potentially Audible Set)](https://developer.valvesoftware.com/wiki/PAS "PAS - Valve Developer Community") as this position.
|
|
21
16
|
* @realm server
|
|
22
17
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:AddPAS
|
|
23
18
|
*/
|
|
24
19
|
AddPAS(self: CRecipientFilter, pos: Vector): void;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
interface CRecipientFilter {
|
|
28
20
|
/**
|
|
29
21
|
* Adds all players that are in the same [PVS (Potential Visibility Set)](https://developer.valvesoftware.com/wiki/PVS "PVS - Valve Developer Community") as this position.
|
|
30
22
|
* @realm server
|
|
31
23
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:AddPVS
|
|
32
24
|
*/
|
|
33
25
|
AddPVS(self: CRecipientFilter, Position: Vector): void;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
interface CRecipientFilter {
|
|
37
26
|
/**
|
|
38
27
|
* Adds a player to the recipient filter
|
|
39
28
|
* @realm server
|
|
40
29
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:AddPlayer
|
|
41
30
|
*/
|
|
42
31
|
AddPlayer(self: CRecipientFilter, Player: Player): void;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
interface CRecipientFilter {
|
|
46
32
|
/**
|
|
47
33
|
* Adds players to the recipient filter from a given table or another recipient filter.
|
|
48
34
|
* @realm server
|
|
49
35
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:AddPlayers
|
|
50
36
|
*/
|
|
51
37
|
AddPlayers(self: CRecipientFilter, input: CRecipientFilter | Player[]): void;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
interface CRecipientFilter {
|
|
55
38
|
/**
|
|
56
39
|
* Adds all players that are on the given team to the filter.
|
|
57
40
|
* @realm server
|
|
58
41
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:AddRecipientsByTeam
|
|
59
42
|
*/
|
|
60
43
|
AddRecipientsByTeam(self: CRecipientFilter, teamid: number): void;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
interface CRecipientFilter {
|
|
64
44
|
/**
|
|
65
45
|
* Returns the number of valid players in the recipient filter.
|
|
66
46
|
* @realm server
|
|
67
47
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:GetCount
|
|
68
48
|
*/
|
|
69
49
|
GetCount(self: CRecipientFilter): number;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
interface CRecipientFilter {
|
|
73
50
|
/**
|
|
74
51
|
* Returns a table of all valid players currently in the recipient filter.
|
|
75
52
|
* @realm server
|
|
76
53
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:GetPlayers
|
|
77
54
|
*/
|
|
78
55
|
GetPlayers(self: CRecipientFilter): Player[];
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
interface CRecipientFilter {
|
|
82
56
|
/**
|
|
83
57
|
* Removes all players from the recipient filter.
|
|
84
58
|
* @realm server
|
|
85
59
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:RemoveAllPlayers
|
|
86
60
|
*/
|
|
87
61
|
RemoveAllPlayers(self: CRecipientFilter): void;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
interface CRecipientFilter {
|
|
91
62
|
/**
|
|
92
63
|
* Remove players from this recipient filter that are **NOT** present in a given table or recipient filter.
|
|
93
64
|
* @realm server
|
|
94
65
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:RemoveMismatchedPlayers
|
|
95
66
|
*/
|
|
96
67
|
RemoveMismatchedPlayers(self: CRecipientFilter, input: CRecipientFilter): void;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
interface CRecipientFilter {
|
|
100
68
|
/**
|
|
101
69
|
* Removes all players from the filter that are in [PAS (Potentially Audible Set)](https://developer.valvesoftware.com/wiki/PAS "PAS - Valve Developer Community") for given position.
|
|
102
70
|
* @realm server
|
|
103
71
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:RemovePAS
|
|
104
72
|
*/
|
|
105
73
|
RemovePAS(self: CRecipientFilter, position: Vector): void;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
interface CRecipientFilter {
|
|
109
74
|
/**
|
|
110
75
|
* Removes all players that can see this [PVS (Potential Visibility Set)](https://developer.valvesoftware.com/wiki/PVS "PVS - Valve Developer Community") from the recipient filter.
|
|
111
76
|
* @realm server
|
|
112
77
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:RemovePVS
|
|
113
78
|
*/
|
|
114
79
|
RemovePVS(self: CRecipientFilter, pos: Vector): void;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
interface CRecipientFilter {
|
|
118
80
|
/**
|
|
119
81
|
* Removes the player from the recipient filter.
|
|
120
82
|
* @realm server
|
|
121
83
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:RemovePlayer
|
|
122
84
|
*/
|
|
123
85
|
RemovePlayer(self: CRecipientFilter, Player: Player): void;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
interface CRecipientFilter {
|
|
127
86
|
/**
|
|
128
87
|
* Remove players from this recipient filter that are present in a given table or recipient filter.
|
|
129
88
|
* @realm server
|
|
130
89
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:RemovePlayers
|
|
131
90
|
*/
|
|
132
91
|
RemovePlayers(self: CRecipientFilter, input: CRecipientFilter): void;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
interface CRecipientFilter {
|
|
136
92
|
/**
|
|
137
93
|
* Removes all players that are on the given team from the filter.
|
|
138
94
|
* @realm server
|
|
139
95
|
* @source https://wiki.facepunch.com/gmod/CRecipientFilter:RemoveRecipientsByTeam
|
|
140
96
|
*/
|
|
141
97
|
RemoveRecipientsByTeam(self: CRecipientFilter, teamid: number): void;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
interface CRecipientFilter {
|
|
145
98
|
/**
|
|
146
99
|
* Removes all players that are not on the given team from the filter.
|
|
147
100
|
* @realm server
|
|
@@ -150,3 +103,19 @@ interface CRecipientFilter {
|
|
|
150
103
|
RemoveRecipientsNotOnTeam(self: CRecipientFilter, teamid: number): void;
|
|
151
104
|
}
|
|
152
105
|
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
package/types/csoundpatch.d.tlua
CHANGED
|
@@ -6,8 +6,6 @@
|
|
|
6
6
|
* Created with [Global.CreateSound](https://wiki.facepunch.com/gmod/Global.CreateSound)
|
|
7
7
|
* @source https://wiki.facepunch.com/gmod/CSoundPatch
|
|
8
8
|
*/
|
|
9
|
-
interface CSoundPatch {}
|
|
10
|
-
|
|
11
9
|
interface CSoundPatch {
|
|
12
10
|
/**
|
|
13
11
|
* Adjust the pitch, also known as the speed at which the sound is being played.
|
|
@@ -20,9 +18,6 @@ interface CSoundPatch {
|
|
|
20
18
|
* @source https://wiki.facepunch.com/gmod/CSoundPatch:ChangePitch
|
|
21
19
|
*/
|
|
22
20
|
ChangePitch(self: CSoundPatch, pitch: number, deltaTime?: number): void;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
interface CSoundPatch {
|
|
26
21
|
/**
|
|
27
22
|
* Adjusts the volume of the sound played.
|
|
28
23
|
*
|
|
@@ -32,90 +27,60 @@ interface CSoundPatch {
|
|
|
32
27
|
* @source https://wiki.facepunch.com/gmod/CSoundPatch:ChangeVolume
|
|
33
28
|
*/
|
|
34
29
|
ChangeVolume(self: CSoundPatch, volume: number, deltaTime?: number): void;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
interface CSoundPatch {
|
|
38
30
|
/**
|
|
39
31
|
* Fades out the volume of the sound from the current volume to 0 in the given amount of seconds.
|
|
40
32
|
* @realm shared
|
|
41
33
|
* @source https://wiki.facepunch.com/gmod/CSoundPatch:FadeOut
|
|
42
34
|
*/
|
|
43
35
|
FadeOut(self: CSoundPatch, seconds: number): void;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
interface CSoundPatch {
|
|
47
36
|
/**
|
|
48
37
|
* Returns the DSP (Digital Signal Processor) effect ID for the sound.
|
|
49
38
|
* @realm shared
|
|
50
39
|
* @source https://wiki.facepunch.com/gmod/CSoundPatch:GetDSP
|
|
51
40
|
*/
|
|
52
41
|
GetDSP(self: CSoundPatch): number;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
interface CSoundPatch {
|
|
56
42
|
/**
|
|
57
43
|
* Returns the current pitch.
|
|
58
44
|
* @realm shared
|
|
59
45
|
* @source https://wiki.facepunch.com/gmod/CSoundPatch:GetPitch
|
|
60
46
|
*/
|
|
61
47
|
GetPitch(self: CSoundPatch): number;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
interface CSoundPatch {
|
|
65
48
|
/**
|
|
66
49
|
* Returns the current sound level.
|
|
67
50
|
* @realm shared
|
|
68
51
|
* @source https://wiki.facepunch.com/gmod/CSoundPatch:GetSoundLevel
|
|
69
52
|
*/
|
|
70
53
|
GetSoundLevel(self: CSoundPatch): number;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
interface CSoundPatch {
|
|
74
54
|
/**
|
|
75
55
|
* Returns the sound name of this sound patch. This may be name of a sound script ([sound.Add](https://wiki.facepunch.com/gmod/sound.Add)) or a file path.
|
|
76
56
|
* @realm shared
|
|
77
57
|
* @source https://wiki.facepunch.com/gmod/CSoundPatch:GetSoundName
|
|
78
58
|
*/
|
|
79
59
|
GetSoundName(self: CSoundPatch): string;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
interface CSoundPatch {
|
|
83
60
|
/**
|
|
84
61
|
* Returns the current volume.
|
|
85
62
|
* @realm shared
|
|
86
63
|
* @source https://wiki.facepunch.com/gmod/CSoundPatch:GetVolume
|
|
87
64
|
*/
|
|
88
65
|
GetVolume(self: CSoundPatch): number;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
interface CSoundPatch {
|
|
92
66
|
/**
|
|
93
67
|
* Returns whenever the sound is being played.
|
|
94
68
|
* @realm shared
|
|
95
69
|
* @source https://wiki.facepunch.com/gmod/CSoundPatch:IsPlaying
|
|
96
70
|
*/
|
|
97
71
|
IsPlaying(self: CSoundPatch): boolean;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
interface CSoundPatch {
|
|
101
72
|
/**
|
|
102
73
|
* Starts to play the sound. This will reset the sound's volume and pitch to their default values. See [CSoundPatch:PlayEx](https://wiki.facepunch.com/gmod/CSoundPatch:PlayEx)
|
|
103
74
|
* @realm shared
|
|
104
75
|
* @source https://wiki.facepunch.com/gmod/CSoundPatch:Play
|
|
105
76
|
*/
|
|
106
77
|
Play(self: CSoundPatch): void;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
interface CSoundPatch {
|
|
110
78
|
/**
|
|
111
79
|
* Same as [CSoundPatch:Play](https://wiki.facepunch.com/gmod/CSoundPatch:Play) but with 2 extra arguments allowing to set volume and pitch directly.
|
|
112
80
|
* @realm shared
|
|
113
81
|
* @source https://wiki.facepunch.com/gmod/CSoundPatch:PlayEx
|
|
114
82
|
*/
|
|
115
83
|
PlayEx(self: CSoundPatch, volume: number, pitch: number): void;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
interface CSoundPatch {
|
|
119
84
|
/**
|
|
120
85
|
* Sets the DSP (Digital Signal Processor) effect for the sound.
|
|
121
86
|
*
|
|
@@ -125,18 +90,12 @@ interface CSoundPatch {
|
|
|
125
90
|
* @source https://wiki.facepunch.com/gmod/CSoundPatch:SetDSP
|
|
126
91
|
*/
|
|
127
92
|
SetDSP(self: CSoundPatch, dspEffectId: number): void;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
interface CSoundPatch {
|
|
131
93
|
/**
|
|
132
94
|
* Sets the sound level in decibel.
|
|
133
95
|
* @realm shared
|
|
134
96
|
* @source https://wiki.facepunch.com/gmod/CSoundPatch:SetSoundLevel
|
|
135
97
|
*/
|
|
136
98
|
SetSoundLevel(self: CSoundPatch, level: number): void;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
interface CSoundPatch {
|
|
140
99
|
/**
|
|
141
100
|
* Stops the sound from being played.
|
|
142
101
|
*
|
|
@@ -148,3 +107,17 @@ interface CSoundPatch {
|
|
|
148
107
|
Stop(self: CSoundPatch): void;
|
|
149
108
|
}
|
|
150
109
|
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
@@ -23,8 +23,6 @@
|
|
|
23
23
|
* * [Entity:DispatchTraceAttack](https://wiki.facepunch.com/gmod/Entity:DispatchTraceAttack)
|
|
24
24
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo
|
|
25
25
|
*/
|
|
26
|
-
interface CTakeDamageInfo {}
|
|
27
|
-
|
|
28
26
|
interface CTakeDamageInfo {
|
|
29
27
|
/**
|
|
30
28
|
* Increases the damage by damageIncrease.
|
|
@@ -32,63 +30,42 @@ interface CTakeDamageInfo {
|
|
|
32
30
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:AddDamage
|
|
33
31
|
*/
|
|
34
32
|
AddDamage(self: CTakeDamageInfo, damageIncrease: number): void;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
interface CTakeDamageInfo {
|
|
38
33
|
/**
|
|
39
34
|
* Returns the ammo type used by the weapon that inflicted the damage.
|
|
40
35
|
* @realm shared
|
|
41
36
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:GetAmmoType
|
|
42
37
|
*/
|
|
43
38
|
GetAmmoType(self: CTakeDamageInfo): number;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
interface CTakeDamageInfo {
|
|
47
39
|
/**
|
|
48
40
|
* Returns the attacker ( character who originated the attack ), for example a player or an NPC that shot the weapon.
|
|
49
41
|
* @realm shared
|
|
50
42
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:GetAttacker
|
|
51
43
|
*/
|
|
52
44
|
GetAttacker(self: CTakeDamageInfo): Entity;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
interface CTakeDamageInfo {
|
|
56
45
|
/**
|
|
57
46
|
* Returns the initial unmodified by skill level ( [game.GetSkillLevel](https://wiki.facepunch.com/gmod/game.GetSkillLevel) ) damage.
|
|
58
47
|
* @realm shared
|
|
59
48
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:GetBaseDamage
|
|
60
49
|
*/
|
|
61
50
|
GetBaseDamage(self: CTakeDamageInfo): number;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
interface CTakeDamageInfo {
|
|
65
51
|
/**
|
|
66
52
|
* Returns the total damage.
|
|
67
53
|
* @realm shared
|
|
68
54
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:GetDamage
|
|
69
55
|
*/
|
|
70
56
|
GetDamage(self: CTakeDamageInfo): number;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
interface CTakeDamageInfo {
|
|
74
57
|
/**
|
|
75
58
|
* Gets the current bonus damage.
|
|
76
59
|
* @realm shared
|
|
77
60
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:GetDamageBonus
|
|
78
61
|
*/
|
|
79
62
|
GetDamageBonus(self: CTakeDamageInfo): number;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
interface CTakeDamageInfo {
|
|
83
63
|
/**
|
|
84
64
|
* Gets the custom damage type. This is used by Day of Defeat: Source and Team Fortress 2 for extended damage info, but isn't used in Garry's Mod by default.
|
|
85
65
|
* @realm shared
|
|
86
66
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:GetDamageCustom
|
|
87
67
|
*/
|
|
88
68
|
GetDamageCustom(self: CTakeDamageInfo): number;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
interface CTakeDamageInfo {
|
|
92
69
|
/**
|
|
93
70
|
* Returns a vector representing the damage force.
|
|
94
71
|
*
|
|
@@ -98,9 +75,6 @@ interface CTakeDamageInfo {
|
|
|
98
75
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:GetDamageForce
|
|
99
76
|
*/
|
|
100
77
|
GetDamageForce(self: CTakeDamageInfo): Vector;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
interface CTakeDamageInfo {
|
|
104
78
|
/**
|
|
105
79
|
* Returns the position where the damage was or is going to be applied to.
|
|
106
80
|
*
|
|
@@ -110,9 +84,6 @@ interface CTakeDamageInfo {
|
|
|
110
84
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:GetDamagePosition
|
|
111
85
|
*/
|
|
112
86
|
GetDamagePosition(self: CTakeDamageInfo): Vector;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
interface CTakeDamageInfo {
|
|
116
87
|
/**
|
|
117
88
|
* Returns a bitflag which indicates the damage type(s) of the damage.
|
|
118
89
|
*
|
|
@@ -122,9 +93,6 @@ interface CTakeDamageInfo {
|
|
|
122
93
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:GetDamageType
|
|
123
94
|
*/
|
|
124
95
|
GetDamageType(self: CTakeDamageInfo): DMG;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
interface CTakeDamageInfo {
|
|
128
96
|
/**
|
|
129
97
|
* Returns the inflictor of the damage. This is not necessarily a weapon.
|
|
130
98
|
*
|
|
@@ -138,9 +106,6 @@ interface CTakeDamageInfo {
|
|
|
138
106
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:GetInflictor
|
|
139
107
|
*/
|
|
140
108
|
GetInflictor(self: CTakeDamageInfo): Entity;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
interface CTakeDamageInfo {
|
|
144
109
|
/**
|
|
145
110
|
* Returns the maximum damage. See [CTakeDamageInfo:SetMaxDamage](https://wiki.facepunch.com/gmod/CTakeDamageInfo:SetMaxDamage).
|
|
146
111
|
*
|
|
@@ -149,18 +114,12 @@ interface CTakeDamageInfo {
|
|
|
149
114
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:GetMaxDamage
|
|
150
115
|
*/
|
|
151
116
|
GetMaxDamage(self: CTakeDamageInfo): number;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
interface CTakeDamageInfo {
|
|
155
117
|
/**
|
|
156
118
|
* Returns the initial, unmodified position where the damage occured.
|
|
157
119
|
* @realm shared
|
|
158
120
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:GetReportedPosition
|
|
159
121
|
*/
|
|
160
122
|
GetReportedPosition(self: CTakeDamageInfo): Vector;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
interface CTakeDamageInfo {
|
|
164
123
|
/**
|
|
165
124
|
* Returns the inflicting weapon of the damage event, if there is any.
|
|
166
125
|
*
|
|
@@ -172,72 +131,48 @@ interface CTakeDamageInfo {
|
|
|
172
131
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:GetWeapon
|
|
173
132
|
*/
|
|
174
133
|
GetWeapon(self: CTakeDamageInfo): Entity;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
interface CTakeDamageInfo {
|
|
178
134
|
/**
|
|
179
135
|
* Returns true if the damage was caused by a bullet.
|
|
180
136
|
* @realm shared
|
|
181
137
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:IsBulletDamage
|
|
182
138
|
*/
|
|
183
139
|
IsBulletDamage(self: CTakeDamageInfo): boolean;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
interface CTakeDamageInfo {
|
|
187
140
|
/**
|
|
188
141
|
* Returns whenever the damageinfo contains the damage type specified.
|
|
189
142
|
* @realm shared
|
|
190
143
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:IsDamageType
|
|
191
144
|
*/
|
|
192
145
|
IsDamageType(self: CTakeDamageInfo, dmgType: DMG): boolean;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
interface CTakeDamageInfo {
|
|
196
146
|
/**
|
|
197
147
|
* Returns whenever the damageinfo contains explosion damage.
|
|
198
148
|
* @realm shared
|
|
199
149
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:IsExplosionDamage
|
|
200
150
|
*/
|
|
201
151
|
IsExplosionDamage(self: CTakeDamageInfo): boolean;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
interface CTakeDamageInfo {
|
|
205
152
|
/**
|
|
206
153
|
* Returns whenever the damageinfo contains fall damage.
|
|
207
154
|
* @realm shared
|
|
208
155
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:IsFallDamage
|
|
209
156
|
*/
|
|
210
157
|
IsFallDamage(self: CTakeDamageInfo): boolean;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
interface CTakeDamageInfo {
|
|
214
158
|
/**
|
|
215
159
|
* Scales the damage by the given value.
|
|
216
160
|
* @realm shared
|
|
217
161
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:ScaleDamage
|
|
218
162
|
*/
|
|
219
163
|
ScaleDamage(self: CTakeDamageInfo, scale: number): void;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
interface CTakeDamageInfo {
|
|
223
164
|
/**
|
|
224
165
|
* Changes the ammo type used by the weapon that inflicted the damage.
|
|
225
166
|
* @realm shared
|
|
226
167
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:SetAmmoType
|
|
227
168
|
*/
|
|
228
169
|
SetAmmoType(self: CTakeDamageInfo, ammoType: number): void;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
interface CTakeDamageInfo {
|
|
232
170
|
/**
|
|
233
171
|
* Sets the attacker ( character who originated the attack ) of the damage, for example a player or an NPC.
|
|
234
172
|
* @realm shared
|
|
235
173
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:SetAttacker
|
|
236
174
|
*/
|
|
237
175
|
SetAttacker(self: CTakeDamageInfo, ent: Entity): void;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
interface CTakeDamageInfo {
|
|
241
176
|
/**
|
|
242
177
|
* Sets the initial damage, unmodified by the current skill level ([game.GetSkillLevel](https://wiki.facepunch.com/gmod/game.GetSkillLevel)). This is usually set automatically by the game when dealing damage.
|
|
243
178
|
*
|
|
@@ -248,36 +183,24 @@ interface CTakeDamageInfo {
|
|
|
248
183
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:SetBaseDamage
|
|
249
184
|
*/
|
|
250
185
|
SetBaseDamage(self: CTakeDamageInfo, arg0: number): void;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
interface CTakeDamageInfo {
|
|
254
186
|
/**
|
|
255
187
|
* Sets the amount of damage.
|
|
256
188
|
* @realm shared
|
|
257
189
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:SetDamage
|
|
258
190
|
*/
|
|
259
191
|
SetDamage(self: CTakeDamageInfo, damage: number): void;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
interface CTakeDamageInfo {
|
|
263
192
|
/**
|
|
264
193
|
* Sets the bonus damage. Bonus damage isn't automatically applied, so this will have no outer effect by default.
|
|
265
194
|
* @realm shared
|
|
266
195
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:SetDamageBonus
|
|
267
196
|
*/
|
|
268
197
|
SetDamageBonus(self: CTakeDamageInfo, damage: number): void;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
interface CTakeDamageInfo {
|
|
272
198
|
/**
|
|
273
199
|
* Sets the custom damage type. This is used by Day of Defeat: Source and Team Fortress 2 for extended damage info, but isn't used in Garry's Mod by default.
|
|
274
200
|
* @realm shared
|
|
275
201
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:SetDamageCustom
|
|
276
202
|
*/
|
|
277
203
|
SetDamageCustom(self: CTakeDamageInfo, DamageType: number): void;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
interface CTakeDamageInfo {
|
|
281
204
|
/**
|
|
282
205
|
* Sets the directional force of the damage.
|
|
283
206
|
* **NOTE**: This function only affects entities using the VPHYSICS movetype. This means players and most NPCs won't receive the force vector you provide as knockback.
|
|
@@ -291,27 +214,18 @@ interface CTakeDamageInfo {
|
|
|
291
214
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:SetDamageForce
|
|
292
215
|
*/
|
|
293
216
|
SetDamageForce(self: CTakeDamageInfo, force: Vector): void;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
interface CTakeDamageInfo {
|
|
297
217
|
/**
|
|
298
218
|
* Sets the position of where the damage gets applied to.
|
|
299
219
|
* @realm shared
|
|
300
220
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:SetDamagePosition
|
|
301
221
|
*/
|
|
302
222
|
SetDamagePosition(self: CTakeDamageInfo, pos: Vector): void;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
interface CTakeDamageInfo {
|
|
306
223
|
/**
|
|
307
224
|
* Sets the damage type.
|
|
308
225
|
* @realm shared
|
|
309
226
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:SetDamageType
|
|
310
227
|
*/
|
|
311
228
|
SetDamageType(self: CTakeDamageInfo, type: DMG): void;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
interface CTakeDamageInfo {
|
|
315
229
|
/**
|
|
316
230
|
* Sets the inflictor of the damage for example a weapon.
|
|
317
231
|
*
|
|
@@ -323,27 +237,18 @@ interface CTakeDamageInfo {
|
|
|
323
237
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:SetInflictor
|
|
324
238
|
*/
|
|
325
239
|
SetInflictor(self: CTakeDamageInfo, inflictor: Entity): void;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
interface CTakeDamageInfo {
|
|
329
240
|
/**
|
|
330
241
|
* Sets the "maximum damage" for this damage event. See [CTakeDamageInfo:GetMaxDamage](https://wiki.facepunch.com/gmod/CTakeDamageInfo:GetMaxDamage) for details.
|
|
331
242
|
* @realm shared
|
|
332
243
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:SetMaxDamage
|
|
333
244
|
*/
|
|
334
245
|
SetMaxDamage(self: CTakeDamageInfo, maxDamage: number): void;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
interface CTakeDamageInfo {
|
|
338
246
|
/**
|
|
339
247
|
* Sets the origin of the damage.
|
|
340
248
|
* @realm shared
|
|
341
249
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:SetReportedPosition
|
|
342
250
|
*/
|
|
343
251
|
SetReportedPosition(self: CTakeDamageInfo, pos: Vector): void;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
interface CTakeDamageInfo {
|
|
347
252
|
/**
|
|
348
253
|
* Sets the damage-inflicting weapon of the damage event.
|
|
349
254
|
*
|
|
@@ -353,9 +258,6 @@ interface CTakeDamageInfo {
|
|
|
353
258
|
* @source https://wiki.facepunch.com/gmod/CTakeDamageInfo:SetWeapon
|
|
354
259
|
*/
|
|
355
260
|
SetWeapon(self: CTakeDamageInfo, arg0: Entity): void;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
interface CTakeDamageInfo {
|
|
359
261
|
/**
|
|
360
262
|
* Subtracts the specified amount from the damage.
|
|
361
263
|
* @realm shared
|
|
@@ -364,3 +266,36 @@ interface CTakeDamageInfo {
|
|
|
364
266
|
SubtractDamage(self: CTakeDamageInfo, damage: number): void;
|
|
365
267
|
}
|
|
366
268
|
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|