]> icculus.org git repositories - divverent/nexuiz.git/blob - attic/TeamNexuiz/game/gamec/civilian.c
now menu qc respects g_campaign_name
[divverent/nexuiz.git] / attic / TeamNexuiz / game / gamec / civilian.c
1 /*\r
2                         -=[Team:Nexuiz]=-\r
3                 Class:                          Civilian\r
4                 Grenade 1 type:         none\r
5                 Grenade 2 type:         none\r
6                 Weapon 1:                       Ball Launcher (on enabled maps)\r
7                 Weapon 2:                       none\r
8                 Weapon 3:                       none\r
9                 Weapon 4:                       none\r
10                 Special 1:                      none\r
11                 Special 2:                      none\r
12                 Purpose:                        Generally used in hostage rescue scenario maps (hunted, border1) and also\r
13                                                         sports maps like tn_soccer and sandrena.\r
14 */\r
15 \r
16 void BecomeCivilian(float portion)\r
17 {\r
18         self.max_health = cvar("g_balance_class_civilian_health") * portion;\r
19 \r
20         self.max_armor = cvar("g_balance_class_civilian_armor") * portion;\r
21 \r
22         self.mass = cvar("g_balance_class_civilian_mass");\r
23 \r
24         SetPlayerSpeed(self);\r
25 \r
26         self.items = 0/*IT_WEP1 | IT_WEP2 | IT_WEP3 | IT_WEP4*/;\r
27         self.switchweapon = 0;\r
28         self.ammo_shells = floor(20 * portion);\r
29         self.ammo_nails = floor(20 * portion);\r
30         self.ammo_rockets = floor(1 * portion);\r
31         self.ammo_cells = floor(0 * portion);\r
32         self.playerclass = TF_CLASS_CIVILIAN;           // TF P.C.\r
33         SetMaxAmmoFor (CLASS_CIVILIAN);\r
34 }\r
35 \r
36 void CivilianPreThink()\r
37 {\r
38 }\r
39 \r
40 void CivilianPostThink()\r
41 {\r
42 }