Zwelf
87d422df5a
Remove unused onChangeTeamState
2021-01-11 14:29:01 +01:00
bors[bot]
c8b4ce9c92
Merge #3465
...
3465: Reset practice after team saved and got killed r=Zwelf a=def-
As reported by Polector on Discord
<!-- What is the motivation for the changes of this pull request -->
## Checklist
- [ ] Tested the change ingame
- [ ] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test if it works standalone, system.c especially
- [ ] Considered possible null pointers and out of bounds array indexing
- [ ] Changed no physics that affect existing maps
- [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck ) (optional)
Co-authored-by: def <dennis@felsin9.de>
2021-01-11 13:09:18 +00:00
def
4520ea3bb7
Reset practice after team saved and got killed
...
As reported by Polector on Discord
2021-01-11 00:23:36 +01:00
Alexander Akulich
f16937b361
gamecontext.h: Remove unused player.h include
...
See the upstream commit 24bda2faa0
2021-01-10 14:25:12 +03:00
Alexander Akulich
164cb9907a
player.h: Remove unused character.h include
...
See the upstream commit 24bda2faa0
2021-01-10 14:25:12 +03:00
Zwelf
b256250b7b
Synchronize database thread via atomic_bool instead of use_count from shared pointer
2020-12-08 18:11:00 +01:00
def
3d94f9c7af
Finish chat msg: Add comment
2020-10-18 17:57:27 +02:00
def
3be8a592e5
Run clang-format
...
Purely automatic change. In case of conflict with this change, apply the
other change and rerun the formatting to restore it:
$ python scripts/fix_style.py
2020-09-26 21:50:15 +02:00
def
cfd32c357b
Fix clang-format
2020-09-21 15:32:16 +02:00
def
35fc180559
Finish /showothers 2 implementation on server
2020-09-21 15:32:16 +02:00
Zwelf
52af88826c
Allow switching weak/strong with saving and loading
2020-08-13 16:19:07 +02:00
def
f4344dc420
Use (u)int64 from system.h instead of (u)int64_t from cstdint
...
src/game/client/prediction/gameworld.h:62:90: error: ‘int64_t’ has not been declared
62 | void CreateExplosion(vec2 Pos, int Owner, int Weapon, bool NoDamage, int ActivatedTeam, int64_t Mask);
| ^~~~~~~
2020-07-09 13:55:28 +02:00
Zwelf
d0975f9c4b
Fix storing finish on solo server with practice mode enabled
2020-07-02 22:49:30 +02:00
Zwelf
4388579d48
Fix reenabling practice mode after kill on solo server
2020-07-02 11:13:07 +02:00
Zwelf
bff8e90319
Fix loading team sets teamstate to TEAMSTATE_OPEN
2020-07-01 09:03:16 +02:00
Zwelf
6f9dd48401
Fix doors not resetting on restart on solo server
2020-06-30 20:42:01 +02:00
Zwelf
b99bbccd24
Revert "Revert "Fix /save on solo server""
...
This reverts commit 59a7e1f187
.
2020-06-30 20:22:17 +02:00
def
59a7e1f187
Revert "Fix /save on solo server"
...
This reverts commit 506602d472
.
2020-06-30 18:41:22 +02:00
Zwelf
506602d472
Fix /save on solo server
...
Fixes #2404
2020-06-29 19:34:21 +02:00
Zwelf
d8aab366fc
Log save/load in teehistorian
2020-06-26 00:01:12 +02:00
Zwelf
a8abc3937b
Make game less dependend on score backend
2020-06-25 12:36:01 +02:00
def
243be18fb4
Keeping multiple states consistent is hard ( fixes #2315 )
...
let's go recount every time
2020-06-24 14:50:32 +02:00
trml
ca36f4787c
Ensure that team state is always sent
2020-06-23 23:57:33 +02:00
Learath
287e3e2a45
Use 0.7 finish messages
2020-06-22 18:08:08 +03:00
Zwelf
673f59d99f
Restore old message behavior when using /load and /save
...
Only notify the player initiating /load about the error and don't send
'Loading initiated by ...' and 'Saving initiated by ...' messages resulting
in two messages per /load and /save.
2020-06-20 13:03:25 +02:00
Zwelf
c278d8dbc3
Read SaveID from database on /load
2020-06-15 11:14:15 +02:00
Zwelf
e9242f45f1
Thread safe /load
2020-06-15 11:14:15 +02:00
Zwelf
031ac52320
Thread safe /save
2020-06-15 11:14:15 +02:00
Zwelf
add4fab645
Disallow team join while save command is active
2020-06-15 10:59:46 +02:00
def
88b65b6def
Newly joined player should not immediately be subtracted from team 0
2020-05-31 00:34:29 +02:00
bors[bot]
0cd40c61c3
Merge #2218
...
2218: Practice mode fixes & improvements r=Learath2 a=def-
Thanks to NANAMAR for report.
Update: tested, works.
Co-authored-by: def <dennis@felsin9.de>
2020-05-28 16:21:01 +00:00
def
c00759a0ed
Turn off practice mode and reset practice wishes when locked team dies
2020-05-28 12:59:31 +02:00
def
68132350b9
No cheating through noob filter with practice and then leaving team ( fixes #2224 )
2020-05-28 12:06:56 +02:00
heinrich5991
209726552b
Remove unused Sv_PlayerTime
game message
2020-05-27 20:03:11 +02:00
bors[bot]
92fc95d742
Merge #2202
...
2202: Send DDNet version early in the connection process r=Learath2 a=heinrich5991
This gets rid of the problem that we don't know whether we should send
full snapshots to clients because they haven't told us about them being
DDNet yet.
Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
2020-05-27 17:49:31 +00:00
def
6b95bc2636
Fix team save practice reset
2020-05-27 17:58:08 +02:00
def
e1849ad1bb
Implement /practice for teams
...
As discussed on Discord today, can be enabled inside of teams on the fly
during each run on any server. Finishes don't count. I haven't tested
save/load yet, would do that live on the server if this can be merged.
2020-05-27 17:33:26 +02:00
def
7c966bebc3
singular player in team start message
2020-05-23 21:53:12 +02:00
heinrich5991
0d7872c79e
Send DDNet version early in the connection process
...
This gets rid of the problem that we don't know whether we should send
full snapshots to clients because they haven't told us about them being
DDNet yet.
2020-05-22 17:58:41 +02:00
d3fault
718eebd9ce
Revert "Force spawn order of teams. Fix #1828 "
...
This broke respawn rate limiting and didn't even fix #1828 .
When primary tee hits kill tiles, dummy still gets strong hook.
This reverts commit 02f5723321
.
2019-09-30 15:38:35 -07:00
Learath
02f5723321
Force spawn order of teams. Fix #1828
2019-07-18 18:35:51 +03:00
ChillerDragon
6172a9dca0
Use the float type explicitly
2019-07-08 23:08:42 +02:00
def
f7e642bbbe
Fix race condition in /map (untested)
2019-06-25 21:03:20 +02:00
ChillerDragon
905204781b
Cleanup if nesting
2019-04-06 17:22:15 +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
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
Dennis Felsing
f83a9be610
Sneaky code (TODO: Also mark 708?)
2018-12-17 14:55:58 +01:00
heinrich5991
5c4e819e44
Use str_startswith
, str_endswith
instead of ad-hoc implementations
2018-07-26 14:18:23 +02:00
ChillerDragon
57cb136c55
Remove teamkill message on solo teams
...
For speedrunning alone in a team this "Everyone in your locked team was killed because '%s' %s."
is very annoying. So better only print it if more than 1 tee is in the team.
2018-03-06 14:08:04 +01:00
def
c12082c2ef
Not too many messages
2017-07-30 14:15:45 +02:00
def
7a3b7c6228
oops
2017-07-29 23:13:04 +02:00
def
f3d4fcf012
Print message when team starts playing to team members
2017-07-29 23:11:33 +02:00
def
79d29b1e31
Fix: Finish score should always show the fastest time
2017-07-23 21:33:55 +02:00
ChillerDragon
727b9f84b6
fixed scoreboard update for slow racers (less hacky) ( #765 )
...
* fixed scoreboard update for slow racers (less hacky)
* Fix some style issues
2017-07-05 23:01:57 +02:00
eeeee
9b6699d3b8
remove casts to CServer
...
improving encapsulation by going through the interface instead of including engine/server/server.h
2017-06-05 20:51:12 -07:00
def
562dee6e38
Clean up server messages a bit
2017-05-21 01:20:25 +02:00
Dennis Felsing
278b17b460
Merge pull request #721 from Learath2/dd_pr_pause
...
Rework the pause system
2017-05-14 11:55:09 +02:00
Learath2
3878d6fb56
Reset invites when the team is empty
2017-04-24 21:28:02 +02:00
Learath2
89199d04d0
Fix invite spam by abusing lock.
2017-04-24 11:03:16 +02:00
Learath2
309d47e933
Revert "Remove invite system entirely since no one wants to fix it"
...
This reverts commit 99cc9d2c0b
.
2017-04-23 22:50:07 +02:00
def
99cc9d2c0b
Remove invite system entirely since no one wants to fix it
2017-04-23 17:51:29 +02:00
Learath
5626259b27
Rework pause. Fixes force_pause
2017-04-09 00:20:41 +02:00
necropotame
b8e4e5beea
Fix style in several places
2017-03-22 19:45:14 +01:00
Learath2
0b0783f13c
Fix styling issues, use uint for bitmask
2017-03-10 14:52:49 +01:00
Learath2
9319a82c6e
Add /invite for locked teams. Fixes #647
2017-03-06 12:14:38 +01:00
def
ce7eb0aac1
Add UNLOCK_TEAM tile (someone draw a tile please)
2016-03-07 18:04:59 +01:00
H-M-H
e39829ef7c
killer of locked team will get strong hook on respawn
2016-03-04 22:55:12 +01:00
H-M-H
42a68636b5
tweaked respawndelay a bit
2016-02-02 21:14:46 +01:00
timgame
9f45090ca6
added chat msg to reveal killer of locked team
2015-11-12 18:59:58 +01:00
def
f977f80c94
Stronger checks on save
2015-08-22 15:16:14 +02:00
def
a04578b3ba
Add switch_open to set the initial state of a switch to open
2015-07-22 23:32:39 +02:00
def
2750a23792
Only allow savegames on same server. Clean up saving a bit and prevent another possible exploit
2014-12-17 20:38:05 +01:00
def
87ebb2f03e
Defer character kill from thread to prevent race conditions
2014-12-07 03:42:43 +01:00
def
99c07d884d
Another try at the fix
2014-10-21 14:57:58 +02:00
def
e29571dd73
save doesn't create ranks accidentally anymore ( fixes #73 )
2014-10-21 14:27:10 +02:00
def
6bcf2bbe0d
Revert "Teammate switching team reported on chat"
...
This reverts commit b19688fa35
.
2014-10-21 14:22:53 +02:00
def
7b259b3022
Revert "Update teams.cpp"
...
This reverts commit fa59910ef2
.
2014-10-21 14:22:47 +02:00
Wohoo-GC
fa59910ef2
Update teams.cpp
2014-10-09 13:05:59 +02:00
Wohoo-GC
b19688fa35
Teammate switching team reported on chat
...
Teammate switching team reported on chat and console.
Solved also:
Function OnCharacterDeath() calls itself multiple time. Open team after checking it is not opened, then kill members.
2014-10-09 12:46:20 +02:00
def
90518f951d
Fix saving in solo teams
2014-09-29 19:32:43 +02:00
def
1c954c168f
Proper team count, should fix savegames
2014-09-29 17:36:14 +02:00
def
896a6fda9b
Lock works for single player teams
2014-09-26 23:47:25 +02:00
def
0a131df621
Fix broken start line
2014-09-26 13:03:01 +02:00
def
03109ef232
Prevent crash
2014-09-26 12:43:56 +02:00
def
2c2b77ac3b
Check whether team has finished once a player in the team kills
2014-09-26 03:42:49 +02:00
def
b4f77c4b71
Add sv_player_demo_record (mostly from Teerace)
2014-09-26 02:05:31 +02:00
def
2cfb494c84
Fix compilation
2014-09-07 01:03:55 +02:00
def
4ab0083f89
Fix: unlock team when it is saved
2014-09-06 21:08:21 +02:00
def
9964e6bfde
Fix: Properly reset team on /save
2014-08-31 14:12:15 +02:00
def
2980bd77e8
Add /specteam
2014-08-09 19:53:38 +02:00
def
066ac46c17
Add a message after you finished in team and rejoin team 0
2014-08-01 16:00:04 +02:00
def
145f0434f5
Add /save by the glorious HMH
2014-07-26 14:46:31 +02:00
def
f2139dae94
For blocker servers disable rejoin to team 0 after finish
2014-07-19 17:11:00 +02:00
def
d47b2bc7e1
Make players join team 0 after finishing a map if you're not in a locked team
2014-07-08 01:58:27 +02:00
def
4c87cedd4d
Better make sure that something exists before using it
2014-05-19 01:57:52 +02:00
def
7fd799f894
Timeouts, disconnects and game leaves no longer kill your entire locked team
2014-04-12 12:08:20 +02:00
def
9f832423c1
Fix: Keep team closed when locked so that all players are killed
2014-03-12 19:36:25 +01:00
def
e305e83a98
Fix: Reset doors in locked team
2014-03-10 13:39:50 +01:00
def
e9db91e953
Add solo fake tunes
2014-02-19 22:30:57 +01:00