-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix game and addon mounting (now file.Find works for them) + add Game…
…Events and Sounds bindings+ additions to Predictions, enumerations,
- Loading branch information
Showing
40 changed files
with
1,071 additions
and
429 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
docs/hooks/shared/EntityKeyValue.md → docs/hooks/server/EntityKeyValue.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
template: lua-hook.html | ||
title: CalcViewModelView | ||
icon: lua-shared | ||
tags: | ||
- lua | ||
- shared | ||
- needs-verification | ||
- needs-example | ||
lua: | ||
function: CalcViewModelView | ||
realm: shared | ||
description: "Allows overriding the view model's position and angles." | ||
arguments: | ||
- name: "weapon" | ||
description: "" | ||
type: Entity | ||
- name: "viewModel" | ||
description: "" | ||
type: Entity | ||
- name: "eyePosition" | ||
description: "" | ||
type: Vector | ||
- name: "eyeAngles" | ||
description: "" | ||
type: Angle | ||
- name: "vmorigin" | ||
description: "" | ||
type: Vector | ||
- name: "vmangles" | ||
description: "" | ||
type: Angle | ||
returns: | ||
- type: Vector | ||
description: "replacement origin" | ||
- type: Angle | ||
description: "replacement angles" | ||
--- | ||
|
||
<div class="lua__search__keywords"> | ||
hook CalcViewModelView – "Allows overriding the view model's position and angles." | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
template: lua-library-function.html | ||
title: Listen | ||
icon: lua-shared | ||
tags: | ||
- lua | ||
- shared | ||
- needs-verification | ||
- needs-example | ||
lua: | ||
library: GameEvents | ||
function: Listen | ||
realm: shared | ||
description: "Call a hook for this game event name, when the event occurs." | ||
|
||
arguments: | ||
- name: "eventName" | ||
type: string | ||
returns: | ||
|
||
--- | ||
|
||
<div class="lua__search__keywords"> | ||
GameEvents.Listen – Call a hook for this game event name, when the event occurs. | ||
</div> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
template: lua-library-function.html | ||
title: IsFirstTimePredicted | ||
icon: lua-server | ||
tags: | ||
- lua | ||
- server | ||
- needs-verification | ||
- needs-example | ||
lua: | ||
library: Predictions | ||
function: IsFirstTimePredicted | ||
realm: server | ||
description: "Always returns true on the server. TODO: what should it do?" | ||
|
||
|
||
returns: | ||
- type: boolean | ||
description: "Always true on the server." | ||
--- | ||
|
||
<div class="lua__search__keywords"> | ||
Predictions.IsFirstTimePredicted – Always returns true on the server. TODO: what should it do? | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
template: lua-library-function.html | ||
title: Add | ||
icon: lua-shared | ||
tags: | ||
- lua | ||
- shared | ||
- needs-verification | ||
- needs-example | ||
lua: | ||
library: Sounds | ||
function: Add | ||
realm: shared | ||
description: "Creates a sound script." | ||
|
||
arguments: | ||
- name: "soundData" | ||
type: table | ||
returns: | ||
|
||
--- | ||
|
||
<div class="lua__search__keywords"> | ||
Sounds.Add – Creates a sound script. | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
game_sounds_manifest | ||
{ | ||
"precache_file" "scripts/sounds/lua_procedural.txt" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.