Ryozuki
0f3411f8fa
fix wording
2019-04-19 11:46:54 +02:00
Ryozuki
f37f8a8268
add all character flags to ddnetnetwork character
2019-04-19 11:17:28 +02:00
bors[bot]
bbf485a9ac
Merge #1628
...
1628: Make client know about other solo players, fixes #258 r=heinrich5991 a=Ryozuki
When another player is in solo and you are not, you could notice a weird collision and also the hook moving a little towards the solo player. This as been fixed.
It also applies m_ClShowOthersAlpha to other players whenever you are on solo or others are.
It uses the protocol extension thingy.
fixes #258
Co-authored-by: Ryozuki <ryo@ryozuki.xyz>
Co-authored-by: Learath <learath2@gmail.com>
2019-04-18 23:03:52 +00:00
12pm
997e01bf31
Fix mute typo
2019-04-18 20:54:22 +02:00
Learath
d6bfef2cc0
Use a NetObj instead of a system message
2019-04-17 23:47:32 +02:00
Dennis Felsing
6e74d9d728
remove debugging
2019-04-17 14:12:35 +02:00
Dennis Felsing
b425495f45
Fix draggers
2019-04-17 12:58:53 +02:00
def
9dddb290dd
File score: Implement negative top5 ( fixes #1631 )
2019-04-15 18:55:33 +02:00
Dennis Felsing
aad18ebb86
Merge pull request #1624 from ChillerDragon/pr_refactor_mute
...
Refactor mute and vote mute code
2019-04-13 17:52:55 +02:00
ChillerDragon
deaab4bb4b
Add functions instead of goto
2019-04-12 19:50:02 +02:00
Ryozuki
c686ceea53
Merge branch 'master' into pr_fix_solo
2019-04-12 16:34:43 +02:00
Ryozuki
3556830b9a
fix solo prediction
2019-04-12 16:29:13 +02:00
Ryozuki
7e43120b6e
make the client aware of other players solo status
2019-04-12 16:16:21 +02:00
bors[bot]
826a7781ae
Merge #1621
...
1621: Actually enable -Wuseless-cast r=heinrich5991 a=def-
It's not supported in C and we only checked using a C compiler.
Co-authored-by: Dennis Felsing <dennis@felsin9.de>
2019-04-12 00:08:19 +00:00
ChillerDragon
a6d00973e1
Refactor mute and vote mute code
2019-04-11 20:10:04 +02:00
Dennis Felsing
cde07b420b
Implement changes suggested by -Wuseless-cast
...
But don't enable it yet because I'm not sure what the best way is.
2019-04-11 19:54:43 +02:00
bors[bot]
cde3781184
Merge #1616
...
1616: Minor CFileScore improvements r=heinrich5991 a=def-
It's written using STL strings and files intead of using system. Didn't change any of that because of the risk of breaking something unintentionally.
Co-authored-by: def <dennis@felsin9.de>
2019-04-11 09:41:01 +00:00
def
0a286b1d94
File score: report file opening errors
2019-04-11 08:15:14 +02:00
fokkonaut
15658b3b10
removed brackets
2019-04-10 22:13:10 +02:00
def
279d6e60ca
No duplicate () on rank
2019-04-10 22:05:44 +02:00
fokkonaut
b92607eb7d
fix no score when joining when using file based score
2019-04-10 21:40:31 +02:00
Dennis Felsing
ed34dcfec5
Merge pull request #1602 from def-/pr-explain-tiles
...
Explain game tiles and entities in editor (fixes #1600 )
2019-04-10 17:38:22 +02:00
bors[bot]
b05b268a6a
Merge #1598 #1601 #1605 #1606 #1607 #1609
...
1598: Fix home/end keys in console r=heinrich5991 a=def-
1601: 2 more tries to force DB to respond in UTF8 (fixes #1599 ) r=heinrich5991 a=def-
1605: Fix memory leak in draggers r=heinrich5991 a=def-
1606: Always initialize m_InfosLoaded r=heinrich5991 a=def-
otherwise it's uninitialized and then read, found by valgrind --tool=memcheck
1607: Enable a few more GCC warnings r=heinrich5991 a=def-
1609: Fix C90 compatibility on Windows r=heinrich5991 a=def-
Co-authored-by: def <dennis@felsin9.de>
2019-04-09 22:09:18 +00:00
def
708019c675
Grammar fix: Catched -> Caught
2019-04-08 21:54:33 +02:00
def
173b43d487
Fix memory leak in draggers
2019-04-08 21:54:12 +02:00
12pm
7b95d38bf3
Fix crash when draggers don't have a number
2019-04-08 21:47:22 +02:00
def
eda16acbca
Explain game tiles and entities in editor ( fixes #1600 )
...
- Explanations by Lady Saavik taken from https://ddnet.tw/explain/
- CCW/CW were mixed up in enum names, fixed
- Make sure that the texts fits, otherwise reduce font size
- Still need explanations for Portal tiles
2019-04-08 19:39:56 +02:00
Ryozuki
be708d0498
a mess
2019-04-07 21:18:43 +02:00
Ryozuki
813c24bf29
add m_IsSolo and fix hook col
2019-04-07 18:58:49 +02:00
bors[bot]
4931d00201
Merge #1589
...
1589: Remove some code duplication in CSaveTee::LoadString r=def- a=def-
by using a switch-case with fallthroughs, seems like the perfect use case.
Co-authored-by: def <dennis@felsin9.de>
2019-04-07 12:01:59 +00:00
bors[bot]
5d9d0d7d35
Merge #1587
...
1587: Small fixxings r=heinrich5991 a=ChillerDragon
Co-authored-by: ChillerDragon <chillerdragon@gmail.com>
2019-04-06 21:08:40 +00:00
def
e27679ebcc
Remove some code duplication in CSaveTee::LoadString
...
by using a switch-case with fallthroughs
2019-04-06 20:28:47 +02:00
Ryozuki
52b58c3d5b
final fix
2019-04-06 18:38:25 +02:00
Ryozuki
69fd7f1767
fix and add gameuuid
2019-04-06 18:37:25 +02:00
Ryozuki
fb398ebcbf
better this way
2019-04-06 18:19:56 +02:00
Ryozuki
beeda4d7bb
fix warnings
2019-04-06 18:18:46 +02:00
Ryozuki
b92b2f1878
save telegun on /save
2019-04-06 18:13:11 +02:00
ChillerDragon
905204781b
Cleanup if nesting
2019-04-06 17:22:15 +02:00
12pm
a7ef921e3f
Add playerflags, dnsbl, and ips for non-admins in status
2019-04-03 15:07:05 +02:00
def
ef0e685496
Make timestamp consistent in scores
...
The motivation is to have the exact same timestamp for every member
finishing in a team and the team rank as well. This makes the database
more consistent and tooling easier.
2019-04-02 20:18:40 +02:00
Dennis Felsing
2dd78b6568
Command completion for /times, /points and /top5points
...
Still not implemented for file based servers of course
2019-03-29 14:39:48 +01:00
Dennis Felsing
d12ad9d05f
Merge pull request #1548 from def-/pr-vote-mute
...
Remove vote mute after it expired (fixes #1544 )
2019-03-28 23:38:45 +01:00
def
09412f43f7
Remove vote mute after it expired ( fixes #1544 )
2019-03-28 23:35:51 +01:00
def
c489fb61be
After a char was killed stop processing further tiles
2019-03-28 23:29:34 +01:00
12pm
34c99f5944
Don't enforce own votes when moderating
...
It's counterintuitive, and hence way too risky
2019-03-21 02:57:22 +01:00
Dennis Felsing
1add4a0819
Only print team join message when not in team already ( fixes #1524 )
2019-03-20 14:01:32 +01:00
def
1e4890c499
More error checking in system.c ( fixes #1317 )
2019-03-19 23:16:29 +01:00
Ryozuki
6ed3276d20
fix formatting
2019-03-19 20:32:01 +01:00
Ryozuki
e00e9f126a
add vote_mutes
2019-03-19 20:25:21 +01:00
Ryozuki
43a1990e5d
ConVoteUnMute -> ConVoteUnmute
2019-03-19 20:18:11 +01:00
Ryozuki
d469654629
add vote_unmute and display on chat
2019-03-19 20:07:33 +01:00
12pm
679628c4eb
Exclude current map on random map votes
2019-03-18 15:10:27 +01:00
bors[bot]
d8e8a21a30
Merge #1469
...
1469: Don't use strtok. Close #1468 r=heinrich5991 a=Learath2
^
Co-authored-by: Learath <learath2@gmail.com>
2019-03-11 11:56:26 +00:00
bors[bot]
26dc51a272
Merge #1466
...
1466: Add colors for authed players. Deprecates #1299 r=def- a=Learath2
Not sure if a snap item is the best idea for this but it should help with not sending the data more then needed and keeping it properly updated. The colors aren't great now but we can fix that easily.
![image](https://user-images.githubusercontent.com/490500/53680889-607bf780-3cf2-11e9-84a0-579160e9e170.png )
Co-authored-by: Learath <learath2@gmail.com>
2019-03-06 13:44:28 +00:00
Learath
c4af290df5
Don't use strtok. Close #1468
2019-03-05 12:46:29 +03:00
Learath
548e9969b2
Add colors for authed players. Deprecates #1299
2019-03-02 13:50:33 +03:00
def
afa1e8adc5
Uninvite kicked/spectated players from team ( fixed #1464 )
2019-03-01 22:11:00 +01:00
def
887d1c8401
Simplify some server messages
2019-02-27 19:46:01 +01:00
bors[bot]
dfa16e37ba
Merge #1462
...
1462: Remove empty else branch r=def- a=ChillerDragon
Co-authored-by: ChillerDragon <chillerdragon@gmail.com>
2019-02-25 19:21:04 +00:00
ChillerDragon
a34d9633ad
Remove empty else branch
2019-02-25 20:16:05 +01:00
def
21a938d983
Update credits
2019-02-15 11:10:44 +01:00
def
374529b452
Update credits
2019-02-15 10:59:34 +01:00
Dennis Felsing
6f3d261b73
Merge pull request #1441 from trml/pr_sync_weapon_input
...
Sync weapon input with other input
2019-02-14 10:27:52 +01:00
Dennis Felsing
698a3f1c5a
Merge pull request #1443 from ChillerDragon/AutobanKnownBots
...
Add autoban depending on client version
2019-02-13 12:04:51 +01:00
trml
b9f301018f
Remove nesting
2019-02-11 22:25:51 +01:00
Learath
109983da21
Remove use of strtok
2019-02-11 18:53:30 +01:00
Learath
0086452757
Use str_in_list, generalize further
2019-02-11 18:52:40 +01:00
bors[bot]
ea6f76b383
Merge #1438 #1447 #1448
...
1438: Add man pages with asciidoc r=def- a=Ryozuki
Fixes #1240
I added a simple script to generate the man pages.
To edit the man pages in the future, you must edit the `.adoc` files and then run generate.sh
You need asciidoc package to generate the manpages.
`sudo apt install asciidoc`
http://asciidoc.org/
Writing plain troff is a pain in the ass.
1447: Allow vote-kicking players with same auth level r=def- a=12pm
This is meant to help with dealing with trolls on test server since everyone can log into rcon there.
Shouldn't cause any problems anywhere else, I think.
1448: Require sv_vote_kick_min only on team 0 kick votes r=def- a=12pm
Co-authored-by: Ryozuki <ryo@ryozuki.xyz>
Co-authored-by: 12pm <30786226+12pm@users.noreply.github.com>
2019-02-10 10:23:08 +00:00
12pm
f2cbb9d87d
Make teleporting to where you look at convenient
2019-02-09 19:32:45 +01:00
12pm
1cf73b3eec
Abort votes only if auth level is higher
2019-02-08 19:43:07 +01:00
12pm
10e4fcc185
Require sv_vote_kick_min only on team 0 kick votes
2019-02-08 18:44:11 +01:00
12pm
4b1651f18c
Allow vote-kicking players with same auth level
2019-02-08 16:57:39 +01:00
ChillerDragon
c0157db98d
Neutral kick reason
2019-02-06 14:53:22 +01:00
ChillerDragon
eaf61b662d
Never ban known bots
2019-02-06 14:49:41 +01:00
ChillerDragon
3f8e9613f7
Fix style
2019-02-06 13:06:28 +01:00
ChillerDragon
f5b551adee
Fix empty string check (ty Travis)
2019-02-04 23:33:25 +01:00
ChillerDragon
8ddb487e2b
Use consisten seperators (comma not semicolons)
2019-02-04 23:12:05 +01:00
ChillerDragon
03a20d6406
Add IServer::Ban
2019-02-04 23:09:14 +01:00
ChillerDragon
867b0a66ce
Fixings thanks to @Learath2
2019-02-04 22:16:09 +01:00
ChillerDragon
069b1763dd
Add autoban depending on client version
2019-02-04 20:46:42 +01:00
trml
3f9d30af0f
Sync weapon input with other inputs
2019-01-29 20:58:25 +01:00
12pm
3d01e59878
Fix switch_open description
2019-01-27 20:09:33 +01:00
def
22ea30a7f5
Fix crash
2019-01-10 21:11:23 +01:00
def
f5e8b9d822
Fix potential inconsistencies in rank/teamrank
2019-01-10 09:32:23 +01:00
def
7f8b1ecf21
Fix saves sql insert format for file fallback
2018-12-30 00:31:29 +01:00
def
bcdec941da
Update view target when spectating with chat open
...
Thanks to ReiTW for reporting and illustrating the bug:
https://www.youtube.com/watch?v=LKicYqtqJbQ
2018-12-29 00:05:05 +01:00
def
87fa394daa
Add Christmas skin event for client
2018-12-23 22:58:30 +01:00
def
a38d0068e1
Fix specvoted/pausevoted behaviour
...
Now switches immediately to the voted person if there is one instead of
switching back to unpaused first
2018-12-23 22:57:28 +01:00
Dennis Felsing
fcf2a16aef
Add toggle_tune
2018-12-20 09:18:22 +01:00
Dennis Felsing
e076d07f5f
Merge pull request #1408 from ddnet/sneaky
...
Sneaky code (TODO: Also mark 708?)
2018-12-18 12:16:53 +01:00
Dennis Felsing
5026ba555d
Fallback for /save when DB unreachable
2018-12-18 12:07:27 +01:00
def
6846a6ecad
Fixes and stress improvements
2018-12-17 20:05:50 +01:00
Dennis Felsing
f83a9be610
Sneaky code (TODO: Also mark 708?)
2018-12-17 14:55:58 +01:00
Dennis Felsing
e9ee74a941
Merge pull request #1402 from ddnet/remove-modhelp
...
Remove /modhelp (fixes #1401 )
2018-12-17 14:42:07 +01:00
Dennis Felsing
42d7f58d08
sv_join_vote_delay: Don't affect participating in map votes
...
Since they are already restricted by veto right
2018-12-12 10:41:31 +01:00
Dennis Felsing
5c18d6c481
Remove /modhelp ( fixes #1401 )
2018-12-12 10:05:44 +01:00
Dennis Felsing
b224a4dafe
Improve sv_join_vote_delay against vote bots
...
- Prolong to 5 minutes
- also affects participating in votes
2018-12-11 10:29:36 +01:00
Dennis Felsing
fabd559746
Clamp Spectator ID
2018-12-11 09:23:12 +01:00
ChillerDragon
aef7d76158
Allow to use pausevoted as normal pause
2018-12-10 23:20:29 +01:00
jupeyy
58e583e642
fix laser/rifle bonce delay, when server time(server ticks) are high, caused by unprecise floating point arithmetic
2018-12-07 11:06:44 +01:00
def
1a66fb9c17
Serverside special handling for 9999 second time
2018-11-21 23:21:35 +01:00
Ryozuki
90118b5a07
make it one line
2018-11-13 13:05:15 +01:00
Ryozuki
41fc33406a
fix laser telegun through TELEINWEAPON tile
2018-11-10 20:47:11 +01:00
Ryozuki
62dbda204e
fix entities clear and remove tele-activator from gametile as it doesn't make sense.
2018-11-04 15:50:56 +01:00
Ryozuki
674d3f00e0
add support for blue teleport gun
2018-11-03 10:26:20 +01:00
Ryozuki
3d202883c9
tele-activator: make delay be able to specify a weapon
2018-11-03 10:26:19 +01:00
Ryozuki
ddf2e6af36
add tele-activator to the switch layer
2018-11-03 10:26:19 +01:00
Ryozuki
c831b5e0c1
change tele-blocker to tele-activator
2018-11-03 10:26:18 +01:00
Learath
571b069b91
Small cleanup of *Mute functions
2018-10-08 21:29:33 +03:00
Learath
5b95eddca1
DRY with net_addr_comp_noport
2018-10-08 21:04:04 +03:00
Learath
1073b72965
Ignore DNSBL on "empty" servers.
2018-10-08 01:59:07 +03:00
Ryozuki
dc4179b056
it's safe to delete a null pointer
2018-08-24 20:02:23 +02:00
ChillerDragon
273c545f4e
Remove useless semicolon
2018-08-24 16:17:23 +02:00
Dennis Felsing
13aa154d47
Revert "Rewrite stopper code a bit"
...
This reverts commit 4ee5c5a781
.
2018-08-24 09:34:54 +02:00
def
58927375fc
Add message for failed database connection
2018-08-22 22:27:01 +02:00
Dennis Felsing
02e5fa20a0
Revert "Fix stoppers while retaining backward-compatibility"
...
This reverts commit e2d3e353cf
.
2018-08-22 08:33:28 +02:00
Dennis Felsing
d60b0db632
Revert "Add mapbug "stoppers-passthrough@ddnet.tw""
...
This reverts commit 25e86851d3
.
2018-08-22 08:33:21 +02:00
Dennis Felsing
6f75cff582
Merge pull request #1259 from heinrich5991/pr_ddnet_mapbugs_sha256
...
Also use sha256 for the mapbugs stuff
2018-08-21 09:07:57 +02:00
Dennis Felsing
f8e1056ea4
Merge pull request #1258 from heinrich5991/pr_ddnet_stopper_fix
...
Fix stoppers while retaining backward-compatibility
2018-08-21 09:06:22 +02:00
heinrich5991
67d36b695d
Also use sha256 for the mapbugs stuff
2018-08-19 12:12:11 +02:00
def
311e89c79d
Fix votes
2018-08-16 21:42:10 +02:00
heinrich5991
25e86851d3
Add mapbug "stoppers-passthrough@ddnet.tw"
...
This can be set for maps that rely on actually passing through stoppers.
2018-08-16 17:54:55 +02:00
heinrich5991
e2d3e353cf
Fix stoppers while retaining backward-compatibility
...
Stopper behavior is only changed when the player would otherwise go
entirely through the stopper. Players can still enter a stopper as far
as the stopper can still affect them. One-way blockers have a bigger
range, and thus allow tees to enter furtherly.
A possible (manual) test map for this is test_stoppers.map, sha256sum
ed8be386e54a03d7bd7ed69fdd962c86f51f654427972d58d492c8905c8fbdb7, crc
48812a51.
2018-08-16 17:54:55 +02:00
heinrich5991
4ee5c5a781
Rewrite stopper code a bit
...
Remove the whole copy-and-paste mess.
A seemingly ineffective and apparently code block has been removed.
2018-08-15 17:47:07 +02:00
heinrich5991
5c4e819e44
Use str_startswith
, str_endswith
instead of ad-hoc implementations
2018-07-26 14:18:23 +02:00
Dennis Felsing
473048dac0
Update credits
2018-07-25 09:04:47 +02:00
bors[bot]
e571dc8d93
Merge #1200
...
1200: Share libcurl resources across requests r=def- a=heinrich5991
Use the libcurl-share interface to share DNS cache and connections
between different requests.
If compiled with OpenSSL, libcurl can only be safely used from multiple
threads for OpenSSL >= 1.1.0, but this problem is not newly introduced
by this commit: According to libcurl-thread(3):
>OpenSSL <= 1.0.2 the user must set callbacks.
>
>https://www.openssl.org/docs/man1.0.2/crypto/threads.html#DESCRIPTION
>
>https://curl.haxx.se/libcurl/c/opensslthreadlock.html
Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
2018-07-19 09:15:10 +00:00
Edgar
ee756f2b1a
apparently 0 is used and NULL not...
2018-07-17 19:25:38 +02:00
Edgar
ef4505e96d
we don't use nullptr in tw code
2018-07-17 19:24:10 +02:00
Ryozuki
4d7e493391
another style fix
2018-07-16 18:57:33 +02:00
Ryozuki
9cf0a60e3a
remove useles brackets
2018-07-16 00:53:36 +02:00
Ryozuki
97ecd62214
fix timakro review
2018-07-16 00:43:54 +02:00
Tim Schumacher
a3a4d4f519
Fix teleport rifle "backtracking" logic, now pretty sure about this
2018-07-15 23:33:49 +02:00
Tim Schumacher
ea68ef201f
Initialize m_TeleGunTeleport to false
2018-07-15 23:03:30 +02:00
Tim Schumacher
bbcc9aca0c
Fix stopper teleport gun bug
2018-07-15 12:02:48 +02:00
Ryozuki
890c3a511e
remove unused telegun function
2018-07-15 10:22:04 +02:00
Ryozuki
b811d18422
make laser telegun use the new function
2018-07-15 10:22:03 +02:00
Ryozuki
2bee4a9807
remove comments and stuff that shouldn't be there
2018-07-15 10:22:02 +02:00
Ryozuki
c074fdd30f
fix all known bugs
2018-07-15 10:22:01 +02:00
Ryozuki
747946b291
fix style a bit
2018-07-15 10:22:00 +02:00
Ryozuki
50c84a60f7
add teleport gun/grenade/laser
2018-07-15 10:21:59 +02:00
Learath2
e2314a33c8
Let the receiver decide instead
2018-07-12 12:58:33 +02:00
Learath2
5a5c563a20
Require DNSBL check on /modhelp
2018-07-12 12:50:27 +02:00
heinrich5991
8d04e7e5e1
Share libcurl resources across requests
...
Use the libcurl-share interface to share DNS cache and connections
between different requests.
If compiled with OpenSSL, libcurl can only be safely used from multiple
threads for OpenSSL >= 1.1.0, but this problem is not newly introduced
by this commit: According to libcurl-thread(3):
>OpenSSL <= 1.0.2 the user must set callbacks.
>
>https://www.openssl.org/docs/man1.0.2/crypto/threads.html#DESCRIPTION
>
>https://curl.haxx.se/libcurl/c/opensslthreadlock.html
2018-07-11 20:17:21 +02:00
yangfl
81a39c229b
Fix typo
2018-07-10 17:29:02 +08:00
bors[bot]
1cebe615dd
Merge #1195
...
1195: Fix votespec on /pause (Fixes #1193 ) r=heinrich5991 a=ChillerDragon
I also thought about using a `` if (str_find(m_aVoteCommand, "set_team"))`` in front of the pause reset.
But then i thought its ok to unpause the VoteVictim every time.
I didn't test but i could belive that this can cause some unwanted unpause for a player with the id of the last VoteVictim on a server type vote for example. Thats why i also reset the ``m_VoteVictim`` to -1 to avoid this.
Co-authored-by: ChillerDragon <chillerdragon@gmail.com>
2018-07-10 07:26:08 +00:00
ChillerDragon
819ae338d8
Improved pause fix (thanks to heinrich5991)
2018-07-10 00:08:57 +02:00
ChillerDragon
e9807fe47c
Fix votespec on /pause ( Fixes #1193 )
2018-07-08 04:39:36 +02:00
heinrich5991
925aff21d4
Fix all the header guards and adjust the script a little
2018-07-06 16:11:38 +02:00
Dennis Felsing
2adff3eca8
Merge pull request #1136 from heinrich5991/pr_ddnet_sha256
...
Use more secure hash function for map downloads
2018-06-27 08:15:19 +02:00