1842 Commits

Author SHA1 Message Date
yvt
c2b00aa464 Update openspades.pot 2017-12-29 21:07:01 +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
YVT
514889be74
Merge pull request #673 from Rootmars/master
Alert player when building above highest z-level
2017-12-01 13:45:55 +09:00
YVT
81e7a4f5cc
Merge pull request #676 from fantoro/patch-1
Added the PPA to README
2017-12-01 13:38:14 +09:00
fantoro
b3ebac4157
Added the PPA to README 2017-11-30 15:50:01 +01: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
YVT
b68a17c148
Merge pull request #671 from devnexen/code_fixes
Reducing some compilation warnings.
2017-11-19 13:16:29 +09:00
David Carlier
4864f07937 Reducing some compilation warnings. 2017-11-18 21:15:07 +00:00
YVT
28eb271eaf
Merge pull request #668 from devnexen/openbsd_fix
On OpenBSD SDL_GetBasePath is not really implemented
2017-10-31 15:37:46 +09: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
yvt
22cda2a1fe Prevent client commands from being sent to the server
Client commands (e.g, /r_bloom 1) typed in the chat window are no longer
send to the server.

Also, the function CheckConfigVariableSet was renamed to
CheckAndSetConfigVariable to make its intent more clear.

Fixes #657.
2017-09-10 20:38:50 +09:00
notafile
79689848dd Show Dead players in gray on scoreboard
This is done for all cases, but that is probably a bad idea. While this
does not matter in public games, in small tournaments this could be an
advantage. Ideally, the server could disable giving players this
information
2017-09-07 20:32:24 +02: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
d8916aa5ca Update translations 2017-09-05 18:11:05 +09:00
yvt
a5a9392f50 Fix #651 2017-09-05 16:28:39 +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
YVT
70fb4979a7 Merge pull request #649 from NotAFile/master
add ability to push messages to CenterMessageView
2017-09-04 14:00:22 +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
c03e869e2b Update README.md 2017-08-31 22:46:43 +09:00
Flavio Monteiro
d924d75ba1 Fix Resources/Scripts/Base/Utils.as weird formatting 2017-08-28 19:16:46 -03:00