Initial checkout of Vore Tournament 0.1.alpha.
[voretournament/voretournament.git] / data / qcsrc / server / cl_physics.qc
1 .float race_penalty;\r
2 .float restart_jump;\r
3 \r
4 float sv_accelerate;\r
5 float sv_friction;\r
6 float sv_maxspeed;\r
7 float sv_airaccelerate;\r
8 float sv_maxairspeed;\r
9 float sv_stopspeed;\r
10 float sv_gravity;\r
11 float sv_airaccel_sideways_friction;\r
12 float sv_airaccel_qw;\r
13 float sv_airstopaccelerate;\r
14 float sv_airstrafeaccelerate;\r
15 float sv_maxairstrafespeed;\r
16 float sv_aircontrol;\r
17 float sv_warsowbunny_airforwardaccel;\r
18 float sv_warsowbunny_accel;\r
19 float sv_warsowbunny_topspeed;\r
20 float sv_warsowbunny_turnaccel;\r
21 float sv_warsowbunny_backtosideratio;\r
22 \r
23 .float ladder_time;\r
24 .entity ladder_entity;\r
25 .float gravity;\r
26 .float swamp_slowdown;\r
27 .float lastflags;\r
28 .float lastground;\r
29 .float wasFlying;\r
30 .float spectatorspeed;\r
31 \r
32 /*\r
33 =============\r
34 PlayerJump\r
35 \r
36 When you press the jump key\r
37 =============\r
38 */\r
39 void PlayerJump (void)\r
40 {\r
41         float mjumpheight;\r
42 \r
43         mjumpheight = cvar("sv_jumpvelocity");\r
44         if (self.waterlevel >= WATERLEVEL_SWIMMING)\r
45         {\r
46                 if (self.watertype == CONTENT_WATER)\r
47                         self.velocity_z = 200;\r
48                 else if (self.watertype == CONTENT_SLIME)\r
49                         self.velocity_z = 80;\r
50                 else\r
51                         self.velocity_z = 50;\r
52 \r
53                 return;\r
54