Commit graph

3405 commits

Author SHA1 Message Date
Simon
2524be5017 Attempt to unlock headtracking in intermission 2022-02-03 23:04:39 +00:00
Simon
2c9b286da5 Several good fixes / improvements
- Positional tracking in Death Cam mode (so much nicer now)
- All 2D HUD elements now draw in both eyes
- HUD elements based on models are now 3D (face etc)
- Better 4:3 screen for virtual screen
2022-02-03 21:32:09 +00:00
Simon
6f3875e9a2 Many fixes / improvements
- When you die you now won't lose head tracking (I won't spoil what does happen now...)
- Lightning Gun Beam is now correct w.r.t cross hair
- Enemy Lightning Gun Beams fire in the direction they are aiming (not in the direction you are aiming!!)
- Sped up crosshair in the menu, as it was too sluggish still
- Restored OG rail gun
- Removed Vertex Lighting cvar
- After match, the Win screen should be shown in the front of player
2022-02-02 23:31:59 +00:00
Simon
b7d89ff02b Multiple changes
- Weapon alignment values courtesy of  SkillFur (thanks!)
- Lightning gun now renders lightning in the correct direction
- Many cvar changes
- Rail Gun and Rocket Launcher use newer implementation
- Changed projection so that UI elements draw clearer
- Made scoreboards easier to read but HUD slightly closer
2022-02-01 23:35:05 +00:00
Simon
2e97da5dda Small tweaks
- HUD models draw correctly now
- Increased the HUNK allocation limit so no more failues with Hunk_Alloc
- adjusted positional factor for adjusted worldscale
- scaled all weapons to 75% as that feels a bit better until such a time as better scaling/position is agreed
2022-01-31 23:32:27 +00:00
Simon
1b8dbcb6dc Several Changes
- world scale cvar - defaulted to 32.0
- extra latency mode enabled by default
- used sound implementation (OpenSLES) from RTCW which should eliminate the slight delay that SDL/OpenAL seems to have
- multiple cvar changes courtesy of vr_bummser
2022-01-30 23:36:14 +00:00
Simon
4b4ee4ec6e First big commit - pretty much playable throughout 2022-01-29 15:45:18 +00:00
XsparkieX
3dc2dac2e5 Updated README.md to reflect build steps for Windows. 2021-02-01 22:20:59 +01:00
XsparkieX
149c836b94 Updated run.bat to handle paths a bit more gracefully with pushd/popd. 2021-02-01 22:20:30 +01:00
XsparkieX
7f867d4df3 Set ANDROID_SDK_ROOT so gradle won't fail at finding the SDK root on initial pull. 2021-02-01 21:51:36 +01:00
XsparkieX
a86c0bf269 Configured default NDK version in build.gradle. 2021-02-01 21:50:01 +01:00
XsparkieX
bcc28a0ae3 Added support for building for Android on Windows. 2021-02-01 21:37:07 +01:00
XsparkieX
3fbe1a61e1 Added VrApi to gitignore. 2020-09-27 11:28:41 +02:00
XsparkieX
3f4d8f30e7 Do not hardcode the number of cores to use for compilation. 2020-09-06 17:07:05 +02:00
XsparkieX
b678cbd3e3 Renamed spark package name to be my full nickname (sparkie). 2020-09-06 16:41:20 +02:00
XsparkieX
e2c4d40ab0 Updated gradle version. 2020-09-06 14:42:06 +02:00
XsparkieX
7d983acbf3 Updated README.md 2020-09-06 14:00:14 +02:00
XsparkieX
791e90b22a Initial Oculus Quest support added. 2020-09-06 13:40:32 +02:00
Tim Angus
c0b15329e3 Add status badge to README 2020-08-29 21:52:06 +01:00
Tim Angus
71cfe5f442 Remove old CI system configurations 2020-08-29 21:40:57 +01:00
Tim Angus
19172e1cd2 GitHub Actions setup 2020-08-29 21:40:57 +01:00
Tim Angus
909ab13aeb Make LCC path resolution more robust 2020-08-29 21:40:57 +01:00
Tim Angus
c0d797f308 Simplify glsl -> C stringification 2020-08-29 21:40:57 +01:00
Jack Slater
2b42f0bdab
Merge pull request #447 from HappyFacade/patch-1
Add C syntax highlighting to readme
2020-07-15 00:56:26 -10:00
Zachary J. Slater
af66e02932 Update README.md
Added various sponsorships, I hope that hotlinking works fine!
2020-07-07 00:36:27 -10:00
Happy
f1e077c532
Add C syntax highlighting to readme 2020-04-07 08:18:15 -07:00
Tom Kidd
f2c61c14c4
Merge pull request #428 from tomkidd/master
Additional updates to the Xcode project
2020-02-11 16:41:56 -06:00
Tom Kidd
a03cb319a2 Figured out method of referencing GLSL generated C files outside of code directory 2020-02-10 17:20:17 -06:00
r-a-sattarov
daae32ddfd E2K: fixed build by MCST lcc compiler when using USE_CURL=1 option 2019-12-07 08:16:15 -05:00
Zack Middleton
a6e66700e1 Fix duplicate team join center print for bots and g_teamAutoJoin
My 2017 commit f7c3276 ("Fix g_teamAutoJoin and g_teamForceBalance")
caused BroadcastTeamChange() to be run an extra time when bots connect.
This caused a duplicate center print message to be sent to all clients.

g_teamAutoJoin 1 sent an extra center print when any player or bot
connects. Though that is the original behavior from Team Arena.

Team set during connection no longer sends broadcast as it will be
sent later in ClientConnect().

Reported by Pascal Brochart (pbrochart) as causing clients to be
kicked due to server command overflow if many bots join at the
same time.
2019-11-16 01:38:38 -06:00
Tom Kidd
a545f81403 Further tweaks to Xcode project
Now works as well as possible in Xcode 11
2019-10-29 00:14:26 -05:00
Zack Middleton
dc0c3e7bdf Fix team orders menu not listing clients with lower clientnums
If bots join before the local client (dedicated server) the bots would
not be listed in the Q3A team orders menu and so they could not be given
orders using the menu.

The Q3A team orders menu got local client's team while looping through
all clients. Ignoring any bots with clientnum lower than the local
client. Get local client's team before the loop so all bots are
listed.
2019-10-28 23:13:57 -05:00
Tom Kidd
b340827153 Updated to latest recommended build settings, increased deployment target to 10.7
One of the settings (CLANG_ENABLE_OBJC_WEAK) doesn't like 10.6 anymore apparently.
2019-10-28 22:30:56 -05:00
Zachary J. Slater
34c0722b5e
Merge pull request #423 from tomkidd/master
Fix for macOS Catalina screen resolution issue thanks to Tom Kidd!
2019-10-26 18:16:20 -10:00
Tom Kidd
c2025d94c5 Several updates to xcode project files for Xcode 11
A few more things to go
2019-10-26 22:14:14 -05:00
Tom Kidd
de7123acee Fix for macOS Catalina screen resolution issue
Issue #422
2019-10-11 22:34:09 -05:00
Zack Middleton
f717a8396e Fix lightning gun handling for corpses and single player podiums
The lightning trail is fired from the real non-predicted entity for
the local client so it can show the server location. The real client
entity was always used to check if a player entity is firing the
lighting gun. This potentially causes corpses and players on single
player podiums with lightning gun to render the lightning trail if
the real (living) client is firing the lightning gun.

I'm not aware of this causing any issues without modifying the game
logic. Corpses have no weapon and it's not possible to fire during
single player intermission.
2019-10-11 20:55:57 -05:00
Zachary J. Slater
4d82b8b525
Create Funding.yml
TODO: add more of these things https://help.github.com/en/articles/displaying-a-sponsor-button-in-your-repository
2019-08-22 18:17:02 -10:00
Bernhard M. Wiedemann
a96f32eba2 q3rcc: Allow to override build date
Allow to override __DATE__ and __TIME__ with SOURCE_DATE_EPOCH
in order to make builds reproducible.
See https://reproducible-builds.org/ for why this is good
and https://reproducible-builds.org/specs/source-date-epoch/
for the definition of this variable.

This behavior is what gcc already does.
2019-07-11 14:20:31 +01:00
Zack Middleton
350b8f9c7c Restore OpenGL 1.1 support (GL_CLAMP)
GL_CLAMP (clamp to border) was changed to GL_CLAMP_TO_EDGE in 2008
(f2baf359). In 2018 (ce1d5406) I made OpenGL 1.2 be required since
GL_CLAMP_TO_EDGE is used.

Restore support for GL_CLAMP in order to support OpenGL 1.1 like vanilla
Quake 3 does. This should allow using the default Microsoft Windows
GDI Generic OpenGL 1.1 driver (untested but it won't fail the version
check at least).

From gpuinfo.org, it looks like drivers stopped advertising support for
GL_SGIS_texture_edge_clamp so use a version check in addition to the
extension check.

r_allowExtensions 0 disables using GL_CLAMP_TO_EDGE in the opengl1
renderer. GL_CLAMP support wasn't added to the opengl2 renderer.
2019-05-28 22:44:57 -05:00
Zack Middleton
0fbde293db Remove erroneous newlines from Com_Error in sdl_glimp.c 2019-05-28 21:01:28 -05:00
Zack Middleton
2a2646fe43 Fix IQM quat normalize fail case
Should only happen with invalid models though.
2019-05-28 21:00:02 -05:00
Zack Middleton
95b9cab4d6 Fix warnings that IQM blendWeights may not be initialized 2019-04-29 15:01:47 -05:00
Zack Middleton
d404519cce Fix rendering IQM models between model frames
For lerped frames (refEntity_t frame not equal oldframe) IQM joint
matrices may have incorrect axis scale. This can cause significant model
distortion. The matrix lerp is linear causing each vector to move in a
straight line between frames instead of arcing like a circle. Each joint
frame can have a different scale so can't just normalize the joint
matrix.

Store joints as quaternions and spherical lerp between them and then
convert to a matrix. For my test model, setting up the skeleton is four
times slower now but it still seems to be fast enough to be usable.
2019-04-29 15:01:47 -05:00
Zack Middleton
d13d06424e OpenGL2: Disable r_cubeMapping if not OpenGL 3.0+
r_cubeMapping requires textureCubeLod() which is only in OpenGL 3.0
(GLSL 1.30) and later. It's not in OpenGL ES 3.0 / GLSL ES 3.00.
This needs to be checked before R_InitImages() so can't just check in
GLSL_InitGPUShaders().
2019-04-16 11:48:10 -05:00
Zack Middleton
9fcb2bb336 Override video mode list in Team Arena UI
Override the video mode list in the Team Arena data files with detected
modes from SDL like in ioquake3's Q3 UI. Add the aspect ratio to the
end of the video resolution (i.e., "640x480 (4:3)"). Add the current
(custom) video mode to the list.

Before when using a custom resolution in the menu you could not change
the video mode using the mouse because the resolution text was blank.
Now custom video resolution is displayed and can be clicked.
2019-04-16 00:02:27 -05:00
Zack Middleton
c61417b8e2 Add current (custom) resolution to Q3 UI video mode list
Custom resolution is displayed when entering system options menu and
settings can be changed without being forced to change video resolution.
2019-04-15 23:50:46 -05:00
Zack Middleton
9b4dcc809e OpenGL2: Fix compiling lightall GLSL on OpenGL 2.1
textureCubeLod() requires OpenGL 3.0 / GLSL 1.30. Added in
2018-12-21 commit e5da13f146
"OpenGL2: r_cubemapping 2 for box cubemap parallax."

Report by brugal and Simon McVittie.

Bug-Debian: https://bugs.debian.org/923226
2019-04-15 23:40:32 -05:00
Ane-Jouke Schat
44b18d72ac Fix PRINT_ERROR print level missing from CL_RefPrintf
It's used for one message in the OpenGL2 renderer.
2019-04-15 23:13:36 -05:00
James Canete
d068e1dce1 Add r_parallaxMapShadows. 2019-02-06 01:10:42 -08:00