-
Notifications
You must be signed in to change notification settings - Fork 1
Hooks
EntranceJew edited this page Oct 12, 2014
·
4 revisions
This version makes use of hooks that I put all over the place. Here they are. All arguments are in order. If there are none listed then it has none.
-
GameLoaded is called at the end of
menu_load(), which is after the intro. - GameConsoleOpened is called whenever the cupid console is opened.
- GameConsoleClosed is called whenever the cupid console is closed.
-
GameOnlineMenuLoaded is called at the end of
onlinemenu_load(), which is necessary for some initialization.
-
ServerClientConnected is called at the end of
server_callback_connect()after issuing theconnectedresponse to the client. This is also called when the hosting player opens the lobby because they are a client to their own server.-
clientid
intis the index of the player's info in theserver_peerlist, which is usually stored on the client asnetworkclientnumber. -
ip
stringis the IP of the client that connected. -
port
stringis the port number that the client is accessing through.
-
clientid