386 Commits

Author SHA1 Message Date
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
David Carlier
1d970ec34d make the build possible on OpenBSD.
modified version of the pk download script.
isnan belongs to std namespace in C++11 standard.
2016-12-04 20:01:37 +00:00
Marco Schlumpp
b8c9265ebc
Fix compilation on newer libstdc++.
Newer versions only declare isnan in the std namespace when the cmath
header is used.
2016-12-03 20:07:16 +01:00
Tomoaki Kawada
e1d6e84a96 Initialize grenadeVibrationSlow 2016-12-04 01:05:06 +09:00
Tomoaki Kawada
624d291f79 Update #includes
- Reorder them so that system libraries come first
- Use C++-style headers (`<cmath>`) instead of C-style headers (`<math.h>`)
2016-12-03 19:04:58 +09:00
Tomoaki Kawada
ebd79c0099 Change #include style
All `#include`s to other subsystem now use angle brackets, e.g., `#include <Core/Math.h>`.
2016-12-03 18:49:07 +09:00
Tomoaki Kawada
2eb9e35c65 Apply clang-format to all non-external source files 2016-12-03 18:23:47 +09:00
VelocityRa
e63f3d856b Change spectatorTeamId back to 255 2016-12-02 15:05:42 +02:00
VelocityRa
ac35fcea08 Handle localization of 'Spectators' string properly 2016-12-01 00:08:20 +02:00
VelocityRa
0f5b4dab56 Display Spectators in Scoreboard 2016-11-30 22:52:28 +02:00
YVT
478a4460e8 Merge pull request #460 from VelocityRa/master
Use better random generator.
2016-11-23 19:36:33 +09:00
VelocityRa
30d133ce31 Use better random generator 2016-11-22 23:08:35 +02:00
Tomoaki Kawada
4d964d6595 Add more camera shake (cg_shake 2) and additional movements of view weapons 2016-11-22 01:25:22 +09:00
Tomoaki Kawada
18f3e81fd1 Convert space indentations to tabs 2016-11-20 19:13:00 +09:00
Tomoaki Kawada
5e3b41b8ed Provide more game experience options
- Fixes #448. (Setting `cg_animations` to `0` disables the ADS animation)
2016-11-20 18:13:49 +09:00
Tomoaki Kawada
6a7af96daf Refactor setting variables 2016-11-19 21:27:13 +09:00
YVT
f1f88d3e18 Fix to compile with MSVC 2015 2016-11-18 04:44:57 -08:00
Tomoaki Kawada
1e32f6d72a Fix #337 2016-11-11 22:32:03 +09:00
Tomoaki Kawada
2bc2bcac26 Water shader: level 3
Screen-space reflections (hybrid w/planar reflections) & refractions!
2016-11-11 02:53:48 +09:00
Tomoaki Kawada
866267daad More recoils
Improves the AoS 0.75 compatibility.
2016-11-06 23:09:16 +09:00
Tomoaki Kawada
1b0ee28add cg_centerMessage now defaults to 2 2016-11-06 22:16:56 +09:00
Tomoaki Kawada
4047b613f1 Remove the vertical fog
Improves the AoS 0.75 compatibility.
2016-11-06 22:15:37 +09:00
Tomoaki Kawada
787c89f0b1 Merge remote-tracking branch 'origin/master' into fix-up 2016-11-06 20:42:42 +09:00
L0L022
03373a68be Use namespace spades 2016-08-05 13:53:16 +02:00
L0L022
da6db0e948 Use pragma once 2016-08-05 13:48:50 +02:00
L0L022
047f89f30f Remove useless comments 2016-08-03 20:36:18 +02: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
YVT
2b5c49d17b Merge pull request #401 from willismonroe/patch-1
use std::isnan
2016-07-14 14:53:53 +09:00
willismonroe
fc557aeb10 use std::isnan
This fixed the build on Linux for me.
2016-07-01 19:54:17 -07:00
willismonroe
6593371254 use std::isnan
This fixed building on Linux (Ubuntu 16.04) for me.
2016-07-01 19:51:38 -07:00
Samuel Walladge
0ac59fdbae fixed isnan not declared 2016-03-07 09:37:15 +10:30
YVT
355d1f2e82 Merge pull request #384 from Chameleonhider/master
Configure-able player name drawing
2016-03-05 19:59:05 +09:00
Nick Renieris
cc075dcd09 Fix linker error on VS2015 (unresolved symbol) 2016-02-17 22:09:27 +02:00
Chameleonhider
39a7c74fa6 Pressing sprint doesn't stop anymore from using tool / weapon
Pressing sprint key used to prevent using tool/weapon. Now sprint key
must be pressed together with movement keys (while not crouching) to
prevent you from using tool/weapon.
2016-02-11 10:43:55 +02:00
Chameleonhider
83b061fedf Makes local kills on killfeed black
Turns icons of local kills (both for kill and death) black. Black colour
stands out the most. Useful after having disabled center messages.
2016-02-10 20:02:43 +02:00
Chameleonhider
e0d2f0b762 Configure-able center message
Center message takes up too much space on smaller screens (e.g. mine is
800x600), especially on killstreaks or intense CTF servers. So, you can
either disable all center messages ("0"), enable all default ones ("1")
or disable your kill center messages("2").

To make killfeed easier to read it is advised to make local kill icons
be black (stands out the most).
2016-02-10 19:34:09 +02:00
Chameleonhider
1f90d95d09 Revert "Ignore changes in here"
This reverts commit 67453fc32dccf7708f7393ed84774cdd2c17d734.
2016-02-10 18:43:55 +02:00
Chameleonhider
cae574d972 Configure-able player name drawing
Currently, hottracked player names are drawn on top of crosshair
together with distance to them. Center of screen is important region and
thus it should be configure-able.  This allows you to disable drawing
name on the whole or just disable drawing the distance. Also possible to
position the name wherever you want.
2016-02-10 18:35:55 +02:00
Chameleonhider
67453fc32d Ignore changes in here
extern int palette[][] is giving link trouble when building on win7
VS2013 Express.
This change did not fix palette behaviour for scoreboard.
2016-02-10 18:11:23 +02:00
YVT
6c8f428c47 Merge pull request #379 from CenturionFox/upstream
Server Disconnect Screen
2016-01-30 02:31:24 +09:00
YVT
815445c19e Revert "#373 Fill weapon clip when ammo is restocked." 2016-01-30 01:07:10 +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
Ignacio Alvarez
c3f10e9f11 #373 Fill weapon clip when ammo is restocked. 2015-12-12 20:23:06 -03:00
yvt
665dde5d7d Fixed to compile 2015-06-20 20:40:45 +09:00
yvt
70a1dd4b36 Fixed to compile 2015-06-20 18:52:11 +09:00
yvt
9f3cdbb70f Fixed compile error (::isfinite undefined) 2015-06-20 18:45:18 +09:00
yvt
95488c00d6 Auto-focus speed is now adjustable 2015-06-20 18:44:23 +09:00