187 Commits

Author SHA1 Message Date
yvt
585cbfce1c Improve random number generation
The global RNG state is now protected from simultaneous accesses by
employing a mutex.

Performance sensitive code requiring generation of a large number of
random numbers can utilize `LocalRNG`. This is not thread-safe but
provides a much greater throughput. `LocalRNG` is seeded by the global
RNG only at construction time.
2018-09-17 23:48:38 +09:00
yvt
35bcea5110 Indicate that you carry the intel
Fixes #601.
2017-12-30 23:47:47 +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
660066fc2f Rewrite the camera control logic
- Fixes #664
- Fixes #520
2017-12-05 15:42:24 +09:00
David Carlier
4864f07937 Reducing some compilation warnings. 2017-11-18 21:15:07 +00: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
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
notafile
1578bdf157 add ability to push messages to CenterMessageView 2017-09-04 00:36:22 +02:00
yvt
23231dd2a4 Fix some crashes 2017-02-22 08:19:14 +09:00
yvt
f52f840256 Add translator comments 2017-02-11 16:38:24 +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
ac33a21a08 Fix #158 2017-01-08 19:03:09 +09:00
yvt
a7b9909b2e Refactoring 2017-01-05 03:03:39 +09:00
yvt
2ecbd554b4 Support Ogg Opus audio files (.opus) on macOS 2016-12-18 00:45:17 +09:00
yvt
d505bfae91 Expose “FontManager” to the scripting environment 2016-12-16 05:05:23 +09:00
YVT
2d0ae3b817 FreeType2 font renderer (#484)
* Backport ngspades’s FreeType2 font renderer

* Change system fonts

* Fix SWImage::Update

* Preliminary custom TTF/OTF font support

* Fix font rendering

* Adjust design

* Update devpak

* Fix to compile on Linux

* Update .travis.yml

* Update external libraries

* Update .travis.yml

* Attempt to fix Travis CI build

* Add missing sudo to travis.yml

* Nevermind the changes, it didn't work

* Update .travis.yml

* Update .travis.yml and CMakeLists.txt
2016-12-11 23:18:16 +09:00
Tomoaki Kawada
e1d6e84a96 Initialize grenadeVibrationSlow 2016-12-04 01:05:06 +09:00
Tomoaki Kawada
2eb9e35c65 Apply clang-format to all non-external source files 2016-12-03 18:23:47 +09:00
VelocityRa
30d133ce31 Use better random generator 2016-11-22 23:08:35 +02:00
Tomoaki Kawada
6a7af96daf Refactor setting variables 2016-11-19 21:27:13 +09:00
Tomoaki Kawada
787c89f0b1 Merge remote-tracking branch 'origin/master' into fix-up 2016-11-06 20:42:42 +09:00
L0L022
8dc0a1de1b Add mumble support 2016-08-03 17:08:45 +02:00
Tomoaki Kawada
3f7fcee586 Reorganise resource files 2016-07-16 00:14:59 +09:00
Tomoaki Kawada
89748d6bc6 Reduced compiler warnings 2016-07-15 19:40:05 +09:00
Bridger Maskrey
70f15430cd Server Disconnect Screen
Sources/Client/Client.cpp:
  + Added call to Client::DrawDisconnectScreen() in client destructor

Sources/Client/Client.h:
  + Added new prototype Client::DrawDisconnectScreen()

Sources/Client/Client_Draw.cpp:
  + Added function declaration for Client::DrawDisconnectScreen()
  * New Localization Introduced: "Client":"Disconnecting..."

Resources/de/openspades.po:
  + Added rudimentary German translation for "Client":"Disconnecting..."

Resources/ja/openspades.po:
  + Added rudimentary Japanese translation for "Client":"Disconnecting..."

Resources/ko/openspades.po:
  + Added rudimentary Korean translation for "Client":"Disconnecting..."

Resources/pl_PL/pl_PL:
  + Added rudimentary Polish translation for "Client":"Disconnecting..."

Resources/pot/openspades.pot:
  + Added translation entry for "Client":"Disconnecting..."

Resources/ru/openspades.po:
  + Added rudimentary Russian translation for "Client":"Disconnecting..."
2016-01-09 21:42:44 -05:00
yvt
40f8be07c0 Realistic camera focal control mode
Set `cg_manualFocus` to `1` to use it. By default, mouse wheel adjusts the focal length, and pressing mouse wheel button enables auto-focus.
2015-06-20 17:10:26 +09:00
yvt
66627a4de2 Support for third person view and so on. 2015-01-23 18:26:00 +09:00
yvt
063efdde63 Additional smoke textures looking like explosion 2014-05-08 02:41:10 +09:00
yvt
d856bcadaa Reduce compiler warnings 2014-04-06 22:42:17 +09:00
yvt
817ce53c23 Statistics (fix #202) 2014-03-31 23:09:47 +09:00
yvt
27da8c5ffb Add include (#214) 2014-03-24 23:50:07 +09:00
yvt
11a6e9d802 Update sounds 2014-03-22 01:37:14 +09:00
yvt
fee4b486b6 #168 2014-03-13 01:44:58 +09:00
yvt
25b8a2f53d More wade SFXs 2014-03-12 04:04:07 +09:00
yvt
a57213d5d3 Merge remote-tracking branch 'origin/master' 2014-03-11 04:09:07 +09:00
yvt
cf8d4f3cb0 Alerts 2014-03-11 03:42:04 +09:00
Marco Schlumpp
87713bf1af Added varargs header. 2014-03-09 19:25:08 +01:00
yvt
a600236b76 Merge branch 'master' of https://github.com/learn-more/openspades into learn-more-master
Conflicts:
	Sources/Client/Client.cpp
2014-03-09 23:16:20 +09:00
learn_more
d1f4250b10 fix some windows build issues
Fixes #169 by ignoring the activation key.
2014-03-09 14:32:45 +01:00
yvt
2599d14900 Refactor 2014-03-09 21:43:38 +09:00
yvt
77fccf390a Merge pull request #151 from noway421/patch-1
Realy fixed spectator mouse now
2014-03-08 15:42:31 +09:00
yvt
3003e83fcb Fixed serious bug that switching players in spectating mode might cause program to enter an infinite loop 2014-03-08 04:24:27 +09:00
yvt
e63379bbdd Player cannot use tools soon after sprinting 2014-03-08 02:18:34 +09:00
yvt
6f1c3ca8de Fixed #138 (set cg_reduceSmoke to 1) 2014-03-08 01:25:16 +09:00
yvt
306397a82a Fixed #153 2014-03-08 00:58:44 +09:00
yvt
49944fab9a Fixed #155 2014-03-08 00:23:26 +09:00
Way, No
bf901e23e5 Update Client.cpp
Reverted to Toumal code, but now it's applied to all spec modes.
2014-03-04 12:16:41 +10:00
Way, No
81023fa5d3 Realy fixed spectator mouse now
I revived e481553 commit back, add invert support (`if (!cg_invertMouseY) y = y;`) and applied this to all spectator mode. 
Commented condition is unnecessary now. 

Now both spectator modes behaves exactly like in Ace of Spades.
2014-03-04 02:34:50 +10:00
Toumal
27b11900ba Made spectator mouse invert work as expected from other games 2014-03-02 19:07:12 +01:00