| 1 |
/* |
| 2 |
=========================================================================== |
| 3 |
Copyright (C) 1999-2005 Id Software, Inc. |
| 4 |
|
| 5 |
This file is part of Quake III Arena source code. |
| 6 |
|
| 7 |
Quake III Arena source code is free software; you can redistribute it |
| 8 |
and/or modify it under the terms of the GNU General Public License as |
| 9 |
published by the Free Software Foundation; either version 2 of the License, |
| 10 |
or (at your option) any later version. |
| 11 |
|
| 12 |
Quake III Arena source code is distributed in the hope that it will be |
| 13 |
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
GNU General Public License for more details. |
| 16 |
|
| 17 |
You should have received a copy of the GNU General Public License |
| 18 |
along with Quake III Arena source code; if not, write to the Free Software |
| 19 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 |
=========================================================================== |
| 21 |
*/ |
| 22 |
// |
| 23 |
#include "../qcommon/q_shared.h" |
| 24 |
#include "../renderer/tr_types.h" |
| 25 |
#include "../game/bg_public.h" |
| 26 |
#include "cg_public.h" |
| 27 |
|
| 28 |
#include "../game/challenges.h" |
| 29 |
|
| 30 |
|
| 31 |
// The entire cgame module is unloaded and reloaded on each level change, |
| 32 |
// so there is NO persistant data between levels on the client side. |
| 33 |
// If you absolutely need something stored, it can either be kept |
| 34 |
// by the server in the server stored userinfos, or stashed in a cvar. |
| 35 |
|
| 36 |
#ifdef MISSIONPACK |
| 37 |
#define CG_FONT_THRESHOLD 0.1 |
| 38 |
#endif |
| 39 |
|
| 40 |
#define POWERUP_BLINKS 5 |
| 41 |
|
| 42 |
#define POWERUP_BLINK_TIME 1000 |
| 43 |
#define FADE_TIME 200 |
| 44 |
#define PULSE_TIME 200 |
| 45 |
#define DAMAGE_DEFLECT_TIME 100 |
| 46 |
#define DAMAGE_RETURN_TIME 400 |
| 47 |
#define DAMAGE_TIME 500 |
| 48 |
#define LAND_DEFLECT_TIME 150 |
| 49 |
#define LAND_RETURN_TIME 300 |
| 50 |
#define STEP_TIME 200 |
| 51 |
#define DUCK_TIME 100 |
| 52 |
#define PAIN_TWITCH_TIME 200 |
| 53 |
#define WEAPON_SELECT_TIME 1400 |
| 54 |
#define ITEM_SCALEUP_TIME 1000 |
| 55 |
#define ZOOM_TIME 150 |
| 56 |
#define ITEM_BLOB_TIME 200 |
| 57 |
#define MUZZLE_FLASH_TIME 20 |
| 58 |
#define SINK_TIME 1000 // time for fragments to sink into ground before going away |
| 59 |
#define ATTACKER_HEAD_TIME 10000 |
| 60 |
#define REWARD_TIME 3000 |
| 61 |
|
| 62 |
#define PULSE_SCALE 1.5 // amount to scale up the icons when activating |
| 63 |
|
| 64 |
#define MAX_STEP_CHANGE 32 |
| 65 |
|
| 66 |
#define MAX_VERTS_ON_POLY 10 |
| 67 |
#define MAX_MARK_POLYS 256 |
| 68 |
|
| 69 |
#define STAT_MINUS 10 // num frame for '-' stats digit |
| 70 |
|
| 71 |
#define ICON_SIZE 48 |
| 72 |
#define CHAR_WIDTH 32 |
| 73 |
#define CHAR_HEIGHT 48 |
| 74 |
#define TEXT_ICON_SPACE 4 |
| 75 |
|
| 76 |
#define TEAMCHAT_WIDTH 80 |
| 77 |
#define TEAMCHAT_HEIGHT 8 |
| 78 |
|
| 79 |
// very large characters.pk |
| 80 |
#define GIANT_WIDTH 32 |
| 81 |
#define GIANT_HEIGHT 48 |
| 82 |
|
| 83 |
#define NUM_CROSSHAIRS 99 |
| 84 |
|
| 85 |
#define TEAM_OVERLAY_MAXNAME_WIDTH 12 |
| 86 |
#define TEAM_OVERLAY_MAXLOCATION_WIDTH 16 |
| 87 |
|
| 88 |
#define DEFAULT_MODEL "sarge" |
| 89 |
#ifdef MISSIONPACK |
| 90 |
#define DEFAULT_TEAM_MODEL "sergei" |
| 91 |
#define DEFAULT_TEAM_HEAD "*sergei" |
| 92 |
#else |
| 93 |
#define DEFAULT_TEAM_MODEL "sarge" |
| 94 |
#define DEFAULT_TEAM_HEAD "sarge" |
| 95 |
#endif |
| 96 |
|
| 97 |
#define DEFAULT_REDTEAM_NAME "Vim supporters" |
| 98 |
#define DEFAULT_BLUETEAM_NAME "Emacs supporters" |
| 99 |
|
| 100 |
typedef enum { |
| 101 |
FOOTSTEP_NORMAL, |
| 102 |
FOOTSTEP_BOOT, |
| 103 |
FOOTSTEP_FLESH, |
| 104 |
FOOTSTEP_MECH, |
| 105 |
FOOTSTEP_ENERGY, |
| 106 |
FOOTSTEP_METAL, |
| 107 |
FOOTSTEP_SPLASH, |
| 108 |
|
| 109 |
FOOTSTEP_TOTAL |
| 110 |
} footstep_t; |
| 111 |
|
| 112 |
typedef enum { |
| 113 |
IMPACTSOUND_DEFAULT, |
| 114 |
IMPACTSOUND_METAL, |
| 115 |
IMPACTSOUND_FLESH |
| 116 |
} impactSound_t; |
| 117 |
|
| 118 |
//================================================= |
| 119 |
|
| 120 |
// player entities need to track more information |
| 121 |
// than any other type of entity. |
| 122 |
|
| 123 |
// note that not every player entity is a client entity, |
| 124 |
// because corpses after respawn are outside the normal |
| 125 |
// client numbering range |
| 126 |
|
| 127 |
// when changing animation, set animationTime to frameTime + lerping time |
| 128 |
// The current lerp will finish out, then it will lerp to the new animation |
| 129 |
typedef struct { |
| 130 |
int oldFrame; |
| 131 |
int oldFrameTime; // time when ->oldFrame was exactly on |
| 132 |
|
| 133 |
int frame; |
| 134 |
int frameTime; // time when ->frame will be exactly on |
| 135 |
|
| 136 |
float backlerp; |
| 137 |
|
| 138 |
float yawAngle; |
| 139 |
qboolean yawing; |
| 140 |
float pitchAngle; |
| 141 |
qboolean pitching; |
| 142 |
|
| 143 |
int animationNumber; // may include ANIM_TOGGLEBIT |
| 144 |
animation_t *animation; |
| 145 |
int animationTime; // time when the first frame of the animation will be exact |
| 146 |
} lerpFrame_t; |
| 147 |
|
| 148 |
|
| 149 |
typedef struct { |
| 150 |
lerpFrame_t legs, torso, flag; |
| 151 |
int painTime; |
| 152 |
int painDirection; // flip from 0 to 1 |
| 153 |
int lightningFiring; |
| 154 |
|
| 155 |
// railgun trail spawning |
| 156 |
vec3_t railgunImpact; |
| 157 |
qboolean railgunFlash; |
| 158 |
|
| 159 |
// machinegun spinning |
| 160 |
float barrelAngle; |
| 161 |
int barrelTime; |
| 162 |
qboolean barrelSpinning; |
| 163 |
} playerEntity_t; |
| 164 |
|
| 165 |
//================================================= |
| 166 |
|
| 167 |
|
| 168 |
|
| 169 |
// centity_t have a direct corespondence with gentity_t in the game, but |
| 170 |
// only the entityState_t is directly communicated to the cgame |
| 171 |
typedef struct centity_s { |
| 172 |
entityState_t currentState; // from cg.frame |
| 173 |
entityState_t nextState; // from cg.nextFrame, if available |
| 174 |
qboolean interpolate; // true if next is valid to interpolate to |
| 175 |
qboolean currentValid; // true if cg.frame holds this entity |
| 176 |
|
| 177 |
int muzzleFlashTime; // move to playerEntity? |
| 178 |
int previousEvent; |
| 179 |
int teleportFlag; |
| 180 |
|
| 181 |
int trailTime; // so missile trails can handle dropped initial packets |
| 182 |
int dustTrailTime; |
| 183 |
int miscTime; |
| 184 |
|
| 185 |
int snapShotTime; // last time this entity was found in a snapshot |
| 186 |
|
| 187 |
playerEntity_t pe; |
| 188 |
|
| 189 |
int errorTime; // decay the error from this time |
| 190 |
vec3_t errorOrigin; |
| 191 |
vec3_t errorAngles; |
| 192 |
|
| 193 |
qboolean extrapolated; // false if origin / angles is an interpolation |
| 194 |
vec3_t rawOrigin; |
| 195 |
vec3_t rawAngles; |
| 196 |
|
| 197 |
vec3_t beamEnd; |
| 198 |
|
| 199 |
// exact interpolated position of entity on this frame |
| 200 |
vec3_t lerpOrigin; |
| 201 |
vec3_t lerpAngles; |
| 202 |
} centity_t; |
| 203 |
|
| 204 |
|
| 205 |
//====================================================================== |
| 206 |
|
| 207 |
// local entities are created as a result of events or predicted actions, |
| 208 |
// and live independantly from all server transmitted entities |
| 209 |
|
| 210 |
typedef struct markPoly_s { |
| 211 |
struct markPoly_s *prevMark, *nextMark; |
| 212 |
int time; |
| 213 |
qhandle_t markShader; |
| 214 |
qboolean alphaFade; // fade alpha instead of rgb |
| 215 |
float color[4]; |
| 216 |
poly_t poly; |
| 217 |
polyVert_t verts[MAX_VERTS_ON_POLY]; |
| 218 |
} markPoly_t; |
| 219 |
|
| 220 |
|
| 221 |
typedef enum { |
| 222 |
LE_MARK, |
| 223 |
LE_EXPLOSION, |
| 224 |
LE_SPRITE_EXPLOSION, |
| 225 |
LE_FRAGMENT, |
| 226 |
LE_MOVE_SCALE_FADE, |
| 227 |
LE_FALL_SCALE_FADE, |
| 228 |
LE_FADE_RGB, |
| 229 |
LE_SCALE_FADE, |
| 230 |
LE_SCOREPLUM, |
| 231 |
LE_KAMIKAZE, |
| 232 |
LE_INVULIMPACT, |
| 233 |
LE_INVULJUICED, |
| 234 |
LE_SHOWREFENTITY, |
| 235 |
LE_GORE |
| 236 |
} leType_t; |
| 237 |
|
| 238 |
typedef enum { |
| 239 |
LEF_PUFF_DONT_SCALE = 0x0001, // do not scale size over time |
| 240 |
LEF_TUMBLE = 0x0002, // tumble over time, used for ejecting shells |
| 241 |
LEF_SOUND1 = 0x0004, // sound 1 for kamikaze |
| 242 |
LEF_SOUND2 = 0x0008 // sound 2 for kamikaze |
| 243 |
} leFlag_t; |
| 244 |
|
| 245 |
typedef enum { |
| 246 |
LEMT_NONE, |
| 247 |
LEMT_BURN, |
| 248 |
LEMT_BLOOD |
| 249 |
} leMarkType_t; // fragment local entities can leave marks on walls |
| 250 |
|
| 251 |
typedef enum { |
| 252 |
LEBS_NONE, |
| 253 |
LEBS_BLOOD, |
| 254 |
LEBS_BRASS, |
| 255 |
LEBS_SHELL |
| 256 |
} leBounceSoundType_t; // fragment local entities can make sounds on impacts |
| 257 |
|
| 258 |
typedef struct localEntity_s { |
| 259 |
struct localEntity_s *prev, *next; |
| 260 |
leType_t leType; |
| 261 |
int leFlags; |
| 262 |
|
| 263 |
int startTime; |
| 264 |
int endTime; |
| 265 |
int fadeInTime; |
| 266 |
|
| 267 |
float lifeRate; // 1.0 / (endTime - startTime) |
| 268 |
|
| 269 |
trajectory_t pos; |
| 270 |
trajectory_t angles; |
| 271 |
|
| 272 |
float bounceFactor; // 0.0 = no bounce, 1.0 = perfect |
| 273 |
|
| 274 |
float color[4]; |
| 275 |
|
| 276 |
float radius; |
| 277 |
|
| 278 |
float light; |
| 279 |
vec3_t lightColor; |
| 280 |
|
| 281 |
leMarkType_t leMarkType; // mark to leave on fragment impact |
| 282 |
leBounceSoundType_t leBounceSoundType; |
| 283 |
|
| 284 |
refEntity_t refEntity; |
| 285 |
} localEntity_t; |
| 286 |
|
| 287 |
//====================================================================== |
| 288 |
|
| 289 |
|
| 290 |
typedef struct { |
| 291 |
int client; |
| 292 |
int score; |
| 293 |
int ping; |
| 294 |
int time; |
| 295 |
int scoreFlags; |
| 296 |
int powerUps; |
| 297 |
int accuracy; |
| 298 |
int impressiveCount; |
| 299 |
int excellentCount; |
| 300 |
int guantletCount; |
| 301 |
int defendCount; |
| 302 |
int assistCount; |
| 303 |
int captures; |
| 304 |
qboolean perfect; |
| 305 |
int team; |
| 306 |
int isDead; |
| 307 |
} score_t; |
| 308 |
|
| 309 |
// each client has an associated clientInfo_t |
| 310 |
// that contains media references necessary to present the |
| 311 |
// client model and other color coded effects |
| 312 |
// this is regenerated each time a client's configstring changes, |
| 313 |
// usually as a result of a userinfo (name, model, etc) change |
| 314 |
#define MAX_CUSTOM_SOUNDS 32 |
| 315 |
|
| 316 |
typedef struct { |
| 317 |
qboolean infoValid; |
| 318 |
|
| 319 |
char name[MAX_QPATH]; |
| 320 |
team_t team; |
| 321 |
|
| 322 |
int botSkill; // 0 = not bot, 1-5 = bot |
| 323 |
|
| 324 |
vec3_t color1; |
| 325 |
vec3_t color2; |
| 326 |
|
| 327 |
int score; // updated by score servercmds |
| 328 |
int location; // location index for team mode |
| 329 |
int health; // you only get this info about your teammates |
| 330 |
int armor; |
| 331 |
int curWeapon; |
| 332 |
|
| 333 |
int handicap; |
| 334 |
int wins, losses; // in tourney mode |
| 335 |
|
| 336 |
int teamTask; // task in teamplay (offence/defence) |
| 337 |
qboolean teamLeader; // true when this is a team leader |
| 338 |
|
| 339 |
int powerups; // so can display quad/flag status |
| 340 |
|
| 341 |
int medkitUsageTime; |
| 342 |
int invulnerabilityStartTime; |
| 343 |
int invulnerabilityStopTime; |
| 344 |
|
| 345 |
int breathPuffTime; |
| 346 |
|
| 347 |
// when clientinfo is changed, the loading of models/skins/sounds |
| 348 |
// can be deferred until you are dead, to prevent hitches in |
| 349 |
// gameplay |
| 350 |
char modelName[MAX_QPATH]; |
| 351 |
char skinName[MAX_QPATH]; |
| 352 |
char headModelName[MAX_QPATH]; |
| 353 |
char headSkinName[MAX_QPATH]; |
| 354 |
char redTeam[MAX_TEAMNAME]; |
| 355 |
char blueTeam[MAX_TEAMNAME]; |
| 356 |
qboolean deferred; |
| 357 |
|
| 358 |
qboolean newAnims; // true if using the new mission pack animations |
| 359 |
qboolean fixedlegs; // true if legs yaw is always the same as torso yaw |
| 360 |
qboolean fixedtorso; // true if torso never changes yaw |
| 361 |
|
| 362 |
vec3_t headOffset; // move head in icon views |
| 363 |
footstep_t footsteps; |
| 364 |
gender_t gender; // from model |
| 365 |
|
| 366 |
qhandle_t legsModel; |
| 367 |
qhandle_t legsSkin; |
| 368 |
|
| 369 |
qhandle_t torsoModel; |
| 370 |
qhandle_t torsoSkin; |
| 371 |
|
| 372 |
qhandle_t headModel; |
| 373 |
qhandle_t headSkin; |
| 374 |
|
| 375 |
qhandle_t modelIcon; |
| 376 |
|
| 377 |
animation_t animations[MAX_TOTALANIMATIONS]; |
| 378 |
|
| 379 |
sfxHandle_t sounds[MAX_CUSTOM_SOUNDS]; |
| 380 |
|
| 381 |
int isDead; |
| 382 |
} clientInfo_t; |
| 383 |
|
| 384 |
|
| 385 |
// each WP_* weapon enum has an associated weaponInfo_t |
| 386 |
// that contains media references necessary to present the |
| 387 |
// weapon and its effects |
| 388 |
typedef struct weaponInfo_s { |
| 389 |
qboolean registered; |
| 390 |
gitem_t *item; |
| 391 |
|
| 392 |
qhandle_t handsModel; // the hands don't actually draw, they just position the weapon |
| 393 |
qhandle_t weaponModel; |
| 394 |
qhandle_t barrelModel; |
| 395 |
qhandle_t flashModel; |
| 396 |
|
| 397 |
vec3_t weaponMidpoint; // so it will rotate centered instead of by tag |
| 398 |
|
| 399 |
float flashDlight; |
| 400 |
vec3_t flashDlightColor; |
| 401 |
sfxHandle_t flashSound[4]; // fast firing weapons randomly choose |
| 402 |
|
| 403 |
qhandle_t weaponIcon; |
| 404 |
qhandle_t ammoIcon; |
| 405 |
|
| 406 |
qhandle_t ammoModel; |
| 407 |
|
| 408 |
qhandle_t missileModel; |
| 409 |
sfxHandle_t missileSound; |
| 410 |
void (*missileTrailFunc)( centity_t *, const struct weaponInfo_s *wi ); |
| 411 |
float missileDlight; |
| 412 |
vec3_t missileDlightColor; |
| 413 |
int missileRenderfx; |
| 414 |
|
| 415 |
void (*ejectBrassFunc)( centity_t * ); |
| 416 |
|
| 417 |
float trailRadius; |
| 418 |
float wiTrailTime; |
| 419 |
|
| 420 |
sfxHandle_t readySound; |
| 421 |
sfxHandle_t firingSound; |
| 422 |
qboolean loopFireSound; |
| 423 |
} weaponInfo_t; |
| 424 |
|
| 425 |
|
| 426 |
// each IT_* item has an associated itemInfo_t |
| 427 |
// that constains media references necessary to present the |
| 428 |
// item and its effects |
| 429 |
typedef struct { |
| 430 |
qboolean registered; |
| 431 |
qhandle_t models[MAX_ITEM_MODELS]; |
| 432 |
qhandle_t icon; |
| 433 |
} itemInfo_t; |
| 434 |
|
| 435 |
|
| 436 |
typedef struct { |
| 437 |
int itemNum; |
| 438 |
} powerupInfo_t; |
| 439 |
|
| 440 |
|
| 441 |
#define MAX_SKULLTRAIL 10 |
| 442 |
|
| 443 |
typedef struct { |
| 444 |
vec3_t positions[MAX_SKULLTRAIL]; |
| 445 |
int numpositions; |
| 446 |
} skulltrail_t; |
| 447 |
|
| 448 |
|
| 449 |
#define MAX_REWARDSTACK 10 |
| 450 |
#define MAX_SOUNDBUFFER 20 |
| 451 |
|
| 452 |
//====================================================================== |
| 453 |
|
| 454 |
// all cg.stepTime, cg.duckTime, cg.landTime, etc are set to cg.time when the action |
| 455 |
// occurs, and they will have visible effects for #define STEP_TIME or whatever msec after |
| 456 |
|
| 457 |
#define MAX_PREDICTED_EVENTS 16 |
| 458 |
|
| 459 |
//unlagged - optimized prediction |
| 460 |
#define NUM_SAVED_STATES (CMD_BACKUP + 2) |
| 461 |
//unlagged - optimized prediction |
| 462 |
|
| 463 |
typedef struct { |
| 464 |
int clientFrame; // incremented each frame |
| 465 |
|
| 466 |
int clientNum; |
| 467 |
|
| 468 |
qboolean demoPlayback; |
| 469 |
qboolean levelShot; // taking a level menu screenshot |
| 470 |
int deferredPlayerLoading; |
| 471 |
qboolean loading; // don't defer players at initial startup |
| 472 |
qboolean intermissionStarted; // don't play voice rewards, because game will end shortly |
| 473 |
|
| 474 |
// there are only one or two snapshot_t that are relevent at a time |
| 475 |
int latestSnapshotNum; // the number of snapshots the client system has received |
| 476 |
int latestSnapshotTime; // the time from latestSnapshotNum, so we don't need to read the snapshot yet |
| 477 |
|
| 478 |
snapshot_t *snap; // cg.snap->serverTime <= cg.time |
| 479 |
snapshot_t *nextSnap; // cg.nextSnap->serverTime > cg.time, or NULL |
| 480 |
snapshot_t activeSnapshots[2]; |
| 481 |
|
| 482 |
float frameInterpolation; // (float)( cg.time - cg.frame->serverTime ) / (cg.nextFrame->serverTime - cg.frame->serverTime) |
| 483 |
|
| 484 |
qboolean thisFrameTeleport; |
| 485 |
qboolean nextFrameTeleport; |
| 486 |
|
| 487 |
int frametime; // cg.time - cg.oldTime |
| 488 |
|
| 489 |
int time; // this is the time value that the client |
| 490 |
// is rendering at. |
| 491 |
int oldTime; // time at last frame, used for missile trails and prediction checking |
| 492 |
|
| 493 |
int physicsTime; // either cg.snap->time or cg.nextSnap->time |
| 494 |
|
| 495 |
int timelimitWarnings; // 5 min, 1 min, overtime |
| 496 |
int fraglimitWarnings; |
| 497 |
|
| 498 |
qboolean mapRestart; // set on a map restart to set back the weapon |
| 499 |
|
| 500 |
qboolean renderingThirdPerson; // during deaths, chasecams, etc |
| 501 |
|
| 502 |
// prediction state |
| 503 |
qboolean hyperspace; // true if prediction has hit a trigger_teleport |
| 504 |
playerState_t predictedPlayerState; |
| 505 |
centity_t predictedPlayerEntity; |
| 506 |
qboolean validPPS; // clear until the first call to CG_PredictPlayerState |
| 507 |
int predictedErrorTime; |
| 508 |
vec3_t predictedError; |
| 509 |
|
| 510 |
int eventSequence; |
| 511 |
int predictableEvents[MAX_PREDICTED_EVENTS]; |
| 512 |
|
| 513 |
float stepChange; // for stair up smoothing |
| 514 |
int stepTime; |
| 515 |
|
| 516 |
float duckChange; // for duck viewheight smoothing |
| 517 |
int duckTime; |
| 518 |
|
| 519 |
float landChange; // for landing hard |
| 520 |
int landTime; |
| 521 |
|
| 522 |
// input state sent to server |
| 523 |
int weaponSelect; |
| 524 |
|
| 525 |
// auto rotating items |
| 526 |
vec3_t autoAngles; |
| 527 |
vec3_t autoAxis[3]; |
| 528 |
vec3_t autoAnglesFast; |
| 529 |
vec3_t autoAxisFast[3]; |
| 530 |
|
| 531 |
// view rendering |
| 532 |
refdef_t refdef; |
| 533 |
vec3_t refdefViewAngles; // will be converted to refdef.viewaxis |
| 534 |
|
| 535 |
// zoom key |
| 536 |
qboolean zoomed; |
| 537 |
int zoomTime; |
| 538 |
float zoomSensitivity; |
| 539 |
|
| 540 |
// information screen text during loading |
| 541 |
char infoScreenText[MAX_STRING_CHARS]; |
| 542 |
|
| 543 |
// scoreboard |
| 544 |
int scoresRequestTime; |
| 545 |
int numScores; |
| 546 |
int selectedScore; |
| 547 |
int teamScores[2]; |
| 548 |
score_t scores[MAX_CLIENTS]; |
| 549 |
qboolean showScores; |
| 550 |
qboolean scoreBoardShowing; |
| 551 |
int scoreFadeTime; |
| 552 |
|
| 553 |
int accuracys[WP_NUM_WEAPONS][2]; |
| 554 |
int accRequestTime; |
| 555 |
qboolean showAcc; |
| 556 |
qboolean accBoardShowing; |
| 557 |
int accFadeTime; |
| 558 |
|
| 559 |
|
| 560 |
char killerName[MAX_NAME_LENGTH]; |
| 561 |
char spectatorList[MAX_STRING_CHARS]; // list of names |
| 562 |
int spectatorLen; // length of list |
| 563 |
float spectatorWidth; // width in device units |
| 564 |
int spectatorTime; // next time to offset |
| 565 |
int spectatorPaintX; // current paint x |
| 566 |
int spectatorPaintX2; // current paint x |
| 567 |
int spectatorOffset; // current offset from start |
| 568 |
int spectatorPaintLen; // current offset from start |
| 569 |
|
| 570 |
// skull trails |
| 571 |
skulltrail_t skulltrails[MAX_CLIENTS]; |
| 572 |
|
| 573 |
// centerprinting |
| 574 |
int centerPrintTime; |
| 575 |
int centerPrintCharWidth; |
| 576 |
int centerPrintY; |
| 577 |
char centerPrint[1024]; |
| 578 |
int centerPrintLines; |
| 579 |
|
| 580 |
// low ammo warning state |
| 581 |
int lowAmmoWarning; // 1 = low, 2 = empty |
| 582 |
|
| 583 |
// kill timers for carnage reward |
| 584 |
int lastKillTime; |
| 585 |
|
| 586 |
// crosshair client ID |
| 587 |
int crosshairClientNum; |
| 588 |
int crosshairClientTime; |
| 589 |
|
| 590 |
// powerup active flashing |
| 591 |
int powerupActive; |
| 592 |
int powerupTime; |
| 593 |
|
| 594 |
// attacking player |
| 595 |
int attackerTime; |
| 596 |
int voiceTime; |
| 597 |
|
| 598 |
// reward medals |
| 599 |
int rewardStack; |
| 600 |
int rewardTime; |
| 601 |
int rewardCount[MAX_REWARDSTACK]; |
| 602 |
qhandle_t rewardShader[MAX_REWARDSTACK]; |
| 603 |
qhandle_t rewardSound[MAX_REWARDSTACK]; |
| 604 |
|
| 605 |
// sound buffer mainly for announcer sounds |
| 606 |
int soundBufferIn; |
| 607 |
int soundBufferOut; |
| 608 |
int soundTime; |
| 609 |
qhandle_t soundBuffer[MAX_SOUNDBUFFER]; |
| 610 |
|
| 611 |
// for voice chat buffer |
| 612 |
int voiceChatTime; |
| 613 |
int voiceChatBufferIn; |
| 614 |
int voiceChatBufferOut; |
| 615 |
|
| 616 |
// warmup countdown |
| 617 |
int warmup; |
| 618 |
int warmupCount; |
| 619 |
|
| 620 |
//========================== |
| 621 |
|
| 622 |
int itemPickup; |
| 623 |
int itemPickupTime; |
| 624 |
int itemPickupBlendTime; // the pulse around the crosshair is timed seperately |
| 625 |
|
| 626 |
int weaponSelectTime; |
| 627 |
int weaponAnimation; |
| 628 |
int weaponAnimationTime; |
| 629 |
|
| 630 |
// blend blobs |
| 631 |
float damageTime; |
| 632 |
float damageX, damageY, damageValue; |
| 633 |
|
| 634 |
// status bar head |
| 635 |
float headYaw; |
| 636 |
float headEndPitch; |
| 637 |
float headEndYaw; |
| 638 |
int headEndTime; |
| 639 |
float headStartPitch; |
| 640 |
float headStartYaw; |
| 641 |
int headStartTime; |
| 642 |
|
| 643 |
// view movement |
| 644 |
float v_dmg_time; |
| 645 |
float v_dmg_pitch; |
| 646 |
float v_dmg_roll; |
| 647 |
|
| 648 |
vec3_t kick_angles; // weapon kicks |
| 649 |
vec3_t kick_origin; |
| 650 |
|
| 651 |
// temp working variables for player view |
| 652 |
float bobfracsin; |
| 653 |
int bobcycle; |
| 654 |
float xyspeed; |
| 655 |
int nextOrbitTime; |
| 656 |
|
| 657 |
//qboolean cameraMode; // if rendering from a loaded camera |
| 658 |
|
| 659 |
|
| 660 |
// development tool |
| 661 |
refEntity_t testModelEntity; |
| 662 |
char testModelName[MAX_QPATH]; |
| 663 |
qboolean testGun; |
| 664 |
|
| 665 |
//unlagged - optimized prediction |
| 666 |
int lastPredictedCommand; |
| 667 |
int lastServerTime; |
| 668 |
playerState_t savedPmoveStates[NUM_SAVED_STATES]; |
| 669 |
int stateHead, stateTail; |
| 670 |
//unlagged - optimized prediction |
| 671 |
|
| 672 |
//time that the client will respawn. If 0 = the player is alive. |
| 673 |
int respawnTime; |
| 674 |
|
| 675 |
int redObeliskHealth; |
| 676 |
int blueObeliskHealth; |
| 677 |
} cg_t; |
| 678 |
|
| 679 |
|
| 680 |
// all of the model, shader, and sound references that are |
| 681 |
// loaded at gamestate time are stored in cgMedia_t |
| 682 |
// Other media that can be tied to clients, weapons, or items are |
| 683 |
// stored in the clientInfo_t, itemInfo_t, weaponInfo_t, and powerupInfo_t |
| 684 |
typedef struct { |
| 685 |
qhandle_t charsetShader; |
| 686 |
qhandle_t charsetProp; |
| 687 |
qhandle_t charsetPropGlow; |
| 688 |
qhandle_t charsetPropB; |
| 689 |
qhandle_t whiteShader; |
| 690 |
|
| 691 |
qhandle_t redCubeModel; |
| 692 |
qhandle_t blueCubeModel; |
| 693 |
qhandle_t redCubeIcon; |
| 694 |
qhandle_t blueCubeIcon; |
| 695 |
qhandle_t redFlagModel; |
| 696 |
qhandle_t blueFlagModel; |
| 697 |
qhandle_t neutralFlagModel; |
| 698 |
qhandle_t redFlagShader[3]; |
| 699 |
qhandle_t blueFlagShader[3]; |
| 700 |
qhandle_t flagShader[4]; |
| 701 |
|
| 702 |
//For Double Domination: |
| 703 |
//qhandle_t ddPointA; |
| 704 |
//qhandle_t ddPointB; |
| 705 |
qhandle_t ddPointSkinA[4]; //white,red,blue,none |
| 706 |
qhandle_t ddPointSkinB[4]; //white,red,blue,none |
| 707 |
|
| 708 |
qhandle_t flagPoleModel; |
| 709 |
qhandle_t flagFlapModel; |
| 710 |
|
| 711 |
qhandle_t redFlagFlapSkin; |
| 712 |
qhandle_t blueFlagFlapSkin; |
| 713 |
qhandle_t neutralFlagFlapSkin; |
| 714 |
|
| 715 |
qhandle_t redFlagBaseModel; |
| 716 |
qhandle_t blueFlagBaseModel; |
| 717 |
qhandle_t neutralFlagBaseModel; |
| 718 |
|
| 719 |
qhandle_t overloadBaseModel; |
| 720 |
qhandle_t overloadTargetModel; |
| 721 |
qhandle_t overloadLightsModel; |
| 722 |
qhandle_t overloadEnergyModel; |
| 723 |
|
| 724 |
qhandle_t harvesterModel; |
| 725 |
qhandle_t harvesterRedSkin; |
| 726 |
qhandle_t harvesterBlueSkin; |
| 727 |
qhandle_t harvesterNeutralModel; |
| 728 |
|
| 729 |
qhandle_t armorModel; |
| 730 |
qhandle_t armorIcon; |
| 731 |
|
| 732 |
qhandle_t teamStatusBar; |
| 733 |
|
| 734 |
qhandle_t deferShader; |
| 735 |
|
| 736 |
// gib explosions |
| 737 |
qhandle_t gibAbdomen; |
| 738 |
qhandle_t gibArm; |
| 739 |
qhandle_t gibChest; |
| 740 |
qhandle_t gibFist; |
| 741 |
qhandle_t gibFoot; |
| 742 |
qhandle_t gibForearm; |
| 743 |
qhandle_t gibIntestine; |
| 744 |
qhandle_t gibLeg; |
| 745 |
qhandle_t gibSkull; |
| 746 |
qhandle_t gibBrain; |
| 747 |
|
| 748 |
qhandle_t smoke2; |
| 749 |
|
| 750 |
qhandle_t machinegunBrassModel; |
| 751 |
qhandle_t shotgunBrassModel; |
| 752 |
|
| 753 |
qhandle_t railRingsShader; |
| 754 |
qhandle_t railCoreShader; |
| 755 |
|
| 756 |
qhandle_t lightningShader; |
| 757 |
|
| 758 |
qhandle_t friendShader; |
| 759 |
|
| 760 |
qhandle_t balloonShader; |
| 761 |
qhandle_t connectionShader; |
| 762 |
|
| 763 |
qhandle_t selectShader; |
| 764 |
qhandle_t viewBloodShader; |
| 765 |
qhandle_t tracerShader; |
| 766 |
qhandle_t crosshairShader[NUM_CROSSHAIRS]; |
| 767 |
qhandle_t lagometerShader; |
| 768 |
qhandle_t backTileShader; |
| 769 |
qhandle_t noammoShader; |
| 770 |
|
| 771 |
qhandle_t smokePuffShader; |
| 772 |
qhandle_t smokePuffRageProShader; |
| 773 |
qhandle_t shotgunSmokePuffShader; |
| 774 |
qhandle_t plasmaBallShader; |
| 775 |
qhandle_t waterBubbleShader; |
| 776 |
qhandle_t bloodTrailShader; |
| 777 |
|
| 778 |
|
| 779 |
|
| 780 |
// LEILEI shaders |
| 781 |
|
| 782 |
qhandle_t lsmkShader1; |
| 783 |
qhandle_t lsmkShader2; |
| 784 |
qhandle_t lsmkShader3; |
| 785 |
qhandle_t lsmkShader4; |
| 786 |
qhandle_t lbumShader1; |
| 787 |
qhandle_t lfblShader1; |
| 788 |
qhandle_t lsplShader; |
| 789 |
qhandle_t lspkShader1; |
| 790 |
qhandle_t lspkShader2; |
| 791 |
qhandle_t lbldShader1; |
| 792 |
qhandle_t lbldShader2; |
| 793 |
qhandle_t grappleShader; // leilei - grapple hook |
| 794 |
qhandle_t lmarkmetal1; |
| 795 |
qhandle_t lmarkmetal2; |
| 796 |
qhandle_t lmarkmetal3; |
| 797 |
qhandle_t lmarkmetal4; |
| 798 |
qhandle_t lmarkbullet1; |
| 799 |
qhandle_t lmarkbullet2; |
| 800 |
qhandle_t lmarkbullet3; |
| 801 |
qhandle_t lmarkbullet4; |
| 802 |
|
| 803 |
//#ifdef MISSIONPACK |
| 804 |
qhandle_t nailPuffShader; |
| 805 |
qhandle_t blueProxMine; |
| 806 |
//#endif |
| 807 |
|
| 808 |
qhandle_t numberShaders[11]; |
| 809 |
|
| 810 |
qhandle_t shadowMarkShader; |
| 811 |
|
| 812 |
qhandle_t botSkillShaders[5]; |
| 813 |
|
| 814 |
// wall mark shaders |
| 815 |
qhandle_t wakeMarkShader; |
| 816 |
qhandle_t bloodMarkShader; |
| 817 |
qhandle_t bulletMarkShader; |
| 818 |
qhandle_t burnMarkShader; |
| 819 |
qhandle_t holeMarkShader; |
| 820 |
qhandle_t energyMarkShader; |
| 821 |
|
| 822 |
// powerup shaders |
| 823 |
qhandle_t quadShader; |
| 824 |
qhandle_t redQuadShader; |
| 825 |
qhandle_t quadWeaponShader; |
| 826 |
qhandle_t invisShader; |
| 827 |
qhandle_t regenShader; |
| 828 |
qhandle_t battleSuitShader; |
| 829 |
qhandle_t battleWeaponShader; |
| 830 |
qhandle_t hastePuffShader; |
| 831 |
qhandle_t redKamikazeShader; |
| 832 |
qhandle_t blueKamikazeShader; |
| 833 |
|
| 834 |
// player overlays |
| 835 |
qhandle_t neutralOverlay; |
| 836 |
qhandle_t redOverlay; |
| 837 |
qhandle_t blueOverlay; |
| 838 |
|
| 839 |
// weapon effect models |
| 840 |
qhandle_t bulletFlashModel; |
| 841 |
qhandle_t ringFlashModel; |
| 842 |
qhandle_t dishFlashModel; |
| 843 |
qhandle_t lightningExplosionModel; |
| 844 |
|
| 845 |
// weapon effect shaders |
| 846 |
qhandle_t railExplosionShader; |
| 847 |
qhandle_t plasmaExplosionShader; |
| 848 |
qhandle_t bulletExplosionShader; |
| 849 |
qhandle_t rocketExplosionShader; |
| 850 |
qhandle_t grenadeExplosionShader; |
| 851 |
qhandle_t bfgExplosionShader; |
| 852 |
qhandle_t bloodExplosionShader; |
| 853 |
|
| 854 |
// special effects models |
| 855 |
qhandle_t teleportEffectModel; |
| 856 |
qhandle_t teleportEffectShader; |
| 857 |
//#ifdef MISSIONPACK |
| 858 |
qhandle_t kamikazeEffectModel; |
| 859 |
qhandle_t kamikazeShockWave; |
| 860 |
qhandle_t kamikazeHeadModel; |
| 861 |
qhandle_t kamikazeHeadTrail; |
| 862 |
qhandle_t guardPowerupModel; |
| 863 |
qhandle_t scoutPowerupModel; |
| 864 |
qhandle_t doublerPowerupModel; |
| 865 |
qhandle_t ammoRegenPowerupModel; |
| 866 |
qhandle_t invulnerabilityImpactModel; |
| 867 |
qhandle_t invulnerabilityJuicedModel; |
| 868 |
qhandle_t medkitUsageModel; |
| 869 |
qhandle_t dustPuffShader; |
| 870 |
qhandle_t heartShader; |
| 871 |
//#endif |
| 872 |
qhandle_t invulnerabilityPowerupModel; |
| 873 |
|
| 874 |
// scoreboard headers |
| 875 |
qhandle_t scoreboardName; |
| 876 |
qhandle_t scoreboardPing; |
| 877 |
qhandle_t scoreboardScore; |
| 878 |
qhandle_t scoreboardTime; |
| 879 |
|
| 880 |
// medals shown during gameplay |
| 881 |
qhandle_t medalImpressive; |
| 882 |
qhandle_t medalExcellent; |
| 883 |
qhandle_t medalGauntlet; |
| 884 |
qhandle_t medalDefend; |
| 885 |
qhandle_t medalAssist; |
| 886 |
qhandle_t medalCapture; |
| 887 |
|
| 888 |
// sounds |
| 889 |
sfxHandle_t quadSound; |
| 890 |
sfxHandle_t tracerSound; |
| 891 |
sfxHandle_t selectSound; |
| 892 |
sfxHandle_t useNothingSound; |
| 893 |
sfxHandle_t wearOffSound; |
| 894 |
sfxHandle_t footsteps[FOOTSTEP_TOTAL][4]; |
| 895 |
sfxHandle_t sfx_lghit1; |
| 896 |
sfxHandle_t sfx_lghit2; |
| 897 |
sfxHandle_t sfx_lghit3; |
| 898 |
sfxHandle_t sfx_ric1; |
| 899 |
sfxHandle_t sfx_ric2; |
| 900 |
sfxHandle_t sfx_ric3; |
| 901 |
sfxHandle_t sfx_railg; |
| 902 |
sfxHandle_t sfx_rockexp; |
| 903 |
sfxHandle_t sfx_plasmaexp; |
| 904 |
//#ifdef MISSIONPACK |
| 905 |
sfxHandle_t sfx_proxexp; |
| 906 |
sfxHandle_t sfx_nghit; |
| 907 |
sfxHandle_t sfx_nghitflesh; |
| 908 |
sfxHandle_t sfx_nghitmetal; |
| 909 |
sfxHandle_t sfx_chghit; |
| 910 |
sfxHandle_t sfx_chghitflesh; |
| 911 |
sfxHandle_t sfx_chghitmetal; |
| 912 |
sfxHandle_t kamikazeExplodeSound; |
| 913 |
sfxHandle_t kamikazeImplodeSound; |
| 914 |
sfxHandle_t kamikazeFarSound; |
| 915 |
sfxHandle_t useInvulnerabilitySound; |
| 916 |
sfxHandle_t invulnerabilityImpactSound1; |
| 917 |
sfxHandle_t invulnerabilityImpactSound2; |
| 918 |
sfxHandle_t invulnerabilityImpactSound3; |
| 919 |
sfxHandle_t invulnerabilityJuicedSound; |
| 920 |
sfxHandle_t obeliskHitSound1; |
| 921 |
sfxHandle_t obeliskHitSound2; |
| 922 |
sfxHandle_t obeliskHitSound3; |
| 923 |
sfxHandle_t obeliskRespawnSound; |
| 924 |
sfxHandle_t winnerSound; |
| 925 |
sfxHandle_t loserSound; |
| 926 |
sfxHandle_t youSuckSound; |
| 927 |
//#endif |
| 928 |
sfxHandle_t gibSound; |
| 929 |
sfxHandle_t gibBounce1Sound; |
| 930 |
sfxHandle_t gibBounce2Sound; |
| 931 |
sfxHandle_t gibBounce3Sound; |
| 932 |
sfxHandle_t teleInSound; |
| 933 |
sfxHandle_t teleOutSound; |
| 934 |
sfxHandle_t noAmmoSound; |
| 935 |
sfxHandle_t respawnSound; |
| 936 |
sfxHandle_t talkSound; |
| 937 |
sfxHandle_t landSound; |
| 938 |
sfxHandle_t fallSound; |
| 939 |
sfxHandle_t jumpPadSound; |
| 940 |
|
| 941 |
// LEILEI |
| 942 |
sfxHandle_t lspl1Sound; |
| 943 |
sfxHandle_t lspl2Sound; // Blood Splat Noises |
| 944 |
sfxHandle_t lspl3Sound; |
| 945 |
|
| 946 |
sfxHandle_t lbul1Sound; |
| 947 |
sfxHandle_t lbul2Sound; // Bullet Drop Noises |
| 948 |
sfxHandle_t lbul3Sound; |
| 949 |
|
| 950 |
sfxHandle_t lshl1Sound; |
| 951 |
sfxHandle_t lshl2Sound; // Shell Drop Noises |
| 952 |
sfxHandle_t lshl3Sound; |
| 953 |
|
| 954 |
// LEILEI END |
| 955 |
|
| 956 |
sfxHandle_t oneMinuteSound; |
| 957 |
sfxHandle_t fiveMinuteSound; |
| 958 |
sfxHandle_t suddenDeathSound; |
| 959 |
|
| 960 |
sfxHandle_t threeFragSound; |
| 961 |
sfxHandle_t twoFragSound; |
| 962 |
sfxHandle_t oneFragSound; |
| 963 |
|
| 964 |
sfxHandle_t hitSound; |
| 965 |
sfxHandle_t hitSoundHighArmor; |
| 966 |
sfxHandle_t hitSoundLowArmor; |
| 967 |
sfxHandle_t hitTeamSound; |
| 968 |
sfxHandle_t impressiveSound; |
| 969 |
sfxHandle_t excellentSound; |
| 970 |
sfxHandle_t deniedSound; |
| 971 |
sfxHandle_t humiliationSound; |
| 972 |
sfxHandle_t assistSound; |
| 973 |
sfxHandle_t defendSound; |
| 974 |
sfxHandle_t firstImpressiveSound; |
| 975 |
sfxHandle_t firstExcellentSound; |
| 976 |
sfxHandle_t firstHumiliationSound; |
| 977 |
|
| 978 |
sfxHandle_t takenLeadSound; |
| 979 |
sfxHandle_t tiedLeadSound; |
| 980 |
sfxHandle_t lostLeadSound; |
| 981 |
|
| 982 |
sfxHandle_t voteNow; |
| 983 |
sfxHandle_t votePassed; |
| 984 |
sfxHandle_t voteFailed; |
| 985 |
|
| 986 |
sfxHandle_t watrInSound; |
| 987 |
sfxHandle_t watrOutSound; |
| 988 |
sfxHandle_t watrUnSound; |
| 989 |
|
| 990 |
sfxHandle_t flightSound; |
| 991 |
sfxHandle_t medkitSound; |
| 992 |
|
| 993 |
sfxHandle_t weaponHoverSound; |
| 994 |
|
| 995 |
// teamplay sounds |
| 996 |
sfxHandle_t captureAwardSound; |
| 997 |
sfxHandle_t redScoredSound; |
| 998 |
sfxHandle_t blueScoredSound; |
| 999 |
sfxHandle_t redLeadsSound; |
| 1000 |
sfxHandle_t blueLeadsSound; |
| 1001 |
sfxHandle_t teamsTiedSound; |
| 1002 |
|
| 1003 |
sfxHandle_t captureYourTeamSound; |
| 1004 |
sfxHandle_t captureOpponentSound; |
| 1005 |
sfxHandle_t returnYourTeamSound; |
| 1006 |
sfxHandle_t returnOpponentSound; |
| 1007 |
sfxHandle_t takenYourTeamSound; |
| 1008 |
sfxHandle_t takenOpponentSound; |
| 1009 |
|
| 1010 |
sfxHandle_t redFlagReturnedSound; |
| 1011 |
sfxHandle_t blueFlagReturnedSound; |
| 1012 |
sfxHandle_t neutralFlagReturnedSound; |
| 1013 |
sfxHandle_t enemyTookYourFlagSound; |
| 1014 |
sfxHandle_t enemyTookTheFlagSound; |
| 1015 |
sfxHandle_t yourTeamTookEnemyFlagSound; |
| 1016 |
sfxHandle_t yourTeamTookTheFlagSound; |
| 1017 |
sfxHandle_t youHaveFlagSound; |
| 1018 |
sfxHandle_t yourBaseIsUnderAttackSound; |
| 1019 |
sfxHandle_t holyShitSound; |
| 1020 |
|
| 1021 |
// tournament sounds |
| 1022 |
sfxHandle_t count3Sound; |
| 1023 |
sfxHandle_t count2Sound; |
| 1024 |
sfxHandle_t count1Sound; |
| 1025 |
sfxHandle_t countFightSound; |
| 1026 |
sfxHandle_t countPrepareSound; |
| 1027 |
|
| 1028 |
#ifdef MISSIONPACK |
| 1029 |
// new stuff |
| 1030 |
qhandle_t patrolShader; |
| 1031 |
qhandle_t assaultShader; |
| 1032 |
qhandle_t campShader; |
| 1033 |
qhandle_t followShader; |
| 1034 |
qhandle_t defendShader; |
| 1035 |
qhandle_t teamLeaderShader; |
| 1036 |
qhandle_t retrieveShader; |
| 1037 |
qhandle_t escortShader; |
| 1038 |
qhandle_t deathShader; |
| 1039 |
qhandle_t flagShaders[3]; |
| 1040 |
sfxHandle_t countPrepareTeamSound; |
| 1041 |
#endif |
| 1042 |
|
| 1043 |
sfxHandle_t ammoregenSound; |
| 1044 |
sfxHandle_t doublerSound; |
| 1045 |
sfxHandle_t guardSound; |
| 1046 |
sfxHandle_t scoutSound; |
| 1047 |
|
| 1048 |
qhandle_t cursor; |
| 1049 |
qhandle_t selectCursor; |
| 1050 |
qhandle_t sizeCursor; |
| 1051 |
|
| 1052 |
sfxHandle_t regenSound; |
| 1053 |
sfxHandle_t protectSound; |
| 1054 |
sfxHandle_t n_healthSound; |
| 1055 |
sfxHandle_t hgrenb1aSound; |
| 1056 |
sfxHandle_t hgrenb2aSound; |
| 1057 |
sfxHandle_t wstbimplSound; |
| 1058 |
sfxHandle_t wstbimpmSound; |
| 1059 |
sfxHandle_t wstbimpdSound; |
| 1060 |
sfxHandle_t wstbactvSound; |
| 1061 |
|
| 1062 |
} cgMedia_t; |
| 1063 |
|
| 1064 |
|
| 1065 |
// The client game static (cgs) structure hold everything |
| 1066 |
// loaded or calculated from the gamestate. It will NOT |
| 1067 |
// be cleared when a tournement restart is done, allowing |
| 1068 |
// all clients to begin playing instantly |
| 1069 |
typedef struct { |
| 1070 |
gameState_t gameState; // gamestate from server |
| 1071 |
glconfig_t glconfig; // rendering configuration |
| 1072 |
float screenXScale; // derived from glconfig |
| 1073 |
float screenYScale; |
| 1074 |
float screenXBias; |
| 1075 |
|
| 1076 |
int serverCommandSequence; // reliable command stream counter |
| 1077 |
int processedSnapshotNum;// the number of snapshots cgame has requested |
| 1078 |
|
| 1079 |
qboolean localServer; // detected on startup by checking sv_running |
| 1080 |
|
| 1081 |
// parsed from serverinfo |
| 1082 |
gametype_t gametype; |
| 1083 |
int dmflags; |
| 1084 |
int videoflags; |
| 1085 |
int elimflags; |
| 1086 |
int teamflags; |
| 1087 |
int fraglimit; |
| 1088 |
int capturelimit; |
| 1089 |
int timelimit; |
| 1090 |
int maxclients; |
| 1091 |
char mapname[MAX_QPATH]; |
| 1092 |
char redTeam[MAX_QPATH]; |
| 1093 |
char blueTeam[MAX_QPATH]; |
| 1094 |
|
| 1095 |
int voteTime; |
| 1096 |
int voteYes; |
| 1097 |
int voteNo; |
| 1098 |
qboolean voteModified; // beep whenever changed |
| 1099 |
char voteString[MAX_STRING_TOKENS]; |
| 1100 |
|
| 1101 |
int teamVoteTime[2]; |
| 1102 |
int teamVoteYes[2]; |
| 1103 |
int teamVoteNo[2]; |
| 1104 |
qboolean teamVoteModified[2]; // beep whenever changed |
| 1105 |
char teamVoteString[2][MAX_STRING_TOKENS]; |
| 1106 |
|
| 1107 |
int levelStartTime; |
| 1108 |
|
| 1109 |
//Forced FFA |
| 1110 |
int ffa_gt; |
| 1111 |
|
| 1112 |
//Elimination |
| 1113 |
int roundStartTime; |
| 1114 |
int roundtime; |
| 1115 |
|
| 1116 |
//CTF Elimination |
| 1117 |
int attackingTeam; |
| 1118 |
|
| 1119 |
//Last Man Standing |
| 1120 |
int lms_mode; |
| 1121 |
|
| 1122 |
//instantgib + nexuiz style rocket arena: |
| 1123 |
int nopickup; |
| 1124 |
|
| 1125 |
//Double Domination DD |
| 1126 |
int timetaken; |
| 1127 |
|
| 1128 |
//Domination |
| 1129 |
int domination_points_count; |
| 1130 |
char domination_points_names[MAX_DOMINATION_POINTS][MAX_DOMINATION_POINTS_NAMES]; |
| 1131 |
int domination_points_status[MAX_DOMINATION_POINTS]; |
| 1132 |
|
| 1133 |
|
| 1134 |
int scores1, scores2; // from configstrings |
| 1135 |
int redflag, blueflag; // flag status from configstrings |
| 1136 |
int flagStatus; |
| 1137 |
|
| 1138 |
qboolean newHud; |
| 1139 |
|
| 1140 |
// |
| 1141 |
// locally derived information from gamestate |
| 1142 |
// |
| 1143 |
qhandle_t gameModels[MAX_MODELS]; |
| 1144 |
sfxHandle_t gameSounds[MAX_SOUNDS]; |
| 1145 |
|
| 1146 |
int numInlineModels; |
| 1147 |
qhandle_t inlineDrawModel[MAX_MODELS]; |
| 1148 |
vec3_t inlineModelMidpoints[MAX_MODELS]; |
| 1149 |
|
| 1150 |
clientInfo_t clientinfo[MAX_CLIENTS]; |
| 1151 |
|
| 1152 |
// teamchat width is *3 because of embedded color codes |
| 1153 |
char teamChatMsgs[TEAMCHAT_HEIGHT][TEAMCHAT_WIDTH*3+1]; |
| 1154 |
int teamChatMsgTimes[TEAMCHAT_HEIGHT]; |
| 1155 |
int teamChatPos; |
| 1156 |
int teamLastChatPos; |
| 1157 |
|
| 1158 |
int cursorX; |
| 1159 |
int cursorY; |
| 1160 |
qboolean eventHandling; |
| 1161 |
qboolean mouseCaptured; |
| 1162 |
qboolean sizingHud; |
| 1163 |
void *capturedItem; |
| 1164 |
qhandle_t activeCursor; |
| 1165 |
|
| 1166 |
// orders |
| 1167 |
int currentOrder; |
| 1168 |
qboolean orderPending; |
| 1169 |
int orderTime; |
| 1170 |
int currentVoiceClient; |
| 1171 |
int acceptOrderTime; |
| 1172 |
int acceptTask; |
| 1173 |
int acceptLeader; |
| 1174 |
char acceptVoice[MAX_NAME_LENGTH]; |
| 1175 |
|
| 1176 |
// media |
| 1177 |
cgMedia_t media; |
| 1178 |
|
| 1179 |
//unlagged - client options |
| 1180 |
// this will be set to the server's g_delagHitscan |
| 1181 |
int delagHitscan; |
| 1182 |
//unlagged - client options |
| 1183 |
//KK-OAX For storing whether or not the server has multikills enabled. |
| 1184 |
int altExcellent; |
| 1185 |
} cgs_t; |
| 1186 |
|
| 1187 |
//============================================================================== |
| 1188 |
|
| 1189 |
extern cgs_t cgs; |
| 1190 |
extern cg_t cg; |
| 1191 |
extern centity_t cg_entities[MAX_GENTITIES]; |
| 1192 |
extern weaponInfo_t cg_weapons[MAX_WEAPONS]; |
| 1193 |
extern itemInfo_t cg_items[MAX_ITEMS]; |
| 1194 |
extern markPoly_t cg_markPolys[MAX_MARK_POLYS]; |
| 1195 |
|
| 1196 |
extern vmCvar_t cg_centertime; |
| 1197 |
extern vmCvar_t cg_runpitch; |
| 1198 |
extern vmCvar_t cg_runroll; |
| 1199 |
extern vmCvar_t cg_bobup; |
| 1200 |
extern vmCvar_t cg_bobpitch; |
| 1201 |
extern vmCvar_t cg_bobroll; |
| 1202 |
extern vmCvar_t cg_swingSpeed; |
| 1203 |
extern vmCvar_t cg_shadows; |
| 1204 |
extern vmCvar_t cg_gibs; |
| 1205 |
extern vmCvar_t cg_drawTimer; |
| 1206 |
extern vmCvar_t cg_drawFPS; |
| 1207 |
extern vmCvar_t cg_drawSnapshot; |
| 1208 |
extern vmCvar_t cg_draw3dIcons; |
| 1209 |
extern vmCvar_t cg_drawIcons; |
| 1210 |
extern vmCvar_t cg_drawAmmoWarning; |
| 1211 |
extern vmCvar_t cg_drawCrosshair; |
| 1212 |
extern vmCvar_t cg_drawCrosshairNames; |
| 1213 |
extern vmCvar_t cg_drawRewards; |
| 1214 |
extern vmCvar_t cg_drawTeamOverlay; |
| 1215 |
extern vmCvar_t cg_teamOverlayUserinfo; |
| 1216 |
extern vmCvar_t cg_crosshairX; |
| 1217 |
extern vmCvar_t cg_crosshairY; |
| 1218 |
extern vmCvar_t cg_crosshairSize; |
| 1219 |
extern vmCvar_t cg_crosshairHealth; |
| 1220 |
extern vmCvar_t cg_drawStatus; |
| 1221 |
extern vmCvar_t cg_draw2D; |
| 1222 |
extern vmCvar_t cg_animSpeed; |
| 1223 |
extern vmCvar_t cg_debugAnim; |
| 1224 |
extern vmCvar_t cg_debugPosition; |
| 1225 |
extern vmCvar_t cg_debugEvents; |
| 1226 |
extern vmCvar_t cg_railTrailTime; |
| 1227 |
extern vmCvar_t cg_errorDecay; |
| 1228 |
extern vmCvar_t cg_nopredict; |
| 1229 |
extern vmCvar_t cg_noPlayerAnims; |
| 1230 |
extern vmCvar_t cg_showmiss; |
| 1231 |
extern vmCvar_t cg_footsteps; |
| 1232 |
extern vmCvar_t cg_addMarks; |
| 1233 |
extern vmCvar_t cg_brassTime; |
| 1234 |
extern vmCvar_t cg_gun_frame; |
| 1235 |
extern vmCvar_t cg_gun_x; |
| 1236 |
extern vmCvar_t cg_gun_y; |
| 1237 |
extern vmCvar_t cg_gun_z; |
| 1238 |
extern vmCvar_t cg_drawGun; |
| 1239 |
extern vmCvar_t cg_viewsize; |
| 1240 |
extern vmCvar_t cg_tracerChance; |
| 1241 |
extern vmCvar_t cg_tracerWidth; |
| 1242 |
extern vmCvar_t cg_tracerLength; |
| 1243 |
extern vmCvar_t cg_autoswitch; |
| 1244 |
extern vmCvar_t cg_ignore; |
| 1245 |
extern vmCvar_t cg_simpleItems; |
| 1246 |
extern vmCvar_t cg_fov; |
| 1247 |
extern vmCvar_t cg_zoomFov; |
| 1248 |
extern vmCvar_t cg_thirdPersonRange; |
| 1249 |
extern vmCvar_t cg_thirdPersonAngle; |
| 1250 |
extern vmCvar_t cg_thirdPerson; |
| 1251 |
extern vmCvar_t cg_lagometer; |
| 1252 |
extern vmCvar_t cg_drawAttacker; |
| 1253 |
extern vmCvar_t cg_drawSpeed; |
| 1254 |
extern vmCvar_t cg_synchronousClients; |
| 1255 |
extern vmCvar_t cg_teamChatTime; |
| 1256 |
extern vmCvar_t cg_teamChatHeight; |
| 1257 |
extern vmCvar_t cg_stats; |
| 1258 |
extern vmCvar_t cg_forceModel; |
| 1259 |
extern vmCvar_t cg_buildScript; |
| 1260 |
extern vmCvar_t cg_paused; |
| 1261 |
extern vmCvar_t cg_blood; |
| 1262 |
extern vmCvar_t cg_predictItems; |
| 1263 |
extern vmCvar_t cg_deferPlayers; |
| 1264 |
extern vmCvar_t cg_drawFriend; |
| 1265 |
extern vmCvar_t cg_teamChatsOnly; |
| 1266 |
extern vmCvar_t cg_noVoiceChats; |
| 1267 |
extern vmCvar_t cg_noVoiceText; |
| 1268 |
extern vmCvar_t cg_scorePlum; |
| 1269 |
//unlagged - smooth clients #2 |
| 1270 |
// this is done server-side now |
| 1271 |
//extern vmCvar_t cg_smoothClients; |
| 1272 |
//unlagged - smooth clients #2 |
| 1273 |
extern vmCvar_t pmove_fixed; |
| 1274 |
extern vmCvar_t pmove_msec; |
| 1275 |
extern vmCvar_t pmove_float; |
| 1276 |
//extern vmCvar_t cg_pmove_fixed; |
| 1277 |
extern vmCvar_t cg_cameraOrbit; |
| 1278 |
extern vmCvar_t cg_cameraOrbitDelay; |
| 1279 |
extern vmCvar_t cg_timescaleFadeEnd; |
| 1280 |
extern vmCvar_t cg_timescaleFadeSpeed; |
| 1281 |
extern vmCvar_t cg_timescale; |
| 1282 |
extern vmCvar_t cg_cameraMode; |
| 1283 |
extern vmCvar_t cg_smallFont; |
| 1284 |
extern vmCvar_t cg_bigFont; |
| 1285 |
extern vmCvar_t cg_noTaunt; |
| 1286 |
extern vmCvar_t cg_noProjectileTrail; |
| 1287 |
extern vmCvar_t cg_oldRail; |
| 1288 |
extern vmCvar_t cg_oldRocket; |
| 1289 |
|
| 1290 |
extern vmCvar_t cg_leiEnhancement; // LEILEI'S LINE! |
| 1291 |
extern vmCvar_t cg_leiGoreNoise; // LEILEI'S LINE! |
| 1292 |
extern vmCvar_t cg_leiBrassNoise; // LEILEI'S LINE! |
| 1293 |
extern vmCvar_t cg_leiSuperGoreyAwesome; // LEILEI'S LINE! |
| 1294 |
extern vmCvar_t cg_oldPlasma; |
| 1295 |
extern vmCvar_t cg_trueLightning; |
| 1296 |
extern vmCvar_t cg_music; |
| 1297 |
#ifdef MISSIONPACK |
| 1298 |
extern vmCvar_t cg_redTeamName; |
| 1299 |
extern vmCvar_t cg_blueTeamName; |
| 1300 |
extern vmCvar_t cg_currentSelectedPlayer; |
| 1301 |
extern vmCvar_t cg_currentSelectedPlayerName; |
| 1302 |
extern vmCvar_t cg_singlePlayer; |
| 1303 |
extern vmCvar_t cg_singlePlayerActive; |
| 1304 |
extern vmCvar_t cg_recordSPDemo; |
| 1305 |
extern vmCvar_t cg_recordSPDemoName; |
| 1306 |
#endif |
| 1307 |
//Sago: Moved outside |
| 1308 |
extern vmCvar_t cg_obeliskRespawnDelay; |
| 1309 |
extern vmCvar_t cg_enableDust; |
| 1310 |
extern vmCvar_t cg_enableBreath; |
| 1311 |
|
| 1312 |
//unlagged - client options |
| 1313 |
extern vmCvar_t cg_delag; |
| 1314 |
//extern vmCvar_t cg_debugDelag; |
| 1315 |
//extern vmCvar_t cg_drawBBox; |
| 1316 |
extern vmCvar_t cg_cmdTimeNudge; |
| 1317 |
extern vmCvar_t sv_fps; |
| 1318 |
extern vmCvar_t cg_projectileNudge; |
| 1319 |
extern vmCvar_t cg_optimizePrediction; |
| 1320 |
extern vmCvar_t cl_timeNudge; |
| 1321 |
//extern vmCvar_t cg_latentSnaps; |
| 1322 |
//extern vmCvar_t cg_latentCmds; |
| 1323 |
//extern vmCvar_t cg_plOut; |
| 1324 |
//unlagged - client options |
| 1325 |
|
| 1326 |
//extra CVARS elimination |
| 1327 |
extern vmCvar_t cg_alwaysWeaponBar; |
| 1328 |
extern vmCvar_t cg_hitsound; |
| 1329 |
extern vmCvar_t cg_voip_teamonly; |
| 1330 |
extern vmCvar_t cg_voteflags; |
| 1331 |
extern vmCvar_t cg_cyclegrapple; |
| 1332 |
extern vmCvar_t cg_vote_custom_commands; |
| 1333 |
|
| 1334 |
extern vmCvar_t cg_autovertex; |
| 1335 |
|
| 1336 |
//Cvar to adjust the size of the fragmessage |
| 1337 |
extern vmCvar_t cg_fragmsgsize; |
| 1338 |
|
| 1339 |
extern vmCvar_t cg_crosshairPulse; |
| 1340 |
extern vmCvar_t cg_differentCrosshairs; |
| 1341 |
extern vmCvar_t cg_ch1; |
| 1342 |
extern vmCvar_t cg_ch1size; |
| 1343 |
extern vmCvar_t cg_ch2; |
| 1344 |
extern vmCvar_t cg_ch2size; |
| 1345 |
extern vmCvar_t cg_ch3; |
| 1346 |
extern vmCvar_t cg_ch3size; |
| 1347 |
extern vmCvar_t cg_ch4; |
| 1348 |
extern vmCvar_t cg_ch4size; |
| 1349 |
extern vmCvar_t cg_ch5; |
| 1350 |
extern vmCvar_t cg_ch5size; |
| 1351 |
extern vmCvar_t cg_ch6; |
| 1352 |
extern vmCvar_t cg_ch6size; |
| 1353 |
extern vmCvar_t cg_ch7; |
| 1354 |
extern vmCvar_t cg_ch7size; |
| 1355 |
extern vmCvar_t cg_ch8; |
| 1356 |
extern vmCvar_t cg_ch8size; |
| 1357 |
extern vmCvar_t cg_ch9; |
| 1358 |
extern vmCvar_t cg_ch9size; |
| 1359 |
extern vmCvar_t cg_ch10; |
| 1360 |
extern vmCvar_t cg_ch10size; |
| 1361 |
extern vmCvar_t cg_ch11; |
| 1362 |
extern vmCvar_t cg_ch11size; |
| 1363 |
extern vmCvar_t cg_ch12; |
| 1364 |
extern vmCvar_t cg_ch12size; |
| 1365 |
extern vmCvar_t cg_ch13; |
| 1366 |
extern vmCvar_t cg_ch13size; |
| 1367 |
|
| 1368 |
extern vmCvar_t cg_crosshairColorRed; |
| 1369 |
extern vmCvar_t cg_crosshairColorGreen; |
| 1370 |
extern vmCvar_t cg_crosshairColorBlue; |
| 1371 |
|
| 1372 |
extern vmCvar_t cg_weaponBarStyle; |
| 1373 |
|
| 1374 |
extern vmCvar_t cg_weaponOrder; |
| 1375 |
extern vmCvar_t cg_chatBeep; |
| 1376 |
extern vmCvar_t cg_teamChatBeep; |
| 1377 |
|
| 1378 |
//unlagged - cg_unlagged.c |
| 1379 |
void CG_PredictWeaponEffects( centity_t *cent ); |
| 1380 |
//void CG_AddBoundingBox( centity_t *cent ); |
| 1381 |
qboolean CG_Cvar_ClampInt( const char *name, vmCvar_t *vmCvar, int min, int max ); |
| 1382 |
//unlagged - cg_unlagged.c |
| 1383 |
|
| 1384 |
// |
| 1385 |
// cg_main.c |
| 1386 |
// |
| 1387 |
const char *CG_ConfigString( int index ); |
| 1388 |
const char *CG_Argv( int arg ); |
| 1389 |
|
| 1390 |
void QDECL CG_Printf( const char *msg, ... ); |
| 1391 |
void QDECL CG_Error( const char *msg, ... ) __attribute__((noreturn)); |
| 1392 |
|
| 1393 |
void CG_StartMusic( void ); |
| 1394 |
|
| 1395 |
void CG_UpdateCvars( void ); |
| 1396 |
|
| 1397 |
int CG_CrosshairPlayer( void ); |
| 1398 |
int CG_LastAttacker( void ); |
| 1399 |
void CG_LoadMenus(const char *menuFile); |
| 1400 |
void CG_KeyEvent(int key, qboolean down); |
| 1401 |
void CG_MouseEvent(int x, int y); |
| 1402 |
void CG_EventHandling(int type); |
| 1403 |
void CG_RankRunFrame( void ); |
| 1404 |
void CG_SetScoreSelection(void *menu); |
| 1405 |
//score_t *CG_GetSelectedScore( void ); |
| 1406 |
void CG_BuildSpectatorString( void ); |
| 1407 |
|
| 1408 |
//unlagged, sagos modfication |
| 1409 |
void SnapVectorTowards( vec3_t v, vec3_t to ); |
| 1410 |
|
| 1411 |
void CG_FairCvars( void ); |
| 1412 |
|
| 1413 |
// |
| 1414 |
// cg_view.c |
| 1415 |
// |
| 1416 |
void CG_TestModel_f (void); |
| 1417 |
void CG_TestGun_f (void); |
| 1418 |
void CG_TestModelNextFrame_f (void); |
| 1419 |
void CG_TestModelPrevFrame_f (void); |
| 1420 |
void CG_TestModelNextSkin_f (void); |
| 1421 |
void CG_TestModelPrevSkin_f (void); |
| 1422 |
void CG_ZoomDown_f( void ); |
| 1423 |
void CG_ZoomUp_f( void ); |
| 1424 |
void CG_AddBufferedSound( sfxHandle_t sfx); |
| 1425 |
|
| 1426 |
void CG_DrawActiveFrame( int serverTime, stereoFrame_t stereoView, qboolean demoPlayback ); |
| 1427 |
|
| 1428 |
|
| 1429 |
// |
| 1430 |
// cg_drawtools.c |
| 1431 |
// |
| 1432 |
void CG_AdjustFrom640( float *x, float *y, float *w, float *h ); |
| 1433 |
void CG_FillRect( float x, float y, float width, float height, const float *color ); |
| 1434 |
void CG_DrawPic( float x, float y, float width, float height, qhandle_t hShader ); |
| 1435 |
void CG_DrawString( float x, float y, const char *string, |
| 1436 |
float charWidth, float charHeight, const float *modulate ); |
| 1437 |
|
| 1438 |
|
| 1439 |
void CG_DrawStringExt( int x, int y, const char *string, const float *setColor, |
| 1440 |
qboolean forceColor, qboolean shadow, int charWidth, int charHeight, int maxChars ); |
| 1441 |
void CG_DrawBigString( int x, int y, const char *s, float alpha ); |
| 1442 |
void CG_DrawBigStringColor( int x, int y, const char *s, vec4_t color ); |
| 1443 |
void CG_DrawSmallString( int x, int y, const char *s, float alpha ); |
| 1444 |
void CG_DrawSmallStringColor( int x, int y, const char *s, vec4_t color ); |
| 1445 |
|
| 1446 |
int CG_DrawStrlen( const char *str ); |
| 1447 |
|
| 1448 |
float *CG_FadeColor( int startMsec, int totalMsec ); |
| 1449 |
float *CG_TeamColor( int team ); |
| 1450 |
void CG_TileClear( void ); |
| 1451 |
void CG_ColorForHealth( vec4_t hcolor ); |
| 1452 |
void CG_GetColorForHealth( int health, int armor, vec4_t hcolor ); |
| 1453 |
|
| 1454 |
void UI_DrawProportionalString( int x, int y, const char* str, int style, vec4_t color ); |
| 1455 |
void CG_DrawRect( float x, float y, float width, float height, float size, const float *color ); |
| 1456 |
void CG_DrawSides(float x, float y, float w, float h, float size); |
| 1457 |
void CG_DrawTopBottom(float x, float y, float w, float h, float size); |
| 1458 |
|
| 1459 |
|
| 1460 |
// |
| 1461 |
// cg_draw.c, cg_newDraw.c |
| 1462 |
// |
| 1463 |
extern int sortedTeamPlayers[TEAM_MAXOVERLAY]; |
| 1464 |
extern int numSortedTeamPlayers; |
| 1465 |
extern int drawTeamOverlayModificationCount; |
| 1466 |
extern char systemChat[256]; |
| 1467 |
extern char teamChat1[256]; |
| 1468 |
extern char teamChat2[256]; |
| 1469 |
|
| 1470 |
void CG_AddLagometerFrameInfo( void ); |
| 1471 |
void CG_AddLagometerSnapshotInfo( snapshot_t *snap ); |
| 1472 |
void CG_CenterPrint( const char *str, int y, int charWidth ); |
| 1473 |
void CG_DrawHead( float x, float y, float w, float h, int clientNum, vec3_t headAngles ); |
| 1474 |
void CG_DrawActive( stereoFrame_t stereoView ); |
| 1475 |
void CG_DrawFlagModel( float x, float y, float w, float h, int team, qboolean force2D ); |
| 1476 |
void CG_DrawTeamBackground( int x, int y, int w, int h, float alpha, int team ); |
| 1477 |
void CG_OwnerDraw(float x, float y, float w, float h, float text_x, float text_y, int ownerDraw, int ownerDrawFlags, int align, float special, float scale, vec4_t color, qhandle_t shader, int textStyle); |
| 1478 |
void CG_Text_Paint(float x, float y, float scale, vec4_t color, const char *text, float adjust, int limit, int style); |
| 1479 |
int CG_Text_Width(const char *text, float scale, int limit); |
| 1480 |
int CG_Text_Height(const char *text, float scale, int limit); |
| 1481 |
void CG_SelectPrevPlayer( void ); |
| 1482 |
void CG_SelectNextPlayer( void ); |
| 1483 |
float CG_GetValue(int ownerDraw); |
| 1484 |
qboolean CG_OwnerDrawVisible(int flags); |
| 1485 |
void CG_RunMenuScript(char **args); |
| 1486 |
void CG_ShowResponseHead( void ); |
| 1487 |
void CG_SetPrintString(int type, const char *p); |
| 1488 |
void CG_InitTeamChat( void ); |
| 1489 |
void CG_GetTeamColor(vec4_t *color); |
| 1490 |
const char *CG_GetGameStatusText( void ); |
| 1491 |
const char *CG_GetKillerText( void ); |
| 1492 |
void CG_Draw3DModel(float x, float y, float w, float h, qhandle_t model, qhandle_t skin, vec3_t origin, vec3_t angles); |
| 1493 |
void CG_Text_PaintChar(float x, float y, float width, float height, float scale, float s, float t, float s2, float t2, qhandle_t hShader); |
| 1494 |
void CG_CheckOrderPending( void ); |
| 1495 |
const char *CG_GameTypeString( void ); |
| 1496 |
qboolean CG_YourTeamHasFlag( void ); |
| 1497 |
qboolean CG_OtherTeamHasFlag( void ); |
| 1498 |
qhandle_t CG_StatusHandle(int task); |
| 1499 |
|
| 1500 |
|
| 1501 |
|
| 1502 |
// |
| 1503 |
// cg_player.c |
| 1504 |
// |
| 1505 |
void CG_Player( centity_t *cent ); |
| 1506 |
void CG_ResetPlayerEntity( centity_t *cent ); |
| 1507 |
void CG_AddRefEntityWithPowerups( refEntity_t *ent, entityState_t *state, int team, qboolean isMissile ); |
| 1508 |
void CG_NewClientInfo( int clientNum ); |
| 1509 |
sfxHandle_t CG_CustomSound( int clientNum, const char *soundName ); |
| 1510 |
|
| 1511 |
// |
| 1512 |
// cg_predict.c |
| 1513 |
// |
| 1514 |
void CG_BuildSolidList( void ); |
| 1515 |
int CG_PointContents( const vec3_t point, int passEntityNum ); |
| 1516 |
void CG_Trace( trace_t *result, const vec3_t start, const vec3_t mins, const vec3_t maxs, const vec3_t end, |
| 1517 |
int skipNumber, int mask ); |
| 1518 |
void CG_PredictPlayerState( void ); |
| 1519 |
void CG_LoadDeferredPlayers( void ); |
| 1520 |
|
| 1521 |
|
| 1522 |
// |
| 1523 |
// cg_events.c |
| 1524 |
// |
| 1525 |
void CG_CheckEvents( centity_t *cent ); |
| 1526 |
const char *CG_PlaceString( int rank ); |
| 1527 |
void CG_EntityEvent( centity_t *cent, vec3_t position ); |
| 1528 |
void CG_PainEvent( centity_t *cent, int health ); |
| 1529 |
|
| 1530 |
|
| 1531 |
// |
| 1532 |
// cg_ents.c |
| 1533 |
// |
| 1534 |
void CG_SetEntitySoundPosition( centity_t *cent ); |
| 1535 |
void CG_AddPacketEntities( void ); |
| 1536 |
void CG_Beam( centity_t *cent ); |
| 1537 |
void CG_AdjustPositionForMover( const vec3_t in, int moverNum, int fromTime, int toTime, vec3_t out ); |
| 1538 |
|
| 1539 |
void CG_PositionEntityOnTag( refEntity_t *entity, const refEntity_t *parent, |
| 1540 |
qhandle_t parentModel, char *tagName ); |
| 1541 |
void CG_PositionRotatedEntityOnTag( refEntity_t *entity, const refEntity_t *parent, |
| 1542 |
qhandle_t parentModel, char *tagName ); |
| 1543 |
|
| 1544 |
|
| 1545 |
|
| 1546 |
// |
| 1547 |
// cg_weapons.c |
| 1548 |
// |
| 1549 |
void CG_NextWeapon_f( void ); |
| 1550 |
void CG_PrevWeapon_f( void ); |
| 1551 |
void CG_Weapon_f( void ); |
| 1552 |
|
| 1553 |
void CG_RegisterWeapon( int weaponNum ); |
| 1554 |
void CG_RegisterItemVisuals( int itemNum ); |
| 1555 |
|
| 1556 |
void CG_FireWeapon( centity_t *cent ); |
| 1557 |
void CG_MissileHitWall( int weapon, int clientNum, vec3_t origin, vec3_t dir, impactSound_t soundType ); |
| 1558 |
void CG_MissileHitPlayer( int weapon, vec3_t origin, vec3_t dir, int entityNum ); |
| 1559 |
void CG_ShotgunFire( entityState_t *es ); |
| 1560 |
void CG_Bullet( vec3_t origin, int sourceEntityNum, vec3_t normal, qboolean flesh, int fleshEntityNum ); |
| 1561 |
|
| 1562 |
void CG_RailTrail( clientInfo_t *ci, vec3_t start, vec3_t end ); |
| 1563 |
void CG_GrappleTrail( centity_t *ent, const weaponInfo_t *wi ); |
| 1564 |
void CG_AddViewWeapon (playerState_t *ps); |
| 1565 |
void CG_AddPlayerWeapon( refEntity_t *parent, playerState_t *ps, centity_t *cent, int team ); |
| 1566 |
void CG_DrawWeaponSelect( void ); |
| 1567 |
|
| 1568 |
void CG_DrawWeaponBar0(int count, int bits); |
| 1569 |
void CG_DrawWeaponBar1(int count, int bits); |
| 1570 |
void CG_DrawWeaponBar2(int count, int bits, float *color); |
| 1571 |
void CG_DrawWeaponBar3(int count, int bits, float *color); |
| 1572 |
void CG_DrawWeaponBar4(int count, int bits, float *color); |
| 1573 |
void CG_DrawWeaponBar5(int count, int bits, float *color); |
| 1574 |
void CG_DrawWeaponBar6(int count, int bits, float *color); |
| 1575 |
void CG_DrawWeaponBar7(int count, int bits, float *color); |
| 1576 |
|
| 1577 |
void CG_OutOfAmmoChange( void ); // should this be in pmove? |
| 1578 |
|
| 1579 |
// |
| 1580 |
// cg_marks.c |
| 1581 |
// |
| 1582 |
void CG_InitMarkPolys( void ); |
| 1583 |
void CG_AddMarks( void ); |
| 1584 |
void CG_ImpactMark( qhandle_t markShader, |
| 1585 |
const vec3_t origin, const vec3_t dir, |
| 1586 |
float orientation, |
| 1587 |
float r, float g, float b, float a, |
| 1588 |
qboolean alphaFade, |
| 1589 |
float radius, qboolean temporary ); |
| 1590 |
void CG_LeiSparks (vec3_t org, vec3_t vel, int duration, float x, float y, float speed); |
| 1591 |
void CG_LeiSparks2 (vec3_t org, vec3_t vel, int duration, float x, float y, float speed); |
| 1592 |
void CG_LeiPuff (vec3_t org, vec3_t vel, int duration, float x, float y, float speed, float size); |
| 1593 |
|
| 1594 |
|
| 1595 |
// |
| 1596 |
// cg_localents.c |
| 1597 |
// |
| 1598 |
void CG_InitLocalEntities( void ); |
| 1599 |
localEntity_t *CG_AllocLocalEntity( void ); |
| 1600 |
void CG_AddLocalEntities( void ); |
| 1601 |
|
| 1602 |
// |
| 1603 |
// cg_effects.c |
| 1604 |
// |
| 1605 |
localEntity_t *CG_SmokePuff( const vec3_t p, |
| 1606 |
const vec3_t vel, |
| 1607 |
float radius, |
| 1608 |
float r, float g, float b, float a, |
| 1609 |
float duration, |
| 1610 |
int startTime, |
| 1611 |
int fadeInTime, |
| 1612 |
int leFlags, |
| 1613 |
qhandle_t hShader ); |
| 1614 |
void CG_BubbleTrail( vec3_t start, vec3_t end, float spacing ); |
| 1615 |
void CG_SpawnEffect( vec3_t org ); |
| 1616 |
//#ifdef MISSIONPACK |
| 1617 |
void CG_KamikazeEffect( vec3_t org ); |
| 1618 |
void CG_ObeliskExplode( vec3_t org, int entityNum ); |
| 1619 |
void CG_ObeliskPain( vec3_t org ); |
| 1620 |
void CG_InvulnerabilityImpact( vec3_t org, vec3_t angles ); |
| 1621 |
void CG_InvulnerabilityJuiced( vec3_t org ); |
| 1622 |
void CG_LightningBoltBeam( vec3_t start, vec3_t end ); |
| 1623 |
//#endif |
| 1624 |
void CG_ScorePlum( int client, vec3_t org, int score ); |
| 1625 |
|
| 1626 |
void CG_GibPlayer( vec3_t playerOrigin ); |
| 1627 |
void CG_BigExplode( vec3_t playerOrigin ); |
| 1628 |
|
| 1629 |
void CG_Bleed( vec3_t origin, int entityNum ); |
| 1630 |
|
| 1631 |
localEntity_t *CG_MakeExplosion( vec3_t origin, vec3_t dir, |
| 1632 |
qhandle_t hModel, qhandle_t shader, int msec, |
| 1633 |
qboolean isSprite ); |
| 1634 |
|
| 1635 |
void CG_SpurtBlood( vec3_t origin, vec3_t velocity, int hard ); |
| 1636 |
|
| 1637 |
// |
| 1638 |
// cg_snapshot.c |
| 1639 |
// |
| 1640 |
void CG_ProcessSnapshots( void ); |
| 1641 |
//unlagged - early transitioning |
| 1642 |
void CG_TransitionEntity( centity_t *cent ); |
| 1643 |
//unlagged - early transitioning |
| 1644 |
|
| 1645 |
// |
| 1646 |
// cg_info.c |
| 1647 |
// |
| 1648 |
void CG_LoadingString( const char *s ); |
| 1649 |
void CG_LoadingItem( int itemNum ); |
| 1650 |
void CG_LoadingClient( int clientNum ); |
| 1651 |
void CG_DrawInformation( void ); |
| 1652 |
|
| 1653 |
// |
| 1654 |
// cg_scoreboard.c |
| 1655 |
// |
| 1656 |
qboolean CG_DrawOldScoreboard( void ); |
| 1657 |
void CG_DrawOldTourneyScoreboard( void ); |
| 1658 |
|
| 1659 |
// |
| 1660 |
// cg_challenges.c |
| 1661 |
// |
| 1662 |
void challenges_init(void); |
| 1663 |
void challenges_save(void); |
| 1664 |
unsigned int getChallenge(int challenge); |
| 1665 |
void addChallenge(int challenge); |
| 1666 |
|
| 1667 |
// |
| 1668 |
// cg_consolecmds.c |
| 1669 |
// |
| 1670 |
qboolean CG_ConsoleCommand( void ); |
| 1671 |
void CG_InitConsoleCommands( void ); |
| 1672 |
|
| 1673 |
// |
| 1674 |
// cg_servercmds.c |
| 1675 |
// |
| 1676 |
void CG_ExecuteNewServerCommands( int latestSequence ); |
| 1677 |
void CG_ParseServerinfo( void ); |
| 1678 |
void CG_SetConfigValues( void ); |
| 1679 |
void CG_LoadVoiceChats( void ); |
| 1680 |
void CG_ShaderStateChanged(void); |
| 1681 |
void CG_VoiceChatLocal( int mode, qboolean voiceOnly, int clientNum, int color, const char *cmd ); |
| 1682 |
void CG_PlayBufferedVoiceChats( void ); |
| 1683 |
|
| 1684 |
// |
| 1685 |
// cg_playerstate.c |
| 1686 |
// |
| 1687 |
void CG_Respawn( void ); |
| 1688 |
void CG_TransitionPlayerState( playerState_t *ps, playerState_t *ops ); |
| 1689 |
void CG_CheckChangedPredictableEvents( playerState_t *ps ); |
| 1690 |
|
| 1691 |
|
| 1692 |
//=============================================== |
| 1693 |
|
| 1694 |
// |
| 1695 |
// system traps |
| 1696 |
// These functions are how the cgame communicates with the main game system |
| 1697 |
// |
| 1698 |
|
| 1699 |
// print message on the local console |
| 1700 |
void trap_Print( const char *fmt ); |
| 1701 |
|
| 1702 |
// abort the game |
| 1703 |
void trap_Error( const char *fmt ) __attribute__((noreturn)); |
| 1704 |
|
| 1705 |
// milliseconds should only be used for performance tuning, never |
| 1706 |
// for anything game related. Get time from the CG_DrawActiveFrame parameter |
| 1707 |
int trap_Milliseconds( void ); |
| 1708 |
|
| 1709 |
// console variable interaction |
| 1710 |
void trap_Cvar_Register( vmCvar_t *vmCvar, const char *varName, const char *defaultValue, int flags ); |
| 1711 |
void trap_Cvar_Update( vmCvar_t *vmCvar ); |
| 1712 |
void trap_Cvar_Set( const char *var_name, const char *value ); |
| 1713 |
void trap_Cvar_VariableStringBuffer( const char *var_name, char *buffer, int bufsize ); |
| 1714 |
|
| 1715 |
// ServerCommand and ConsoleCommand parameter access |
| 1716 |
int trap_Argc( void ); |
| 1717 |
void trap_Argv( int n, char *buffer, int bufferLength ); |
| 1718 |
void trap_Args( char *buffer, int bufferLength ); |
| 1719 |
|
| 1720 |
// filesystem access |
| 1721 |
// returns length of file |
| 1722 |
int trap_FS_FOpenFile( const char *qpath, fileHandle_t *f, fsMode_t mode ); |
| 1723 |
void trap_FS_Read( void *buffer, int len, fileHandle_t f ); |
| 1724 |
void trap_FS_Write( const void *buffer, int len, fileHandle_t f ); |
| 1725 |
void trap_FS_FCloseFile( fileHandle_t f ); |
| 1726 |
int trap_FS_Seek( fileHandle_t f, long offset, int origin ); // fsOrigin_t |
| 1727 |
|
| 1728 |
// add commands to the local console as if they were typed in |
| 1729 |
// for map changing, etc. The command is not executed immediately, |
| 1730 |
// but will be executed in order the next time console commands |
| 1731 |
// are processed |
| 1732 |
void trap_SendConsoleCommand( const char *text ); |
| 1733 |
|
| 1734 |
// register a command name so the console can perform command completion. |
| 1735 |
// FIXME: replace this with a normal console command "defineCommand"? |
| 1736 |
void trap_AddCommand( const char *cmdName ); |
| 1737 |
|
| 1738 |
// send a string to the server over the network |
| 1739 |
void trap_SendClientCommand( const char *s ); |
| 1740 |
|
| 1741 |
// force a screen update, only used during gamestate load |
| 1742 |
void trap_UpdateScreen( void ); |
| 1743 |
|
| 1744 |
// model collision |
| 1745 |
void trap_CM_LoadMap( const char *mapname ); |
| 1746 |
int trap_CM_NumInlineModels( void ); |
| 1747 |
clipHandle_t trap_CM_InlineModel( int index ); // 0 = world, 1+ = bmodels |
| 1748 |
clipHandle_t trap_CM_TempBoxModel( const vec3_t mins, const vec3_t maxs ); |
| 1749 |
int trap_CM_PointContents( const vec3_t p, clipHandle_t model ); |
| 1750 |
int trap_CM_TransformedPointContents( const vec3_t p, clipHandle_t model, const vec3_t origin, const vec3_t angles ); |
| 1751 |
void trap_CM_BoxTrace( trace_t *results, const vec3_t start, const vec3_t end, |
| 1752 |
const vec3_t mins, const vec3_t maxs, |
| 1753 |
clipHandle_t model, int brushmask ); |
| 1754 |
void trap_CM_TransformedBoxTrace( trace_t *results, const vec3_t start, const vec3_t end, |
| 1755 |
const vec3_t mins, const vec3_t maxs, |
| 1756 |
clipHandle_t model, int brushmask, |
| 1757 |
const vec3_t origin, const vec3_t angles ); |
| 1758 |
|
| 1759 |
// Returns the projection of a polygon onto the solid brushes in the world |
| 1760 |
int trap_CM_MarkFragments( int numPoints, const vec3_t *points, |
| 1761 |
const vec3_t projection, |
| 1762 |
int maxPoints, vec3_t pointBuffer, |
| 1763 |
int maxFragments, markFragment_t *fragmentBuffer ); |
| 1764 |
|
| 1765 |
// normal sounds will have their volume dynamically changed as their entity |
| 1766 |
// moves and the listener moves |
| 1767 |
void trap_S_StartSound( vec3_t origin, int entityNum, int entchannel, sfxHandle_t sfx ); |
| 1768 |
void trap_S_StopLoopingSound(int entnum); |
| 1769 |
|
| 1770 |
// a local sound is always played full volume |
| 1771 |
void trap_S_StartLocalSound( sfxHandle_t sfx, int channelNum ); |
| 1772 |
void trap_S_ClearLoopingSounds( qboolean killall ); |
| 1773 |
void trap_S_AddLoopingSound( int entityNum, const vec3_t origin, const vec3_t velocity, sfxHandle_t sfx ); |
| 1774 |
void trap_S_AddRealLoopingSound( int entityNum, const vec3_t origin, const vec3_t velocity, sfxHandle_t sfx ); |
| 1775 |
void trap_S_UpdateEntityPosition( int entityNum, const vec3_t origin ); |
| 1776 |
|
| 1777 |
// respatialize recalculates the volumes of sound as they should be heard by the |
| 1778 |
// given entityNum and position |
| 1779 |
void trap_S_Respatialize( int entityNum, const vec3_t origin, vec3_t axis[3], int inwater ); |
| 1780 |
sfxHandle_t trap_S_RegisterSound( const char *sample, qboolean compressed ); // returns buzz if not found |
| 1781 |
void trap_S_StartBackgroundTrack( const char *intro, const char *loop ); // empty name stops music |
| 1782 |
void trap_S_StopBackgroundTrack( void ); |
| 1783 |
|
| 1784 |
|
| 1785 |
void trap_R_LoadWorldMap( const char *mapname ); |
| 1786 |
|
| 1787 |
// all media should be registered during level startup to prevent |
| 1788 |
// hitches during gameplay |
| 1789 |
qhandle_t trap_R_RegisterModel( const char *name ); // returns rgb axis if not found |
| 1790 |
qhandle_t trap_R_RegisterSkin( const char *name ); // returns all white if not found |
| 1791 |
qhandle_t trap_R_RegisterShader( const char *name ); // returns all white if not found |
| 1792 |
qhandle_t trap_R_RegisterShaderNoMip( const char *name ); // returns all white if not found |
| 1793 |
|
| 1794 |
// a scene is built up by calls to R_ClearScene and the various R_Add functions. |
| 1795 |
// Nothing is drawn until R_RenderScene is called. |
| 1796 |
void trap_R_ClearScene( void ); |
| 1797 |
void trap_R_AddRefEntityToScene( const refEntity_t *re ); |
| 1798 |
|
| 1799 |
// polys are intended for simple wall marks, not really for doing |
| 1800 |
// significant construction |
| 1801 |
void trap_R_AddPolyToScene( qhandle_t hShader , int numVerts, const polyVert_t *verts ); |
| 1802 |
void trap_R_AddPolysToScene( qhandle_t hShader , int numVerts, const polyVert_t *verts, int numPolys ); |
| 1803 |
void trap_R_AddLightToScene( const vec3_t org, float intensity, float r, float g, float b ); |
| 1804 |
int trap_R_LightForPoint( vec3_t point, vec3_t ambientLight, vec3_t directedLight, vec3_t lightDir ); |
| 1805 |
void trap_R_RenderScene( const refdef_t *fd ); |
| 1806 |
void trap_R_SetColor( const float *rgba ); // NULL = 1,1,1,1 |
| 1807 |
void trap_R_DrawStretchPic( float x, float y, float w, float h, |
| 1808 |
float s1, float t1, float s2, float t2, qhandle_t hShader ); |
| 1809 |
void trap_R_ModelBounds( clipHandle_t model, vec3_t mins, vec3_t maxs ); |
| 1810 |
int trap_R_LerpTag( orientation_t *tag, clipHandle_t mod, int startFrame, int endFrame, |
| 1811 |
float frac, const char *tagName ); |
| 1812 |
void trap_R_RemapShader( const char *oldShader, const char *newShader, const char *timeOffset ); |
| 1813 |
|
| 1814 |
// The glconfig_t will not change during the life of a cgame. |
| 1815 |
// If it needs to change, the entire cgame will be restarted, because |
| 1816 |
// all the qhandle_t are then invalid. |
| 1817 |
void trap_GetGlconfig( glconfig_t *glconfig ); |
| 1818 |
|
| 1819 |
// the gamestate should be grabbed at startup, and whenever a |
| 1820 |
// configstring changes |
| 1821 |
void trap_GetGameState( gameState_t *gamestate ); |
| 1822 |
|
| 1823 |
// cgame will poll each frame to see if a newer snapshot has arrived |
| 1824 |
// that it is interested in. The time is returned seperately so that |
| 1825 |
// snapshot latency can be calculated. |
| 1826 |
void trap_GetCurrentSnapshotNumber( int *snapshotNumber, int *serverTime ); |
| 1827 |
|
| 1828 |
// a snapshot get can fail if the snapshot (or the entties it holds) is so |
| 1829 |
// old that it has fallen out of the client system queue |
| 1830 |
qboolean trap_GetSnapshot( int snapshotNumber, snapshot_t *snapshot ); |
| 1831 |
|
| 1832 |
// retrieve a text command from the server stream |
| 1833 |
// the current snapshot will hold the number of the most recent command |
| 1834 |
// qfalse can be returned if the client system handled the command |
| 1835 |
// argc() / argv() can be used to examine the parameters of the command |
| 1836 |
qboolean trap_GetServerCommand( int serverCommandNumber ); |
| 1837 |
|
| 1838 |
// returns the most recent command number that can be passed to GetUserCmd |
| 1839 |
// this will always be at least one higher than the number in the current |
| 1840 |
// snapshot, and it may be quite a few higher if it is a fast computer on |
| 1841 |
// a lagged connection |
| 1842 |
int trap_GetCurrentCmdNumber( void ); |
| 1843 |
|
| 1844 |
qboolean trap_GetUserCmd( int cmdNumber, usercmd_t *ucmd ); |
| 1845 |
|
| 1846 |
// used for the weapon select and zoom |
| 1847 |
void trap_SetUserCmdValue( int stateValue, float sensitivityScale ); |
| 1848 |
|
| 1849 |
// aids for VM testing |
| 1850 |
void testPrintInt( char *string, int i ); |
| 1851 |
void testPrintFloat( char *string, float f ); |
| 1852 |
|
| 1853 |
int trap_MemoryRemaining( void ); |
| 1854 |
void trap_R_RegisterFont(const char *fontName, int pointSize, fontInfo_t *font); |
| 1855 |
qboolean trap_Key_IsDown( int keynum ); |
| 1856 |
int trap_Key_GetCatcher( void ); |
| 1857 |
void trap_Key_SetCatcher( int catcher ); |
| 1858 |
int trap_Key_GetKey( const char *binding ); |
| 1859 |
|
| 1860 |
|
| 1861 |
typedef enum { |
| 1862 |
SYSTEM_PRINT, |
| 1863 |
CHAT_PRINT, |
| 1864 |
TEAMCHAT_PRINT |
| 1865 |
} q3print_t; // bk001201 - warning: useless keyword or type name in empty declaration |
| 1866 |
|
| 1867 |
|
| 1868 |
int trap_CIN_PlayCinematic( const char *arg0, int xpos, int ypos, int width, int height, int bits); |
| 1869 |
e_status trap_CIN_StopCinematic(int handle); |
| 1870 |
e_status trap_CIN_RunCinematic (int handle); |
| 1871 |
void trap_CIN_DrawCinematic (int handle); |
| 1872 |
void trap_CIN_SetExtents (int handle, int x, int y, int w, int h); |
| 1873 |
|
| 1874 |
void trap_SnapVector( float *v ); |
| 1875 |
|
| 1876 |
qboolean trap_loadCamera(const char *name); |
| 1877 |
void trap_startCamera(int time); |
| 1878 |
qboolean trap_getCameraInfo(int time, vec3_t *origin, vec3_t *angles); |
| 1879 |
|
| 1880 |
qboolean trap_GetEntityToken( char *buffer, int bufferSize ); |
| 1881 |
|
| 1882 |
void CG_ClearParticles (void); |
| 1883 |
void CG_AddParticles (void); |
| 1884 |
void CG_ParticleSnow (qhandle_t pshader, vec3_t origin, vec3_t origin2, int turb, float range, int snum); |
| 1885 |
void CG_ParticleSmoke (qhandle_t pshader, centity_t *cent); |
| 1886 |
void CG_AddParticleShrapnel (localEntity_t *le); |
| 1887 |
void CG_ParticleSnowFlurry (qhandle_t pshader, centity_t *cent); |
| 1888 |
void CG_ParticleBulletDebris (vec3_t org, vec3_t vel, int duration); |
| 1889 |
void CG_ParticleSparks (vec3_t org, vec3_t vel, int duration, float x, float y, float speed); |
| 1890 |
void CG_ParticleDust (centity_t *cent, vec3_t origin, vec3_t dir); |
| 1891 |
void CG_ParticleMisc (qhandle_t pshader, vec3_t origin, int size, int duration, float alpha); |
| 1892 |
void CG_ParticleExplosion (char *animStr, vec3_t origin, vec3_t vel, int duration, int sizeStart, int sizeEnd); |
| 1893 |
extern qboolean initparticles; |
| 1894 |
int CG_NewParticleArea ( int num ); |
| 1895 |
|
| 1896 |
|
| 1897 |
// LEILEI ENHANCEMENT |
| 1898 |
|