=============================================================================
SHRAK QUAKEC SOURCE FILES (REV.#5)
=============================================================================

Original code: Matt Walsh / Quantum Axcess, 1996
Code updates:  NightFright, 2021
URQP Project:  Maddes (et al.)

=============================================================================

Overview of QuakeC updates:

1) Progs.dat fixes:
   - Fix for missing line break for story message on start map (start1.bsp)
   - Fix for story message after returning from "Remnants" (rubble.bsp) not being displayed completely
   - Fix for wrong finale text ("Now you have all four runes..." from original Quake) showing
   - Fix for wrong ammo count with most weapons and tools
   - Fix for crash when cycling through weapons too quickly
   - Also show intro text when choosing "New Game"
   - Various fixes from the URQP coding project:
     > client.qc ("NoExit" SP/Coop fix, respawn velocity fix, suicide during intermission fix, time-/fraglimit fix)
     > defs.qc/triggers.qc (hurt_touch fix)
     > doors.qc (Door unlock sound fix)
     > items.qc (Multiple megahealth rot down too fast fix)
     > misc.qc (Incorrect setting of nextthink fix)
     > monsters.qc (fish count fix, monsters sometimes do not move fix)
     > player.qc (Glowing corpse of players which had Quad/Pentagram until respawn fix,
       palette shift when player dies with Quad/Pentagram fix, player gulps bubbles when hurt in slime,
       bubblespawner remove fix/improved bubble spawn)
     > weapons.qc (Cheats coop fix, constantly checking all impulses fix)

2) Progs.dat new features:
   - Enemies have -33% health on "Easy" (skill 0)
   - Intro message for secret level (secret.bsp) added
   - Utility vest optimized:
     No switching to best weapon when out of ammo, counter fix for grappling hook, weapon cycling support

=============================================================================

QuakeC changes applied:

[Note: Unaltered files are located in the "backup" folder". These have not seen any
       major adjustments and are not guaranteed to compile flawlessly if used instead
       of the cleaned versions.]

General: Code cleanup to eliminate all warnings during compilation with FTEQCC

ai.qc
- Code fix in CheckAnyAttack to eliminate compiler warning

client.qc
- Fix for wrong finale text (from original Quake) showing
- Add missing original Quake finale texts for ep.1+2
- "NoExit" SP/Coop fix
- Respawn velocity fix
- Suicide during intermission fix
- Timelimit/Fraglimit fix
- Reduced PlayerPostThink delay for weapon switching

console.qc
- Fix for impulse 253 case being ignored in teamCommands

defs.qc
- hurt_touch fix

doors.qc
- Door unlock sound fix

droid.qc
- Utility vest item switch fix

flare.qc/friend.qc/grap.qc/hfb.qc/inflator.qc/plastic.qc
- Ammo count fix

items.qc
- Multiple megahealth rot down too fast fix
- Position fix for placed Double Shotgun
- Print amount of cards found

misc.qc
- Incorrect setting of nextthink fix

monsters.qc
- Fish count fix
- Monsters sometimes do not move fix

player.qc
- Glowing corpse of players which had Quad/Pentagram until respawn fix
- Palette shift when player dies with Quad/Pentagram fix
- Player gulps bubbles when hurt in slime
- Bubblespawner remove fix/improved bubble spawn

qattack.qc
- Compiler fix for badly named entity (lines 34-41) and vector assigned to float (line 60)

story.qc
- Fix for one story message not being displayed completely (after returning from rubble.bsp)
- Bonus message for secret level (secret.bsp or hob.bsp)
- Also show intro text when choosing "New Game"

triggers.qc
- hurt_touch fix

weapons.qc
- Ammo count fix
- Utility vest item switch fix
- Item cycling support for utility vest
- Grappling hook behavior fix when grapAmmo = 0
- Cheats coop fix
- Constantly checking all impulses fix
- Fix for crash when cycling through weapons too quickly (FlashWeapon function deactivated)

world.qc
- Check for optional cvars "r_maxedges" and "r_maxsurfs"
- Include start.map, secret.bsp and hob.bsp in worldspawn