The QuakeC repository for NZ:P, all platforms.
Find a file
Skibbo 9a50966208
Fixed the achievement "No Perk? No Problem"
The achievement should trigger at round 16 at the earliest after the description "Survive an entire Round without Perks past Round 15 or higher".

The achievement triggers at the end of round 12, regardless if you bought perks or not.

I added a line to check if it's after round 15 and removed the line "players.ach_tracker_npnp = 0;" which reset the count of drank perks, so it triggers correctly.
2024-01-04 23:46:20 +01:00
.github/workflows WORKFLOW: update delete-tag-and-release to 0.2.1 2023-03-17 12:16:30 -04:00
bin REPO: Add support for building QuakeC on macOS natively 2023-11-05 08:48:53 -05:00
progs CLIENT: Add Co-Operative menu 2023-11-27 16:41:07 -05:00
source Fixed the achievement "No Perk? No Problem" 2024-01-04 23:46:20 +01:00
tools CLIENT/SERVER: Spike peer review fixes 2023-12-02 11:06:39 -05:00
.gitignore Initial commit 2022-02-08 13:42:28 -05:00
LICENSE Initial commit 2022-02-08 13:42:28 -05:00
README.md prompt a rebuild 2023-11-25 15:54:57 -05:00

Nazi Zombies: Portable QuakeC

About

This is the QuakeC portion of the NZ:P source code. QuakeC is responsible for most game-related code such as weapon logic, ai, and Perks. You can read more about QuakeC on the Wikipedia page. NZ:P makes use of CSQC for PC/FTE.

Project Structure

Here is a brief explanation for each of the (sub)directories in this repository:

  • bin: Command line binaries for FTEQCC + the ini configuration file.
  • progs: *.src files, a list of QuakeC source files each platform is dependent on.
  • source:
    • client: FTE-exclusive CSQC, used for the HUD, achievements, and other server->client requests.
    • server: Game code relevant to all platforms, contains most expected logic.
    • shared: Definitions for weapon stats and some utility functions shared by both the client and server.
  • tools: Build scripts to compile the QuakeC into .dat and .lno files.

Updating

While it's usually recommended to stay on the QuakeC version provided with your build of NZ:P, you may want to update it to the current development builds to test new features and changes. To do this, navigate to the Releases page and follow the instructions there for downloading and installing.

Building (Beginner Friendly)

There are no prerequisites or dependancies needed to build QuakeC other than a working Windows, macOS, or Linux-based machine.

Before you can build the NZ:P QuakeC, you must either download this repository (easy) or clone it (for developers).

To build, simply navigate to the tools directory and run the qc-compiler-* script for your platform. If unfamiliar with executing shell (.sh) scripts on Linux systems, give this itsFOSS article a read.

After having done this, a build directory will have been created, and inside of it will be more directories named after every platform. Copy the contents of the platform directories into your nzp game directory. (Example: For PSP, copy progs.dat and progs.lno from standard/handheld to PSP/GAME/nzportable/nzp).