aboutsummaryrefslogtreecommitdiff
path: root/src/libparsec/include/net_conf.h
blob: 1bdb37b58f18feb5cc74e06d67476edb1e8c2b5e (plain)
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
/*
 * PARSEC HEADER: net_conf.h
 */

#ifndef _NET_CONF_H_
#define _NET_CONF_H_

#ifdef PARSEC_SERVER

	// flags
	#define INTERPOLATE_PLAYER_ACTIONS
	#define SEND_KILL_MESSAGES
	//#define NO_PROJECTILE_KILL_MESSAGES
	//#define DONT_SEND_EXTRA_CREATES
	#define ENABLE_PACKET_RECORDING
	#define ENABLE_PACKET_SWAPPING
	//#define ENABLE_PACKETDROP_TESTING
	//#define ENCRYPT_PACKETS

	#ifdef DONT_SEND_EXTRA_CREATES
		#define DSEXC(x)	x
	#else
		#define DSEXC(x)
	#endif

#else // !PARSEC_SERVER

	// flags
	#define INTERPOLATE_PLAYER_ACTIONS
	#define SEND_KILL_MESSAGES
	#define NO_PROJECTILE_KILL_MESSAGES
	//#define DONT_SEND_EXTRA_CREATES
	#define ENABLE_PACKET_RECORDING
	#define ENABLE_PACKET_SWAPPING
	#define ENABLE_PACKETDROP_TESTING
	//#define ENCRYPT_PACKETS

	#ifdef DONT_SEND_EXTRA_CREATES
		#define DSEXC(x)	x
	#else
		#define DSEXC(x)
	#endif

#endif // !PARSEC_SERVER

#endif // _NET_CONF_H_