furo
f9b9480291
Save entire character with /lasttp
.
2023-11-12 23:48:36 +01:00
Alexander Akulich
b886b93cf2
CPlayer: Remove unused variable
2023-11-03 21:36:33 +03:00
furo
0ecc50ae0f
Fix afk timer not working.
2023-10-30 19:43:35 +01:00
furo
6dd43fb086
Don't reset LastTelePos
on death
2023-10-01 18:34:07 +02:00
Alexander Akulich
a1b7e0c37c
Move alloc.h to game/ and use it in client/prediction/entity.h
2023-09-15 18:04:29 +03:00
Jupeyy
845ba50842
Split emoticon sending into nearby and global players
2023-06-11 13:31:50 +02:00
Edgar
654ee03b67
fix timescore
2023-05-18 20:49:22 +02:00
Edgar
1ca7870bf2
fix conflicts
2023-05-14 11:22:06 +02:00
VoxelDoesCode
0dfced4ca4
Bring Team logic into teams.cpp
...
MsgPlus -> Msg
2023-04-02 21:40:39 -04:00
VoxelDoesCode
929675be68
Make team kills condensed in killfeed
...
Clang + Formatting test before merge
2023-03-18 23:27:59 -04:00
Robert Müller
4439cbd7a1
Persist AFK state of players on map change
...
Store AFK state of players in `CPersistentClientData` and restore it when a client is connected.
In order for this to work, `m_LastPlaytime` must be adjusted as well to ensure that the AFK state is not reset again automatically by the `AfkTimer` function.
The AFK state is encapsulated using `IsAfk` and `GetAfk`.
Closes #1966 .
2022-12-23 00:13:10 +01:00
heinrich5991
d8053fba7d
Unify time score handling in the server
...
It's now always -1 for "no time" or a nonnegative integer for the number
of seconds it took the player to finish the map.
2022-10-20 00:43:38 +02:00
Chairn
a69dc599a9
Huge variable naming format
...
Fix pointer and pointer array variable naming
Huge renaming to match our rules
Used regex: (?!(return|delete)\b)\b\w+ (m_|ms_|g_|gs_|s_)[^a]\w+\[
(?!(return|delete)\b)\b\w+ (?!(m_|ms_|g_|gs_|s_))[^a]\w+\[
Further format static variables
Format almost all pointer names accordingly
Used regex: (?!(return)\b)\b\w+
\*(?!(m_p|p|s_p|m_ap|s_ap|g_p|g_ap|ap|gs_ap|ms_ap|gs_p|ms_p))\w+\b[^:\(p]
clang-format
Fix CI fail
Fix misnamed non pointer as pointer and non array as array
Used regex: (?!(return|delete)\b)\b\w+ (m_|ms_|g_|gs_|s_)p\w+\b
(?!return\b)\b\w+ (ms_|m_|g_|gs_|s_)a\w+\b[^\[]
clang-format
Revert to SCREAMING_SNAKE_CASE and reinstate dead code
2022-07-08 18:01:29 +02:00
Dennis Felsing
aa18c1ee78
Only announce birthday once ( fixes #5576 )
...
No matter if you use /timecp or rename
2022-07-07 10:24:41 +02:00
Robert Müller
352734de56
Organize game-server includes
2022-06-17 20:32:56 +02:00
Arda Demir
c4492c27ea
Move/rename AfkVoteTimer to AfkTimer
2022-06-11 21:11:28 +03:00
Arda Demir
18ab88d33e
Remove obsolete AfkTimer function
2022-06-11 21:11:25 +03:00
Zwelf
b99d8dc259
Always apply last sent input
...
Makes teehistorian during spawn more reproduceable.
Currently during respawn the first applied input doesn't get recorded.
Always appliying the last sent input fixes this.
2022-05-21 21:34:30 +02:00
heinrich5991
103b663662
Rename Act
→ Cur
, some "actual" → "current"
...
Seems like it got introduced by means of the false friend "actual" ≠
"aktuell" = "current".
2022-04-23 00:42:37 +02:00
Robert Müller
74f87ee604
Remove unnecessary trailing semicolons after method declarations
2022-03-08 20:01:26 +01:00
def
bc78ba57b9
Enable readability-inconsistent-declaration-parameter-name
2022-01-22 14:12:59 +01:00
Dennis Felsing
c033513976
Default players to being afk on new map
...
As reported by MitakoKotomi in https://forum.ddnet.tw/viewtopic.php?f=118&p=70154
2022-01-17 12:58:14 +01:00
ChillerDragon
5140854d68
Some char array naming convention
2021-09-13 12:21:56 +02:00
def
7d196976ce
fix clang-format
2021-08-30 17:08:18 +02:00
Vlad
df6f6bafc6
code re-use
2021-08-30 17:51:28 +03:00
Vlad
22df8707a1
less code, less memory use
2021-08-20 19:06:05 +03:00
Jupeyy
a663799188
uint64 -> uint64_t, int64 -> int64_t
2021-06-24 17:19:17 +02:00
Kyle Bradley
decaeb8934
PR feedback:
...
- Changed names of variables
- Changed config descriptions
- Fix for perma timeout
2021-03-20 18:08:54 +02:00
Kyle Bradley
94dbae981f
Added swap functionality to server client:
...
- New chat command
- Swaps character's position with other tee using existing Save/Load methods.
2021-02-28 18:35:35 +02:00
Alexander Akulich
2191996254
CPlayer: Make the emote-related members private
2021-01-16 03:20:58 +03:00
Alexander Akulich
281186468f
CPlayer: Correctly restore the default emote on override emote expired
...
We used to set EMOTE_NORMAL even on 'special' days ('events' config option).
2021-01-16 03:20:58 +03:00
Alexander Akulich
f0e34c9c36
Move DefaultEmote logic into CPlayer
2021-01-16 03:20:58 +03:00
Alexander Akulich
5a9af45f9a
CPlayer: Rename EyeEmote to EyeEmoteEnabled (to be clear)
2021-01-16 03:20:58 +03:00
Alexander Akulich
19234987c9
Backport IGameController::OnPlayerDisconnect() from the upstream
...
Upstream commit 5e4caa9b9c
2021-01-16 03:20:58 +03:00
Alexander Akulich
e34f268bed
Make CSaveTee and CPlayer not friends anymore
2021-01-16 03:20:57 +03:00
Alexander Akulich
476c2c60d7
Cleanup includes
...
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
Alexander Akulich
8ee8351b68
Move WEAPON enum from character.h to player.h
...
See the upstream commit 24bda2faa0
2021-01-10 14:25:12 +03:00
def
04b840f542
Consider as not-afk on emoticon, chat, vote,
...
call vote, spectator mode, info change
2020-10-07 23:24:50 +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
35fc180559
Finish /showothers 2 implementation on server
2020-09-21 15:32:16 +02:00
def
1782d95d99
Client tells server its zoom level ( fixes #2087 )
...
and server adapts the visible distance to it
2020-06-29 18:59:07 +02:00
Zwelf
a8abc3937b
Make game less dependend on score backend
2020-06-25 12:36:01 +02:00
bors[bot]
6384ebf13f
Merge #2321
...
2321: Use the 0.7 race features better r=def- a=Learath2
Mostly tested, couldn't test the diffs though as I don't have score set up. It looks good to me though.
Co-authored-by: Learath <learath2@gmail.com>
2020-06-22 16:04:18 +00:00
Zwelf
b96d8673f3
Fix crash when player voting random_map leaves and vote passes
...
Closes #2310
2020-06-22 00:47:49 +02:00
Learath
35acd21933
Use the racetimer in 0.7
...
Clean up /timer while at it
2020-06-21 17:15:08 +03:00
Learath
03070d0567
Fix many issues
2020-06-19 20:28:52 +03:00
Learath
807c92f1a4
Generate the 0.7 protocol
2020-06-19 20:27:15 +03:00
Zwelf
afe96ed69c
Thread safe random_map
2020-06-15 11:14:15 +02:00
Zwelf
13c80fdc56
Thread safe saving of score
2020-06-15 11:14:15 +02:00