]> icculus.org git repositories - divverent/nexuiz.git/blob - TeamNexuiz/game/gamec/tfdefs.c
Added a Game C folder
[divverent/nexuiz.git] / TeamNexuiz / game / gamec / tfdefs.c
1 /*************************************\r
2         Team:Nexuiz (NexTF) Definitions\r
3 *************************************/\r
4 \r
5 /********************* General ***************************/\r
6 float TF_FLARE_LIT = 0;         // Woes of a decompiler, eh?\r
7 float TF_FLARE_OFF = 1;         ////\r
8 float CTF_Map;\r
9 float (entity e, float healamount, float ignore) T_Heal;\r
10 \r
11 // Temporary Defs (till I implement real systems for these)\r
12 //float joinorder;              // menu implemented :)\r
13 \r
14 // Team Scores\r
15 float team1score;\r
16 float team2score;\r
17 float team3score;\r
18 float team4score;\r
19 \r
20 // Team Colors\r
21 float team1col;\r
22 float team2col;\r
23 float team3col;\r
24 float team4col;\r
25 \r
26 // Last Spawn Place of Team\r
27 entity lastspawn_team1;\r
28 entity lastspawn_team2;\r
29 entity lastspawn_team3;\r
30 entity lastspawn_team4;\r
31 \r
32 // Death Message (we should incorporate this into Team:Nexuiz some time)\r
33 float deathmsg;\r
34 \r
35 // Hmm?\r
36 .float has_abbreviated;         // for NetQuake's UpdateAbbreviation fucntion\r
37 .float hn_i_g;\r
38 .float hasnt_item_from_group;\r
39 float flagem_checked;\r
40 .float tp_grenades_1;\r
41 .float tp_grenades_2;\r
42 .float camdist;\r
43 .vector camangle;\r
44 .entity observer_list;\r
45 float cb_prematch_time;\r
46 \r
47 float civilianteams;    // Are civilian teams allowed?\r
48 \r
49 float parems_decoded;           // Have the parameters already been decoded - XavioR\r
50 \r
51 //Team Frags                    (old function -- possibly moot)\r
52 float team1frags;\r
53 float team2frags;\r
54 float team3frags;\r
55 float team4frags;\r
56 \r
57 //FlagExists floats so that a team flag isnt spawned twice by the Q3F conversion code\r
58 float redflagexists;\r
59 float blueflagexists;\r
60 \r
61 .void() th_die;         // wtf is this again..\r
62 .void() th_stand;\r
63 .void() th_walk;\r
64 .void() th_run;\r
65 .void() th_missile;\r
66 .void() th_melee;\r
67 \r
68 // Weapon Clips\r
69 .float reload_time;\r
70 .float clip_crylink;\r
71 .float clip_rockets;\r
72 .float clip_pipegrenades;\r
73 float CLIP_MAX_CRYLINK = 8;\r
74 float CLIP_MAX_ROCKETS = 4;\r
75 float CLIP_MAX_PIPEGRENADES = 6;\r
76 \r
77 .float playerclass;                     // TF's recognition of players. This will be set in accordance to tf playerclasses\r
78 \r
79 .float is_dead;                 // temp         // player is dead\r
80 \r
81 .float immune_to_check;         // How long player is immune to cheat check?\r
82                                                         //// Personally i think I'm jsut gonna implement krimzon's\r
83                                                         //// ParseClientCommand to check color change cheats. - XavioR\r
84 .float axhitme;                 // Goal Item (I think) -- if ax hits then blah\r
85                                                 // There's no axe in nexuiz tho.... :/\r
86 .float armor_allowed;           //\r
87 .float maxarmor;                        ////\r
88 .float ammo_medikit;\r
89 .float maxammo_medikit;\r
90 .float ammo_detpack;\r
91 .float maxammo_detpack;\r
92 .float maxammo_shells;\r
93 .float maxammo_nails;\r
94 .float maxammo_cells;\r
95 .float maxammo_rockets;\r
96 .float last_impulse;\r
97 .float real_frags;\r
98 .float items_allowed;\r
99 .float super_time;              // no idea(?)\r
100 .float super_sound;             ////\r
101 .float invisible_finished;              // Not a NexTF function(?)\r
102 .float invisible_time;                  ////\r
103 .float radsuit_finished;                // BioSuit(?)\r
104 .float rad_time;                                ////\r
105 .float distance;                // My guess is that this is whatever TF uses to store entity distances\r
106                                                 // from each other?\r
107 .float volume;\r
108 .float option5;\r
109 \r
110 .float worldtype;                       // Not sure\r
111 \r
112 .float armorclass;      // How will nexTF's armor class work? \r
113                                         // It's a good thing to have in anyways I guess.\r
114 \r
115 .float weaponmode;      //      I think only demoman and HWGuy use this, and since they're not in nextf.. poof\r
116 \r
117                                         // The TF State\r
118 .float tfstate; // State of the player according to quake TF.\r
119                                 // I will try to satisfy it for NexTF after the goal porting is done.\r
120 .float maxfbspeed;\r
121 .float maxstrafespeed;\r
122 .float StatusRefreshTime;               // The Status Bar\r
123 .float StatusBarSize;                   ////\r
124 .float StatusBarRes;                    ////\r
125 \r
126 // MENU STUFF\r
127 .float current_menu;\r
128 .float menu_count;\r
129 \r
130 .float heat;            // What tf uses for powering up weapons. Could be useful later?\r
131 \r
132 entity otemp;\r
133 entity stemp;\r
134 \r
135 .entity trigger_field;\r
136 \r
137 .string noise4;         // MTF fucntion -- possibly moot.\r
138 .string deathtype;              // "You have the flag"\r
139 \r
140 .string team_str_home;\r
141 .string team_str_moved;\r
142 .string team_str_carried;\r
143 \r
144 void (entity targ, entity inflictor, entity attacker, float damage) T_Damage;\r
145 void (entity targ, entity inflictor, entity attacker, float damage, float T_flags, float T_AttackType) TF_T_Damage;\r
146 void (entity Viewer, float pc, float rpc) TeamFortress_PrintClassName;\r
147 void (float classnum) SetMaxAmmoFor;\r
148 \r
149 /*********************************************************/\r
150 ///////////////////////////////////////////////////////////\r
151 /******************* Moved from:**************************/\r
152 //tffunctions\r
153 void (string halias, float himpulse1, float himpulse2) TeamFortress_Alias;\r
154 \r
155 // tfcombat:\r
156 .float invincible_time;         //Pent effect time\r
157 .float invincible_sound;        //Pent hit sound\r
158 void (entity inflictor, entity attacker, float damage, entity ignore) T_RadiusDamage;\r
159 \r
160 // tfmapitems:\r
161 .float tf_items;\r
162 .float tf_items_flags;\r
163 .float goal_no;\r
164 .float group_no;\r
165 .float goal_state;\r
166 .float goal_activation;\r
167 .float goal_effects;\r
168 .float goal_group;\r
169 .float activate_goal_no;\r
170 .float inactivate_goal_no;\r
171 .float if_goal_is_active;\r
172 .float if_goal_is_inactive;\r
173 .float if_goal_is_removed;\r
174 .float if_group_is_active;\r
175 .float if_group_is_inactive;\r
176 .float if_group_is_removed;\r
177 .float remove_goal_no;\r
178 .float restore_goal_no;\r
179 .float activate_group_no;\r
180 .float inactivate_group_no;\r
181 .float remove_group_no;\r
182 .float restore_group_no;\r
183 .float has_item_from_group;\r
184 .float remove_item_group;\r
185 .float return_item_no;\r
186 \r
187 // tfplats\r
188 .float height;\r
189 .entity movetarget;\r
190 void () SUB_CalcMoveDone;\r
191 void (vector tdest, float tspeed, void() func) SUB_CalcMove;\r
192 void (entity ent, vector tdest, float tspeed, void() func) SUB_CalcMoveEnt;\r
193 \r
194 // tfq3fitems\r
195 .string is_converted_goal; // This is used to identify converted goals (helps me determine spawn in q3f maps)\r
196 float q3fdetect;\r
197 .vector orig_origin;\r
198 .string activetarget;\r
199 .string allowteams;\r
200 void () i_p_t;\r
201 \r
202 // tfgrenades\r
203 void () TeamFortress_PrimeGrenade;\r
204 void () TeamFortress_ThrowGrenade;\r
205 void () NormalGrenadeTouch;\r
206 void () NormalGrenadeExplode;\r
207 float () crandom;\r
208 \r
209 // tfsubs\r
210 .float dont_do_triggerwork;\r
211 void (entity Goal, entity AP) DoGroupWork;\r
212 void (entity Goal, entity AP) DoGoalWork;\r
213 void () button_wait;\r
214 \r
215 /******************* End Moved From Section **************/\r
216 ///////////////////////////////////////////////////////////\r
217 /*************** Defs that need functions ****************/\r
218 .float lives;                   // Amount of lives\r
219 float toggleflags;\r
220 .float is_unabletospy;          // picking up tfgoal makes the spy unable to go undercover\r
221 .float owned_by;                // Item is owned by team #