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
Copy file name to clipboardExpand all lines: README.md
+9-2
Original file line number
Diff line number
Diff line change
@@ -36,11 +36,18 @@ bool FirstRunState(); | "Get or s
36
36
Note: While represented in C++, below functions are for Squirrel. `const char*` type is translated to `string` type, and `byte`, `short`, and `long` types are translated to `integer` type in Squirrel. `void` types are simply the `function` type in Squirrel.
37
37
38
38
```c++
39
-
void GEClientCommand(short userid, int entindex, const char* pcmd, const char* fargs); | "Called whenever a player runs a console command."
40
-
void GEPlayerLanded(short userid); | "Called whenever a player lands on the ground. Game event: 'portal_player_touchedground'"
39
+
void GEClientCommand(short userid, int entindex, const char* pcmd, const char* fargs); | "Called when a client inputs a console command."
40
+
void GEClientActive(short userid, int entindex); | "Called when a player is 'activated' in the server, meaning fully loaded, not fully connect which happens before that."
41
+
void GEGameFrame(bool simulating); | "Called every server frame, used for the VScript loop. Warning: Don't do too intensive tasks with this!"
41
42
void GEPlayerPing(short userid, float ping_x, float ping_y, float ping_z); | "Called whenever a player pings. Game event: 'portal_player_ping'"
42
43
void GEPlayerPortaled(bool portal2); | "Called whenever a player goes through a portal. `portal2` is false when portal1/blue portal is entered. Game event: 'portal_player_portaled'"
43
44
void GETurretHitTurret(); | "Called whenever a turret hits another turret. Game event: 'turret_hit_turret'"
44
45
void GECamDetach(); | "Called whenever a camera is detached from a surface. Game event: 'security_camera_detached'"
46
+
void GEPlayerLanded(short userid); | "Called whenever a player lands on the ground. Game event: 'player_landed'"
47
+
void GEPlayerConnect(const char* name, int index, short userid, const char* xuid,
48
+
const char* networkid, const char* address, bool bot, int entindex); | "Called where a player connects to the server. 'index' is the entity index minus 1. Game event: 'player_connect'"
49
+
void GEPlayerInfo(const char* name, int index, short userid, const char* networkid,
50
+
const char* address, bool bot, int entindex); | "Called when a player changes their name."
51
+
45
52
void GEPlayerSay(short userid, const char* text, int entindex); | "Called whenever a player inputs a chat message. Game event: 'player_say'"
0 commit comments