Commit Graph

113 Commits

Author SHA1 Message Date
Yamagi 6a2d5125f6 There's no need to run `brew upgrade`. 2024-08-12 18:21:51 +02:00
Yamagi b8a45290a2 Add CI workflows for Linux, MacOS and Windows.
This is equivalent to the CI workflows added to the yquake2 main
repository. The workflows are triggered on commit, for new pull
requests and when the pull request branch is updated. The CI is
mostly for providing users with up to date test builds.
2024-08-12 18:03:50 +02:00
Yamagi 38cc7813dd Modernize the README.
Convert to markdown and follow the same style as the yquake2 main
repository. Use it's resources were appropriate.
2024-08-12 18:01:46 +02:00
Yamagi a5f933ba03 Update CHANGELOG for 1.10. 2023-11-04 14:08:05 +01:00
Yamagi 95852c466c Normalize arm64 to aarch 64 on not MacOS and Windows.
This makes sure that 64 bit and 32 bit aren't endig up as `arm`, making
it possible to load 32 bit savegames on 64 bit binaries and vise versa.
This is a theoretical issue with ctf, because the mod doesn't support
savegames.

For MacOS just use what the system calls itself.

Closes #18.
2023-11-04 14:05:02 +01:00
Yamagi 4bbda4cd98 Update the CHANGELOG for 1.09. 2022-12-03 17:14:30 +01:00
Yamagi 48c30c68a3
Merge pull request #17 from Dremor8484/Dremor8484-ctf-doublebarrelshotgun-aimfix
Update weapon.c
2022-12-03 17:13:23 +01:00
Dremor8484 c99c53d4b6
Update weapon.c
the aimfix was working only on half of the attack, since the supershotgun shoots 2 times (half bullets left, half bullets right)

to carefully test it i tried to comment out 1 of the 2 shots while also keep yaw change to 0
in 1 case the bullets hit around the crossair, in the other case the bullets were not centered around the crossair.

i added the same fix to the shot that did not have it, and it worked.

i tested it out with yaw-5 and yaw+5 with both shots shooting at the same time and the bullets appeared to gather into 2 distinct clusters one left side of crossair, one right side of crossair like 2 eyes on the wall
2022-12-03 15:50:57 +01:00
Yamagi 554590fca9
Merge pull request #16 from Dremor8484/Dremor8484-ctf-doublebarrelshotgun-aimfix
Update weapon.c
2022-06-11 16:59:34 +02:00
Dremor8484 ab58bc5a37
Update weapon.c
ctf-doublebarrelshotgun-aimfix
2022-06-10 19:27:04 +02:00
Yamagi 606a52ddf4
Merge pull request #14 from tommyrot/fix_wrong_team_announced
Fix wrong team announce on flag return
2022-04-11 08:44:13 +02:00
tommyrot 7932c76d16 Fix wrong team being announced when the blue flag is returned after it gets destroyed. 2022-03-25 03:13:53 +01:00
Yamagi 55b80715ac Add a warning that the CMakeLists.txt is unmaintained. 2021-07-23 08:28:35 +02:00
Yamagi 2e2e1945e8 Revert "Retire unmaintained CMakeLists.txt."
It turned out that there're some special cases not (yet) covered by the
Makefile. Crossbuilding in specialized chroot environments are one
example.
2021-07-23 08:27:27 +02:00
Yamagi 5e4fc5a0ed Retire unmaintained CMakeLists.txt.
I added the CMakeLists.txt 6 or 7 years ago so I could load the code
into Jetbrains Clion. I have moved to another editor years ago and the
cmake stuff is effectively unmaintained since then. We kept it around
in case that we'll do a MSVC port, but that's unlikely at this point.
Since bugreport and problems with the CMakeLists.txt keep coming up,
finally retire them. They can be resurrected from the git history if
we'll ever need them again.

Part of yquake2/yquake2#725.
2021-06-29 10:49:51 +02:00
Yamagi 72b78e39ca Update the CHANGELOG for 1.08. 2021-06-14 16:33:32 +02:00
Yamagi ff3a920d20
Merge pull request #13 from 0lvin/master
Fix function prototypes
2021-01-27 08:29:04 +01:00
Denis Pauk 5f7038c407 Fix function prototypes 2021-01-26 21:23:52 +02:00
Daniel Gibson 928066d37d Fix architecture detection on Windows in Makefile
$PROCESSOR_ARCHITECTURE seems to contain the architecture of the host,
but we need the architecture the current MinGW shell is targeting.
$MINGW_CHOST seems to be just that, and on my system it's either
i686-w64-mingw32 (mingw32.exe) or x86_64-w64-mingw32 (mingw64.exe)
(No idea what it looks like for Windows on ARM...)
2021-01-14 02:35:04 +01:00
Yamagi f31b3264d5
Merge pull request #12 from micwoj92/patch-1
fix some typos in comments
2020-06-02 08:46:24 +02:00
micwoj92 23d0f705c6
fix some typos in comments 2020-05-21 03:07:15 +02:00
Yamagi 26019096ee Resolve oversight in last commit. 2020-04-21 13:52:24 +02:00
Yamagi 1531bcebb7 Bring Makefile on par with yquake2:
* Make CFLAGS and LDFLAGS overrideable
* Correct architecture and operating system detection.
* Enforce FPU mode.
* Implement DEBUG.
* Pass LDFLAGS after the objects.

Closes #9, closes #10.
2020-04-21 13:33:00 +02:00
Yamagi fad0152c6b
Merge pull request #11 from mjr4077au/Client_AimFixWithCVAR
Implement accurate-aiming CVAR in ctf game code.
2020-04-21 12:51:37 +02:00
Mitchell Richters 8e92749a8b Implement accurate-aiming CVAR in ctf game code. 2020-04-21 07:44:11 +10:00
Yamagi 16198d78be Update the CHANGELOG for 1.07. 2020-02-24 17:01:11 +01:00
Yamagi befa16b12f Add a simple .gitignore. 2020-02-24 17:00:09 +01:00
Yamagi 71574de589 Limit the fix against black debris to gibs, debris, monsters.
Pushing all entities slightly away from non-horizontal may let items to
slide to unreachable locations, or let monsters getting stuck.

This is part of yquake2/xatrix#50
2020-02-22 15:27:22 +01:00
Yamagi 2ffb440a66
Merge pull request #8 from i-amdroid/macos-build-fix
Fixed macos building.
2020-01-01 13:27:31 +01:00
Andrey Yurtaev d209850ef7 Fixed macos building. 2019-12-21 04:30:16 +03:00
Yamagi Burmeister cf0471a367 Push entitie slightly away from non horizontal surfaces.
Otherwise the entities origin might be in the surface, which causes it
to be rendered in full black.
2019-06-15 17:43:42 +02:00
Yamagi Burmeister 8c58273867 Put -lm into the global LDFLAGS and not into the linker command.
This is more inline with what we're doing in the other addons. And -lm
is a library that's linked unconditionally.
2019-05-13 17:11:45 +02:00
Yamagi 4f8b49daf3
Merge pull request #4 from smcv/libm
Link ctf game.so to math library
2019-05-13 17:04:59 +02:00
Yamagi Burmeister 821872c798 Build a .dylib for OS X. 2019-05-09 18:28:10 +02:00
Yamagi 15a25d8daa
Merge pull request #3 from smcv/source-date-epoch
Use SOURCE_DATE_EPOCH for reproducible build
2019-05-09 18:19:09 +02:00
Yamagi 0e35097cd0
Merge pull request #2 from smcv/spelling
Fix some spelling mistakes detected by Debian's Lintian tool
2019-05-09 18:18:36 +02:00
Yamagi Burmeister d7457925db Don't allow 'give health 0' or even less.
Giving the player < -1 health and increasing it to something
above 0 without closing the console breaks the player state.
2019-04-27 19:20:18 +02:00
Yamagi Burmeister c13036df55 Update the CHANGELOG for 1.06. 2019-02-04 14:36:05 +01:00
Yamagi Burmeister 08a9c4fdc1 Import Q_strlcpy() and replace several dangerous strncpy() with it. 2018-10-25 19:37:41 +02:00
Yamagi Burmeister 1e37bf132d Switch some annoying and wrang GCC warnings off. 2018-10-25 19:34:12 +02:00
Yamagi Burmeister 2d6dd4117d Call strcasecmp() and not Quake IIs home made version.
The home made version is crap and not const correct.
2018-10-25 19:31:06 +02:00
Yamagi Burmeister b67a392cb6 Split the gibs per frame limit between gibs and debris.
The gibs and debris per frame must be limited to prevent server mem
map overflows. Until now debris and gibs were handled the same, the
debris spawned by rockets and grenates could prevent the actual gibs
of the killed monster from spawning.

Before this change 20 entities were spawned at max. Now up tp 40
enties can be spawned. This needs some testings.
2018-10-07 12:02:20 +02:00
Simon McVittie f5449a9185 Link ctf game.so to math library
It uses sqrt() and similar functions.

Signed-off-by: Simon McVittie <smcv@debian.org>
2018-07-21 11:41:34 +01:00
Simon McVittie 3e82fe1ef2 Use SOURCE_DATE_EPOCH for reproducible build
Similar to https://github.com/yquake2/yquake2/pull/142 in the yquake2
engine/base game.

Signed-off-by: Simon McVittie <smcv@debian.org>
2018-07-21 11:39:13 +01:00
Simon McVittie 097dd56e35 Fix some spelling mistakes detected by Debian's Lintian tool
Signed-off-by: Simon McVittie <smcv@debian.org>
2018-07-21 11:33:41 +01:00
Yamagi Burmeister ca0e44b2a4 Replace strcasecmp() by Q_strcasecmp() for better MSVC compaibility.
This was suggest by @ajbonner in xatrix issue #11.
2018-03-23 15:55:43 +01:00
Yamagi Burmeister 5447354a76 Fix a potential crash in ai_run_melee() and ai_run_missile().
This was found and fixed by Maraakate.
2017-09-07 18:12:41 +02:00
Yamagi Burmeister 6f1b2f101f Enforce static linkage of libgcc on Windows. 2017-06-16 13:48:58 +02:00
Yamagi Burmeister 327cea19f5 Update the CHANGELOG for 1.04. 2017-05-25 11:47:56 +02:00
Yamagi Burmeister df29a29633 Reorder conditionals to please unoptimizing compilers
This was requested by Maraakate. This is likely a noop, since even
early compilers from th 1970th supported simple optimiziations like
this.
2016-12-20 15:22:57 +01:00