Skip to content

Commit ceca576

Browse files
bakatamegitbook-bot
authored andcommitted
GITBOOK-40: No subject
1 parent de0c136 commit ceca576

File tree

8 files changed

+102
-12
lines changed

8 files changed

+102
-12
lines changed

SUMMARY.md

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
* [🖥 c\_material](documentation/class/c\_material.md)
3131
* [☺ c\_material\_var](documentation/class/c\_material\_var.md)
3232
* [⏲ c\_lua\_menu\_item](documentation/class/c\_lua\_menu\_item.md)
33+
* [🕵♂ bf\_read](documentation/class/bf\_read.md)
34+
* [⛏ autowall](documentation/class/autowall.md)
3335
* [🚑 c\_client\_entity](documentation/class/c\_client\_entity.md)
3436
* [Enumerations](documentation/enumerations/README.md)
3537
* [🤿 manual\_direction](documentation/enumerations/manual\_direction.md)

documentation/class/autowall.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# ⛏ autowall
2+
3+
| | Function Parameter | Return Type |
4+
| ----------- | ------------------ | ----------- |
5+
| is\_visible | | bool |
6+
| get\_damage | | float |

documentation/class/bf_read.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# 🕵♂ bf\_read
2+
3+
| | Function Parameter | Return Type |
4+
| ------------ | ------------------ | ----------- |
5+
| set\_offset | int offset | void |
6+
| skip | int length | void |
7+
| read\_int | | int |
8+
| read\_bool | | bool |
9+
| read\_string | | std::string |

documentation/class/esp_player_info.md

+1
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@
2727
| is\_steam\_friend | bool | |
2828
| get\_bb\_start | [c\_vector2d](c\_vector2d.md) | |
2929
| get\_bb\_size | [c\_vector2d](c\_vector2d.md) | |
30+
| is\_visible | | bool |

documentation/events.md

+44-12
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
| | Type | Description |
1010
| ----------------------- | -------------- | --------------------------- |
1111
| **`hook_name`** | **`string`** | event name |
12-
| **`protected`function** | **`function`** | Functions to trigger unload |
12+
| **`protected`function** | **`function`** | Functions to trigger events |
1313

1414
```lua
1515
-- Source: https://rifk7.com/index.php?threads/events.294/
@@ -33,9 +33,9 @@ end);
3333

3434
**`hooks.add_lua_unload_callback(function)`** <mark style="color:purple;">`:Void`</mark>
3535

36-
| | Type | Description |
37-
| -------------- | -------------- | --------------------------- |
38-
| **`function`** | **`function`** | Functions to trigger events |
36+
| | Type | Description |
37+
| -------------- | -------------- | ---------------------------------- |
38+
| **`function`** | **`function`** | Functions to trigger unload script |
3939

4040
```lua
4141
//Example #1
@@ -57,10 +57,10 @@ end)
5757

5858
**`hooks.add_menu_callback(menu_item_name, protected_function)`** <mark style="color:purple;">`:Void`</mark>
5959

60-
| | Type | Description |
61-
| ------------------------ | -------------- | --------------------------- |
62-
| **`menu_item_name`** | **`String`** | Menu name |
63-
| **`protected_function`** | **`function`** | Functions to trigger unload |
60+
| | Type | Description |
61+
| ------------------------ | -------------- | ------------------------------- |
62+
| **`menu_item_name`** | **`String`** | Menu name |
63+
| **`protected_function`** | **`function`** | Functions to trigger menu value |
6464

6565
```lua
6666
local checkbox_item = menu.add_checkbox("Example Checkbox", false);
@@ -73,10 +73,10 @@ end)
7373

7474
**`hooks.add_delayed_callback(delay, protected_function)`** <mark style="color:purple;">`:Void`</mark>
7575

76-
| | Type | Description |
77-
| ------------------------ | -------------- | --------------------------- |
78-
| **`delay`** | **`float`** | Delay time |
79-
| **`protected_function`** | **`function`** | Functions to trigger unload |
76+
| | Type | Description |
77+
| ------------------------ | -------------- | -------------------------- |
78+
| **`delay`** | **`float`** | Delay time |
79+
| **`protected_function`** | **`function`** | Functions to trigger delay |
8080

8181
```lua
8282
local num = 1
@@ -86,6 +86,27 @@ hooks.add_delayed_callback(10, function()
8686
end)
8787
```
8888

89+
### add\_voice\_msg\_callback&#x20;
90+
91+
**`hooks.add_voice_msg_callback(packet_id, protected_function)`** <mark style="color:purple;">`:Void`</mark>
92+
93+
| | Type | Description |
94+
| ------------------------ | -------------- | -------------------------- |
95+
| **`packet_id`** | **`int`** | packet id |
96+
| **`protected_function`** | **`function`** | Functions to trigger event |
97+
98+
#### Function value:
99+
100+
| Name | Type |
101+
| ------------------ | --------- |
102+
| **`sender_index`** | **`int`** |
103+
| **`value_1`** | **`int`** |
104+
| **`value_2`** | **`int`** |
105+
| **`value_3`** | **`int`** |
106+
| **`value_4`** | `int` |
107+
108+
109+
89110
## game events:
90111

91112
{% embed url="https://wiki.alliedmods.net/Counter-Strike:_Global_Offensive_Events" %}
@@ -253,3 +274,14 @@ on ragebot multipoint setup
253274
| hitbox | [hitbox](enumerations/hitbox.md) | |
254275
| should\_multipoint\_hitbox | bool | |
255276
| should\_override | bool | |
277+
278+
### on\_dispatch\_user\_message
279+
280+
on\_dispatch\_user\_message
281+
282+
🔗 struct <mark style="color:blue;">**`dispatch_user_message`**</mark>
283+
284+
| | Type | Description |
285+
| ------------- | -------- | ----------- |
286+
| message\_type | int | |
287+
| message | bf\_read | |

documentation/variables/engine.md

+4
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,7 @@
5757
### execute\_console\_command
5858

5959
`engine.execute_console_command(std::string text):` <mark style="color:purple;">`void`</mark>
60+
61+
### send\_share\_packet
62+
63+
`engine.execute_console_command(int packet_id, int value_1, int value_2, int value_3, int value_4):` <mark style="color:purple;">`void`</mark>

documentation/variables/engine_game_trace.md

+12
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,15 @@
2121
| x/y/z | float |
2222
| mask | [trace\_mask](../enumerations/trace\_mask.md) |
2323
| ignore | c\_client\_entity\* |
24+
25+
### autowall\_trace
26+
27+
`engine_game_trace.autowall_trace(enemy, hitpoint_x, hitpoint_y, hitpoint_z, hitbox):` <mark style="color:purple;">**`autowall*`**</mark>
28+
29+
| Name | Type |
30+
| ----------- | ---------------- |
31+
| enemy | c\_cs\_player\* |
32+
| hitpoint\_x | float |
33+
| hitpoint\_y | float |
34+
| hitpoint\_z | float |
35+
| hitbox | int |

documentation/variables/model_render.md

+24
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,27 @@
131131
### get\_skybox\_texture\_3\_material
132132

133133
`model_render.get_skybox_texture_3_material():` <mark style="color:purple;">`table c_material`</mark>
134+
135+
### get\_first\_material
136+
137+
`model_render.get_first_material():` <mark style="color:purple;">`material_handle`</mark>
138+
139+
### get\_next\_material
140+
141+
`model_render.get_next_material(handle):` <mark style="color:purple;">`material_handle`</mark>
142+
143+
| Name | Type |
144+
| ------ | ------------------------------------------------------- |
145+
| handle | <mark style="color:purple;">**material\_handle**</mark> |
146+
147+
### is\_invalid\_material
148+
149+
`model_render.is_invalid_material():` <mark style="color:purple;">`material_handle`</mark>
150+
151+
### get\_material
152+
153+
`model_render.get_material(handle):` <mark style="color:purple;">`c_material*`</mark>
154+
155+
| Name | Type |
156+
| ------ | ------------------------------------------------------- |
157+
| handle | <mark style="color:purple;">**material\_handle**</mark> |

0 commit comments

Comments
 (0)