Commit graph

33 commits

Author SHA1 Message Date
Yamagi
47b93a284e
Merge pull request #19 from abalfoort/issue-18
Issue 18: cleanup
2023-06-17 17:07:06 +02:00
abalfoort
0faa46986a Issue 18: cleanup 2023-06-11 12:29:18 +02:00
Yamagi
1a264e6934
Merge pull request #17 from Dremor8484/Dremor8484-3zb2-doublebarrelshotgun-aimfix
Update weapon.c
2022-12-03 17:16:18 +01:00
Dremor8484
fa0927bfe7
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:53:34 +01:00
Yamagi
d379380931
Merge pull request #14 from Dremor8484/Dremor8484-3zb2-doublebarrelshotgun-aimfix
Update weapon.c
2022-06-11 16:58:15 +02:00
Dremor8484
5f8d7c4c2c
Update weapon.c
3zb2-doublebarrelshotgun-aimfix
2022-06-10 19:32:01 +02:00
Daniel Gibson
d84ffdee15 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...)

Also enforce usage of SSE math on i386 and rename OSTYPE to YQ2_OSTYPE
and ARCH to YQ2_ARCH in the Makefile for a little more consistence
with the other Makefiles.
2021-01-14 03:39:28 +01:00
Yamagi
cc28c64fb7
Merge pull request #11 from mjr4077au/BuildRepair
Fix build issues with cmake.
2020-04-21 12:44:24 +02:00
Yamagi
1e85112b93
Merge pull request #10 from mjr4077au/Client_AimFixWithCVAR
Implement accurate-aiming CVAR in 3zb2 game code.
2020-04-21 12:44:12 +02:00
Mitchell Richters
484b06fead Fix build issues with cmake. 2020-04-21 08:19:09 +10:00
Mitchell Richters
926d01ccd0 Implement accurate-aiming CVAR in 3zb2 game code. 2020-04-21 08:13:22 +10:00
Yamagi
7b46fb5269
Merge pull request #5 from NeonKnightOA/cleanup
Refactoring to match the current yq2 projects.
2019-06-11 11:50:40 +02:00
Yamagi
aaed1bbf51
Merge pull request #3 from NeonKnightOA/routesplit
Routes splitted from the assets zip. Better for maintenance.
2019-06-11 11:50:25 +02:00
Neon_Knight
7ec1fd3154 Refactoring to match the current yq2 projects. 2019-06-09 11:56:45 -03:00
Neon_Knight
03bf2b11f6 Adding the rest of the known routes. 2019-06-08 20:39:56 -03:00
Neon_Knight
791c77aa9f Routes splitted from the assets zip. Better for maintenance. 2019-06-08 20:23:29 -03:00
Yamagi
365f8a2da4
Merge pull request #1 from earth-metal/master
File-loading improvements + original keyboard config
2018-09-28 07:38:04 +02:00
earth-metal
b28d18c3d3 Improve recognition of lines with bot-characters in 3ZBConfig.
The original formatting of 3ZBConfig was causing 3 "blank" bot
characters to be loaded into the initial slots of the list of bot
characters.  Decrementing the counter when it reaches an improperly
formatted line prevents this.
2018-09-27 08:20:46 -04:00
earth-metal
f2c7daaa3b Original "addbot.cfg" asset added. 2018-09-26 22:23:16 -04:00
earth-metal
1bff78ae37 Use a generic path for loading *.chn files. 2018-09-26 22:21:32 -04:00
Yamagi Burmeister
2a630eaa5a Add a small README. 2017-11-05 15:21:38 +01:00
Yamagi Burmeister
578a99ccf9 Add the original assets and routes. 2017-11-05 15:14:20 +01:00
Yamagi Burmeister
e4f3f07dfc Use a generic path for 3ZBConfig.cfg.
Otherwise the file will not be loaded on Unix. And trust the VFS that it
does the right thing(tm).
2017-11-05 15:01:44 +01:00
Yamagi Burmeister
9174879424 Fix build on Windows. 2017-11-05 14:48:34 +01:00
Yamagi Burmeister
685d0443c5 A lot of source code fixes.
This is enough that the code builds without too many scary warnings on
modern compilers, the game.so loads on Linux and working bots are
spawning in. Windows support is comming in a later commit.
2017-11-05 14:37:52 +01:00
Yamagi Burmeister
09724d90c0 Add a CMakeLists.txt.
This allows me to load the source into Jetbrains Clion. :)
2017-11-05 14:02:32 +01:00
Yamagi Burmeister
991bbcb87b Fix the build with modern compiles.
Global variables must not be static if they're used in other translation
units. I wonder why this ever worked.

This only fixes errors. There're a lot of warning left.
2017-11-05 14:02:32 +01:00
Yamagi Burmeister
c160418e06 Convert sources from SHIFT-JIS to UTF-8.
SHIFT-JIS was common in 19990, but in 2017 it's just annoying. Convert
the source files with `nkf $file > ${file}_new && mv ${file}_new $file`.
2017-11-05 14:02:32 +01:00
Yamagi Burmeister
1e20e30e61 And add a .gitignore. 2017-11-05 14:02:32 +01:00
Yamagi Burmeister
15ef3a78e3 Add a GNU Makefile. 2017-11-05 14:02:24 +01:00
Yamagi Burmeister
77e5773596 Add the LICENSE file.
This is the standard Quake II SDK license.
2017-11-05 14:02:24 +01:00
Yamagi Burmeister
b84f610e23 Add the source of 3zb2 version 0.97d.
This is the latest version of 3zb2, released on 1999/11/30. This code is
licensed through the Quake II SDL license.
2017-11-05 14:02:16 +01:00
Yamagi Burmeister
ae948ffbfe A new repo for the 3rd Zigock Bot II source and assets. :) 2017-11-05 12:12:27 +01:00