75 Commits

Author SHA1 Message Date
yvt
6f59b7e3fd
clang-format 2019-05-20 00:18:56 +09:00
notafile
6e24902324 Remove accidental line, add comment 2019-05-19 17:07:57 +02:00
NotAFile
a3e4810a18 Add support for ExtInfo Packet 2019-05-19 16:29:22 +02:00
yvt
720be50ff4
Show additional info (estimated remaining time, etc.) when loading map 2019-05-19 17:08:09 +09:00
yvt
cd3304ef24
Display a progress bar when receiving a map
Replaces the old useless "num-bytes-loaded/16777216" message with a
real progress bar.
2019-05-19 16:25:39 +09:00
NotAFile
49a4c0dd4f remove duplicate handling of VersionGet 2019-05-04 20:21:44 +02:00
NotAFile
2ecd3ced44 detect end of map transfer with state packet
Previously, the end of map transfer was detected by a number of fallible
heuristics, including checking if the map is loadable on every non-map
packet, when a timeout had been reached, or the map size given by the
server was reached. This broke in a number of scenarios, including when
an unexpected packet was sent.

Instead, we now detect the end of the map transfer when we receive a
state packet, as intended by the protocol.
2019-05-04 20:14:42 +02:00
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
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
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
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
f016bd7cee Prepare for an increased number of player slots
Related: #630
2017-09-04 14:39:37 +09: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
a6bb4ac7e2 Support the enhanced variant of Version Get/Send packet
Fixes #561.
2017-02-11 16:24:53 +09:00
yvt
2554eaad57 Refactor, add more checks 2017-01-05 04:11:42 +09:00
yvt
a7b9909b2e Refactoring 2017-01-05 03:03:39 +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
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
2eb9e35c65 Apply clang-format to all non-external source files 2016-12-03 18:23:47 +09:00
Tomoaki Kawada
18f3e81fd1 Convert space indentations to tabs 2016-11-20 19:13:00 +09:00
Tomoaki Kawada
6a7af96daf Refactor setting variables 2016-11-19 21:27:13 +09:00
Tomoaki Kawada
89748d6bc6 Reduced compiler warnings 2016-07-15 19:40:05 +09:00
Marco Schlumpp
f6d8c22e13 Attempt to fix yvt/openspades#234.
Starting in d856bcadaa09cf6722547007c3329b43ab1480d7 the client reads
one byte less than necessary.
2014-04-20 13:00:05 +02:00
yvt
d856bcadaa Reduce compiler warnings 2014-04-06 22:42:17 +09:00
yvt
43facd32c4 cg_protocolVersion now cannot be changed in-game 2014-04-02 15:14:56 +09:00
yvt
817ce53c23 Statistics (fix #202) 2014-03-31 23:09:47 +09:00
yvt
3f9d454460 Made "Awaiting for state" translatable 2014-03-30 02:44:43 +09:00
yvt
bfcf96ad13 Fix #73 2014-03-30 01:42:18 +09:00
yvt
2af2826918 Show ping (fixing #146) 2014-03-16 01:23:30 +09:00
yvt
8ebc1ffe15 Fix #190 2014-03-13 14:01:53 +09:00
yvt
740db71d24 Make some strings translatable 2014-02-28 16:22:00 +09:00
yvt
2fdf763481 Option to allow use of unicode or not 2013-12-31 14:06:17 +09:00
yvt
9e638bb054 CP437 support 2013-12-29 23:08:57 +09:00
yvt
9843323697 Fixed some crashes on certain 0.76 push server 2013-12-09 02:49:57 +09:00
learn_more
1a42e828de ModeType instead of dynamic_cast for gamemodes (dynamic_cast is slowwww) 2013-12-07 16:58:39 +01:00
learn_more
50d30c1311 Merge branch 'master' of https://github.com/yvt/openspades 2013-11-17 22:01:08 +01:00
yvt
9765fa2251 ensures the held block color is synchronized when a local player spawns 2013-11-16 15:25:08 +09:00
learn_more
3924a43625 limbo menu responds to 1,2,3 2013-11-11 00:51:13 +01:00
UnrealIncident
2c90222186 Merge remote-tracking branch 'learn_more/master' 2013-11-07 04:50:12 +10:00
learn_more
8b054c4fac Fix welcome message not showing up when connecting to pysnip 2013-11-06 18:54:55 +01:00
UnrealIncident
aa62a020b6 Initial OS support. 2013-11-07 00:40:03 +10:00
learn_more
2a24e662cd helper function for weapon scripts (less duplicate code)
cleanup some register code
angelscript exceptions have a stacktrace now
optimize some networking code (only create packet when a packet is gonna be sent, instead of every frame
2013-11-03 17:13:49 +01:00
learn_more
d6b78ac6c4 fix playerid 32 bug? 2013-10-08 22:01:07 +02:00
learn_more
d41b91631f fix a shitton of warnings 2013-09-20 23:03:32 +02:00