]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/t_halflife.qc
Merge branch 'master' into terencehill/quickmenu
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / t_halflife.qc
1 #include "_all.qh"
2
3 #include "../warpzonelib/util_server.qh"
4 #include "vehicles/vehicle.qh"
5
6 .float  ladder_time;
7 .entity ladder_entity;
8
9 .float  roomtype;
10 .float  radius;
11 .float  pitch;
12 .float  renderamt;
13 .float  rendermode;
14 .vector rendercolor;
15
16 void spawnfunc_weapon_crossbow() {}
17 void spawnfunc_weapon_handgrenade() {}
18 void spawnfunc_ammo_crossbow() {}
19 void spawnfunc_ammo_9mmclip() {}
20 void spawnfunc_ammo_gaussclip() {}
21 void spawnfunc_weapon_rpg() {}
22 void spawnfunc_weapon_357() {}
23 void ammo_ARgrenades() {}
24 void spawnfunc_item_battery() {}
25 void spawnfunc_ammo_rpgclip() {}
26 void weapon_9mmAR() {}
27 void spawnfunc_weapon_tripmine() {}
28 void spawnfunc_weapon_snark() {}
29 void spawnfunc_ammo_buckshot() {}
30 void ammo_9mmAR() {}
31 void spawnfunc_ammo_357() {}
32 void spawnfunc_weapon_gauss() {}
33 void spawnfunc_weapon_hornetgun() {}
34 //void spawnfunc_weapon_shotgun() {}
35 void spawnfunc_item_healthkit() {}
36 void spawnfunc_item_longjump() {}
37 void spawnfunc_item_antidote() {}
38 void spawnfunc_func_recharge() {}
39 void spawnfunc_info_node() {}
40 void spawnfunc_env_sound() {}
41 void spawnfunc_light_spot() {}
42 void spawnfunc_func_healthcharger() {}
43
44
45 void func_ladder_touch()
46 {
47         if (!other.iscreature)
48                 return;
49         if (other.vehicle_flags & VHF_ISVEHICLE)
50                 return;
51
52         EXACTTRIGGER_TOUCH;
53
54         other.ladder_time = time + 0.1;
55         other.ladder_entity = self;
56 }
57
58 void spawnfunc_func_ladder()
59 {
60         EXACTTRIGGER_INIT;
61         self.touch = func_ladder_touch;
62 }
63
64 void spawnfunc_func_water()
65 {
66         EXACTTRIGGER_INIT;
67         self.touch = func_ladder_touch;
68 }
69