1042 Commits

Author SHA1 Message Date
NotAFile
4ea1e50ae0 Add Counter for world updates per Second (#707)
* Add Counter for world updates per Second

This work was just done for personal testing and is probably not up to the
required code standards. Nonetheless, I have decided to send a PR as it is very
useful information and a good starting point.

* add MarkWorldUpdate method
2018-01-06 19:38:14 +09:00
yvt
03cfbdee12 Fix the wrong reference to a config variable 2017-12-31 18:35:12 +09:00
yvt
35bcea5110 Indicate that you carry the intel
Fixes #601.
2017-12-30 23:47:47 +09:00
yvt
5948ef1a2a Exclude unknown configs in the in-game config editor
Fixes #693.
2017-12-30 21:02:36 +09:00
yvt
4b4e8ec217 Eliminate an undefined behavior 2017-12-30 20:44:57 +09:00
yvt
f702eca1d8 Fix crash on server connection 2017-12-30 04:28:50 +09:00
yvt
28cd9a3c87 clang-format 2017-12-29 20:49:10 +09:00
yvt
4cb5c578c5 Eliminate compiler warning 2017-12-29 20:47:20 +09:00
yvt
3086f03cf9 Accept handshake packets anytime
Fixes #644.
2017-12-29 20:46:35 +09:00
yvt
77dfedb533 Fix #678 for real 2017-12-29 20:35:32 +09:00
yvt
336d476e8d Attempt to enable follow cam when no one's there no longer leaves you in an invalid state 2017-12-29 20:34:31 +09:00
yvt
a8dbe92423 Rename a config variable to follow the naming convention 2017-12-29 20:17:43 +09:00
yvt
2f5a21be1e Prevent a dead player from being first-person spectated
Fixes #679.
2017-12-29 20:15:23 +09:00
yvt
4bd819adcd Fix spectator display and keyboard input
- Fixes #681 (Pressing space while in free-camera mode does not move up).
- Fixes #678 (Have seconday fire cycle through the player list backwards
  in sepctator mode).
- "Stop following a player" is bound to "R" (reload) by default.
- Add help messages displayed on the screen.
2017-12-29 20:06:49 +09:00
yvt
38ad676a29 Fix to compile on a debug build 2017-12-29 19:29:26 +09:00
yvt
842d34c92f Display more HUD elements in the first-person spectate mode
Fixes #682.
2017-12-29 19:21:44 +09:00
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