606 Commits

Author SHA1 Message Date
yvt
9f464d718d Fix #690 2017-12-22 22:38:34 +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
49cc61c573 Use more smart pointers and modern language constructs 2017-12-15 23:05:08 +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
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
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
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
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
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
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
1743c2c764 Update recoil/spread amount to match measured values 2017-02-25 23:08:36 +09:00
yvt
8e8f2a8772 (Hopefully) fixes #577 2017-02-25 21:19:19 +09:00
yvt
23231dd2a4 Fix some crashes 2017-02-22 08:19:14 +09:00
yvt
cdd794ed9c Fix crash 2017-02-20 04:09:10 +09:00
yvt
2b230c0598 Fix #254 2017-02-20 04:00:08 +09:00
yvt
b4a3837578 Tracers for SWRenderer (temporary)
Fixes #229.
2017-02-20 03:55:27 +09:00
yvt
cf1404c8ae Regenerate block’s health after a certain period of time
Fixes #148
2017-02-20 03:30:10 +09:00
yvt
fb6b0ae838 Change default input parameters to (approximately?) match the original 2017-02-20 03:12:10 +09:00
yvt
971432a373 Recoil adjustment 2017-02-20 03:11:54 +09:00
yvt
84e1292526 Fix blood sprite spawning location 2017-02-18 20:00:39 +09:00
yvt
64d7362228 Update kill feed message in the chat log file 2017-02-11 20:24:05 +09:00
yvt
f52f840256 Add translator comments 2017-02-11 16:38:24 +09:00
yvt
a6bb4ac7e2 Support the enhanced variant of Version Get/Send packet
Fixes #561.
2017-02-11 16:24:53 +09:00
yvt
38529b73c6 Fix #551
Thanks @kmsiapps for pointing this out!
2017-02-11 03:46:31 +09:00
yvt
812a30b9e2 Fix #539
This is a quick fix; the spectator system might need to be refactored or reworked
2017-02-10 00:01:21 +09:00
yvt
66c4b6b91a Limit the range of cg_fov
Fixes #549.
2017-01-29 19:58:49 +09:00
yvt
27d9320476 More accurate weapon firing interval control 2017-01-26 16:27:49 +09:00
David Carlier
c282f0bf72 While loading a map, a tack overflow is triggered either
in NetLog or LogMessage so here we put some limit to
the buffer.
2017-01-14 18:20:53 +00:00
yvt
a88d160aa2 Weaken the radial blur that occurs while a player’s firing 2017-01-14 04:44:11 +09:00
yvt
3e4c92bd8c Bring scoreboard to the front so it won’t be covered by center-aligned messages
Fixes #535 (?)
2017-01-12 22:06:16 +09:00
yvt
93ed881449 Redesign HUDs 2017-01-09 22:56:55 +09:00
yvt
8349b4c9d8 Tracers on MapView
Fixes #139.
2017-01-09 05:00:05 +09:00
yvt
6d6e55b7f8 Change appearance of tracers 2017-01-09 03:45:37 +09:00
yvt
ac33a21a08 Fix #158 2017-01-08 19:03:09 +09:00
yvt
0389540cd0 Fix #378 2017-01-08 18:02:21 +09:00
yvt
65752b4198 Remove cg_smp 2017-01-08 01:30:24 +09:00