Conitec 3d gamestudio-source development 用户手册

下载
页码 21
3D Gamestudio Programmer's Manual
                        
© Conitec July 2002
                       13
Command
Bytecode
Arguments
Description
cls_skill
0x0e
Long Entity_DPID
Short Struct_Offset
Fixed Skill
Send
an
entity
skill
(TCP).
Struct_Offset
gives the byte offset
of the skill in the 
A4_ENTITY
 struct.
cls_skill3
0x0f
Long Entity_DPID
Short Struct_Offset
Fixed Skill[3]
Send an entity vector skill (TCP).
Server Messages
The following commands are used for transferring information from the server to either a
specific client, or to all clients connected. Server-client communication uses the reliable TCP
protocol for important  messages, and the unreliable UDP protocol for unimportant messages.
Command
Bytecode
Arguments
Description
svc_fill
0x01
Filler byte for inflating TCP and
UDP messages to at least 8 bytes.
svc_create
0x03
Short Entity_Index
Short Identifier
Created entity with given index
(TCP).
svc_remove
0x04
Short Entity_Index
Removed entity from server (TCP).
svc_entsound
0x05
Short Entity_Index
Short Sound_Index
Scale(2000) Volume
Long Sound_Handle
Play an entity sound on the clients
(UDP).
svc_effect
0x06
Short Action_Index
Short Number
Position Start[3]
Fixed Vel[3]
Generate a particle or beam effect on
the clients (UDP).
svc_info
0x07
Long 0x11191218
Byte Protocol_Version
Float Server_Time
Float Frame_Time
Send a sync value and the server
time to the clients (TCP). This is sent
once a frame.
svc_var
0x0a
Short Var_Index
Short Var_Length
Fixed Var[Var_Length]
Send a variable to all clients (TCP).
svc_string
0x0b
Short String_Index
String Text
Send a string to all clients (TCP).
svc_skill
0x0e
Short Entity_Index
Short Struct_Offset
Fixed Skill
Send an entity skill particularly to
the
entity's
client
(TCP).
Struct_Offset
gives the byte offset
of the skill in the 
A4_ENTITY
 struct.
svc_skill3
0x0f
Short Entity_Index
Short Struct_Offset
Fixed Skill[3]
Send
an
entity
vector
skill
particularly to the entity's client
(TCP).
svc_update1 0x40..0x7f Short Entity_Index
(Parameters see below)
Update entity parameters 1 (UDP).
svc_update2 0x80..0xbf Short Entity_Index
(Parameters see below)
Update entity parameters 2 (UDP).