File: swnetcodes.h

package info (click to toggle)
yiff 2.06-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 3,464 kB
  • ctags: 3,028
  • sloc: ansic: 47,463; makefile: 218; sh: 77
file content (249 lines) | stat: -rw-r--r-- 4,323 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
/*
                     Shipwars Extended Network Codes


	These are network codes used in extended CS commands.

	Each one of these codes is prefixed (after a CS_CODE_EXT)
	to each segment of data transmitted to a CS_CODE_EXT.

	Example:

	"80 30 [argument(s)...]"

	80 is CS_CODE_EXT.

 */

#ifndef SWNETCODES_H
#define SWNETCODES_H


/*
 *	Economy magic number:
 *
 *	For authenticating the data segment as actually an
 *	eco buy or sell and not just a network error.
 */
#define ECO_EXCHANGE_MAGIC_NUMBER	20918632



/* ***************************************************************** */

/*
 *      path
 */
#define SWEXTCMD_SETOCSN                10

/*
 *	ru_to_au
 */
#define SWEXTCMD_SETUNITS		11


/*
 *	object_num loc_type locked_on intercepting_object
 *	thrust_rev_state thrust_dir thrust throttle
 *	lighting hp power antimatter shield_state
 *	selected_weapon cloak_state cloak_strength visibility
 *	damage_control
 */
#define SWEXTCMD_STDOBJVALS		30

/*
 *	type imageset owner size scanner_range
 *	velocity_max thrust_power turnrate hp_max power_max
 *	power_purity core_efficency antimatter_max
 *	total_weapons visibility
 */
#define SWEXTCMD_STDOBJMAXS		31

/*
 *	object_num weapon_num
 *	ocs_code emission_type amount max
 *	power range create_power delay last_used
 */
#define SWEXTCMD_STDWEPVALS		32


/*
 *	object_num;name
 */
#define SWEXTCMD_SETOBJNAME		40

/*
 *	object_num sect_x sect_y sect_z
 */
#define SWEXTCMD_SETOBJSECT		41

/* 
 *      object_num sect_x sect_y sect_z
 */
#define SWEXTCMD_SETFOBJSECT		42

/*
 *	object_num throttle
 */
#define SWEXTCMD_SETTHROTTLE            43

/*
 *	object_num selected_weapon
 */
#define SWEXTCMD_SETWEAPON		44

/*
 *	object_num arg
 *
 *	arg can be the name or number of the object to be intercepted
 *	or "#off" to turn intercept off.
 */
#define SWEXTCMD_SETINTERCEPT		45

/*
 *      object_num tar_object_num
 *
 *      tar_object_num can be -1 for unlock or -2 for lock next.
 */
#define SWEXTCMD_SETWEPLOCK		46

/*
 *	object_num shield_state shield_frequency
 */
#define SWEXTCMD_SETSHIELDS		47

/*
 *	object_num damage_control
 */
#define SWEXTCMD_SETDMGCTL		48

/*
 *	object_num cloak_state
 */
#define SWEXTCMD_SETCLOAK		49

/*
 *	object_num shield_visibility
 */
#define SWEXTCMD_SETSHIELDVIS		50

/*
 *	object_num lighting
 *
 *	Lighting is NOT a single mask value but the lighting's
 *	OR'ed mask value.
 */
#define SWEXTCMD_SETLIGHTING		51

/*
 *	object_num channel
 */
#define SWEXTCMD_SETCHANNEL		52

/*
 *    Client sends:
 *	object_num
 *
 *    Server sends:
 *      object_num
 *      credits rmu rmu_max damage_given damage_recieved kills
 */
#define SWEXTCMD_SETSCORE		54

/* 
 *	object_num engine_state
 */
#define SWEXTCMD_SETENGINE		55


/*
 *	object_num
 */
#define SWEXTCMD_REQNAME                60

/*
 *	object_num
 */
#define SWEXTCMD_REQSECT		61


/*
 *	object_num
 *	sect_x sect_y sect_z
 *	x y z
 *	heading pitch bank
 *	velocity
 *	velocity_heading velocity_pitch velocity_bank
 *	freq
 */
#define SWEXTCMD_FIREWEAPON		100

/*
 *	src_obj tar_obj
 */
#define SWEXTCMD_TRACTORBEAMLOCK	101

/*
 *	src_obj tar_obj bearing channel
 */
#define SWEXTCMD_HAIL			102

/*
 *      src_obj tar_obj bearing channel;message
 */
#define SWEXTCMD_COMMESSAGE		103


/*
 *	wep_obj tar_obj total_damage bearing
 *	structure_damage shield_damage
 *
 *	Bearing is relative from tar_obj to wep_obj.
 */
#define SWEXTCMD_NOTIFYHIT		120

/*
 *	reason_code destroyed_obj destroyer_obj
 *	destroyer_obj_owner
 *
 *	If client recieves this and destroyed_obj matches the
 *	client's player object number, then a CS_CODE_LOGOUT
 *	will probably come right after. ;)
 */
#define SWEXTCMD_NOTIFYDESTROY		121


/*
 *	object_num
 */
#define SWEXTCMD_ECO_REQVALUES		140

/*
 *	object_num flags tax_general tax_friend tax_hostile
 */
#define SWEXTCMD_ECO_SETVALUES		141

/*
 *	object_num sell_price buy_price
 *	product_amount product_max;product_name
 */
#define SWEXTCMD_ECO_SETPRODUCTVALUES	142

/*
 *      customer_obj proprietor_obj amount magic_number;product_name
 */
#define SWEXTCMD_ECO_BUY		143

/*
 *      customer_obj proprietor_obj amount magic_number;product_name
 */
#define SWEXTCMD_ECO_SELL		144

/*
 *      customer_obj proprietor_obj amount magic_number;product_name
 */
#define SWEXTCMD_ECO_TRADE		145



#endif /* SWNETCODES_H */