1026 Commits

Author SHA1 Message Date
yvt
ff2b6587a1 Display MapView in the free floating camera spectating mode
Fixes #682 partially.
2017-12-29 19:06:45 +09:00
yvt
9f464d718d Fix #690 2017-12-22 22:38:34 +09:00
yvt
36fa59fe01 Refactor MainScreenHelper
- Rename methods to follow the general naming convention
- Use glorious lambdas in place of a 😱functor😱
- Make other minor modifications
- Use a smart pointer
- clang-format
- Remove an unused variable
- Remove redundant copies
- Use atomics in place of a heavy-weight mutex
2017-12-22 22:00:52 +09:00
yvt
d7768ae0d5 Fix "invalid player ID" error after map change
Fixes #66. Wow, it's been 4 years since the issue was reported for the
first time.

*Inhale* yay!
2017-12-16 23:38:54 +09:00
yvt
024d39fdcd Fix to compile on GCC 2017-12-15 23:12:48 +09:00
yvt
49cc61c573 Use more smart pointers and modern language constructs 2017-12-15 23:05:08 +09:00
yvt
13995e3c63 Fix a memory leak caused by the AngelScript binding code
Fixes #687.
2017-12-15 22:31:39 +09:00
yvt
660066fc2f Rewrite the camera control logic
- Fixes #664
- Fixes #520
2017-12-05 15:42:24 +09:00
YVT
fdcb77789e
Merge pull request #675 from Rootmars/fix-first-person-zoom
First-person spectate now zooms with the player
2017-12-05 13:03:20 +09:00
yvt
8c38843485 Do not display block placement cursor when unable to place blocks
Fixes #660.
2017-12-05 12:46:34 +09:00
md
bdcfbbec27 First-person spectate now zooms with player 2017-11-29 20:11:10 -08:00
md
67af71d1ff Alert player when building above highest z-level.
Made it so that an alert is displayed when the player attempts
to build beyond the highest z-level (e.g. above the platform
in babel.)

This also fixes a bug where blocks are consumed when attempting
to do such thing.
2017-11-27 19:50:05 -02:00
David Carlier
4864f07937 Reducing some compilation warnings. 2017-11-18 21:15:07 +00:00
David Carlier
3c5016dc6c On OpenBSD SDL_GetBasePath is not really implemented
due to lack of kernel support of exe self-retrieval.
2017-10-14 15:56:36 +01:00
YVT
e93ea55e3f Adjust the gain of hit feedback sound (#659)
Fixes #652.

The sound gain is now constant and does not change regardless of the
distance. This imitates the behavior often seen in other first-person
shooters.

Switching from "Play" to "PlayLocal" only affects the way the gain is
computed since "HeadshotFeedback.opus" is a stereo sound file and there-
fore not spatialized by any known audio backends.

This also introduces a config variable named "cg_hitFeedbackSoundGain"
that allows users to adjust the volume of the hit feedback sound.
2017-09-17 14:15:20 +09:00
NotAFile
266d141e04 First person enhancements (#656)
* only switch first-person mode while spectating

closes #655

* use first person view for first-person spectating

* don't spectate specators; refactor
2017-09-17 14:15:06 +09:00
yvt
228f1b1ee5 Remove C++ definitions of some config variables
The following config variables are no longer accessed by the C++ code
directly:

- cg_lastQuickConnectHost
- cg_playerName (not to be confused with cg_playerNames)

The AngelScript code still uses them, though.
2017-09-11 21:03:18 +09:00
yvt
7d0d8e3704 Create Weapon instances based on the current GameProperties, not a cvar 2017-09-11 20:59:39 +09:00
yvt
821c392ade Add protocol version parameter to GameProperties’ constructor 2017-09-11 20:49:21 +09:00
NotAFile
bfe62a0a2c Skip dead players when spectating between spawns (#653)
* Skip dead players when spectating between spawns

This makes e.g. spectating the last player alive in arena easier

* Add skip dead players config option
2017-09-08 01:39:22 +09:00
Teodor
0cb053c15d Add a headshot bang sound like in classic (#648)
* Add satisfying headshot bangs like in classic

* add whack sound

* Update Client_Update.cpp

* Add files via upload

* Moved to Resources/Sounds/Feedback

* Play only if inflicted by LocalPlayer

Also lowered volume

* Update AUTHORS

* Update Credits.inc
2017-09-05 18:27:05 +09:00
yvt
78834f70b7 Update external library URL
Fixes #621.
2017-09-04 14:59:37 +09:00
yvt
f016bd7cee Prepare for an increased number of player slots
Related: #630
2017-09-04 14:39:37 +09:00
notafile
1578bdf157 add ability to push messages to CenterMessageView 2017-09-04 00:36:22 +02:00
yvt
a8ae6c1098 Clear the kill count when a player leaves
Fixes #620.
2017-09-03 16:59:33 +09:00
yvt
a853a58631 Remove corpses after respawn on a certain game mode
Fixes #145.
2017-09-03 16:56:01 +09:00
yvt
aa22e4b25a Show "player joined team" message for the Spectator team
Fixes #635.
2017-09-03 16:00:30 +09:00
YVT
bc979a32e1 Update Clipboard.cpp
(Hopefully) this fixes #603
2017-08-18 18:25:40 +09:00
yvt
ca892698e3 Minor fixes
- Remove unnecessary `volatile`
- Replace some operations with atomic ones for soundness
- Clean up
- Avoid certain UBs
- Typo
2017-06-25 21:15:27 +09:00
roboman2444
08add66f94 added geometry shader support. Untested, and i dunno if there is any real use for it 2017-05-21 21:01:32 -04:00
David Carlier
abd2812e1b got an issue on arch linux/gcc6
runtime errors due to the shifting operations done in eNet
2017-04-25 22:07:20 +00:00
yvt
8d02ce3d36 Oops 2017-03-23 15:35:04 +09:00
yvt
fbab073f03 Implement safer TLS deinitialization 2017-03-23 15:34:32 +09:00
yvt
0267df0463 Implement safer dispatch queue deletion
Fixes #604.
2017-03-22 13:24:27 +09:00
YVT
8dae5eb1a7 Merge pull request #595 from devnexen/leaks
Fixing few memory leaks + fixing pthread symbol missing
2017-03-04 22:25:06 +09:00
YVT
091bd187e7 Merge pull request #589 from devnexen/angelscript_fix_for_clang
Fix the build for clang as it s C++11 compliant too.
2017-03-04 22:24:27 +09:00
YVT
05ac2cf4a8 Merge pull request #594 from devnexen/identify_bsd_screen_help
Identify *BSD for the startup screen
2017-03-04 22:24:10 +09:00
David Carlier
657f765542 Fixing few memory leaks + fixing pthread symbol missing 2017-03-04 11:18:12 +00:00
yvt
f5507b78f9 Fix to compile on Windows 2017-03-04 02:06:53 -08:00
yvt
28be55615a Add a “portable” configuration for the Windows version 2017-03-04 17:05:45 +09:00
yvt
cd6ec61f80 (Hopefully) fixes the issue #368 2017-03-04 16:33:21 +09:00
David Carlier
67e2465b6e Identify *BSD for the startup screen 2017-03-03 19:34:13 +00:00
yvt
6f0955349e Add unsupported options (cg_viewWeaponX, cg_viewWeaponY, cg_viewWeaponZ)
Fixes #591.
2017-03-04 03:44:57 +09:00
yvt
03b5d7869e Fix recoil motion 2017-03-04 03:36:10 +09:00
yvt
146c5ead24 clang-format 2017-03-04 03:32:21 +09:00
yvt
aaa3bc2656 Fix #582 2017-03-04 03:32:14 +09:00
David Carlier
38bc882c8b fix the build for clang as it s C++11 compliant too. 2017-02-28 20:58:03 +00:00
yvt
5b76e1420b Fix #584 2017-02-27 01:59:53 +09:00
yvt
d78b91a92f Fix for MSVC 2017-02-25 10:51:47 -08:00
yvt
1743c2c764 Update recoil/spread amount to match measured values 2017-02-25 23:08:36 +09:00