Chairn
01edaec628
Format vector variables names ( fixes #5209 )
2022-06-11 21:38:49 +02:00
trml
548de3804e
Rename NumSwitchers to HighestSwitchNumber and remove most references
2022-06-02 00:57:11 +02:00
trml
66c0c1e692
Send timer info for switchers and predict switch state changes
2022-06-02 00:57:09 +02:00
trml
95c4c2db1c
Move switch state to gamecore
2022-06-02 00:51:25 +02:00
c0d3d3v
5065bab8b5
fix swap does not swap no collision and no hook
...
- remove duplicated variable for no collision and no hook
2022-05-30 19:33:42 +02:00
Robert Müller
c2f92c1e13
Organize game-shared includes
2022-05-29 20:02:22 +02:00
Alexander Akulich
a39bbc702b
Introduce and use constexpr CCharacterCore::PhysicalSize
2022-05-28 21:46:44 +03:00
c0d3d3v
a5cf35576d
init m_pWorld with nullptr
2022-05-25 17:42:44 +02:00
c0d3d3v
5175734432
Iterate over m_AttachedPlayers instead of MAX_CLIENTS
2022-05-22 21:59:52 +02:00
c0d3d3v
f07d773492
Add a set of Players that are attached to a Tee
2022-05-22 21:59:51 +02:00
c0d3d3v
d6833b6fd6
fix jump display
2022-05-16 23:17:19 +02:00
c0d3d3v
e71578e468
Add DDNetCharacterDisplayInfo NetObj
...
- Show all components of new HUD also in Spectator (Ninja Bar, Freeze
Bar and Jumps)
- hide freeze bar if you sit in freeze
2022-04-14 13:40:40 +02:00
c0d3d3v
b403f474a0
Add Freeze Bar
2022-04-14 13:40:05 +02:00
c0d3d3v
b942b7a72a
Show weapon no hit only if the tee got the weapon
...
make ninja sword bigger
show negative jumps correct
move icons up if there is an empty space
2022-04-14 13:38:56 +02:00
c0d3d3v
3957a7404e
move m_Ninja in Character Core
2022-04-14 13:38:55 +02:00
c0d3d3v
320e9e030f
Rename Read() function to avoid equal naming
2022-04-14 13:38:55 +02:00
c0d3d3v
5ac46f9bd5
Many new indicators have been added to the HUD
...
- A display of the weapons available to the player
- The weapon the player is carrying is highlighted
- Indicators for the special abilities of the player
- Indicators for abilities taken away from the player
- Control indicators for dummy controls
- The jump indicator has been slightly adjusted
2022-04-14 13:38:55 +02:00
c0d3d3v
7abeaf0cd7
Preparations for the new HUD
...
- add pickup sprites to 0.6 data source
- New Enum for the 4 pickup categories
- Remove the unnecessary access to client_data7 for the pickup sprites
- Use the correct sprite set for the HUD sprites
- Read existing weapons into m_Predicted so that this information matches the last snap if the CCharacter is not predicted
- Move m_aWeapons from CCharacter to CCharacterCore for a more consistent data model since it was previously defined twice in the server and client (further so that it can be accessed with m_Predicted)
- Read CNetObj_Character into m_Predicted so that this information matches the last snap if the CCharacter is not predicted.
2022-04-14 13:38:55 +02:00
c0d3d3v
8ddd53ab62
add enum for ShowOthers value
2022-03-03 22:56:32 +01:00
Wohoo
2017464282
Livefreeze implementation with CHARACTERFLAG_NO_MOVEMENTS flag.
...
Freeze and Unfreeze tiles added to switch layer too.
2022-01-07 16:53:40 +01:00
Freddie Wang
500ba7609f
Respect tunezone for characters
2021-05-13 00:57:50 +08:00
Alexander Akulich
2790270abf
Adopt upstream refactoring: Mark several functions as 'const'
2021-02-23 18:26:16 +03:00
def
f49e8b060d
DDnet -> DDNet
...
As reported by Ravie
2021-01-31 20:29:43 +01:00
Alexander Akulich
d536743dda
DDRace GameController: Set Teams to CCharacter on Spawned
...
Since this commit, CCharacter does not directly depend on
CGameControllerDDRace anymore.
2021-01-19 22:36:22 +03:00
Alexander Akulich
e0affc3f34
CCharacterCore: Join Init() methods
2021-01-19 22:36:09 +03:00
Alexander Akulich
33dc79d190
Character: Make the GameController set the Teleports info
...
CCharacter::HandleTiles() doesn't depend on the CGameControllerDDRace anymore.
2021-01-19 22:36:03 +03:00
BeaR
9f0b0af862
Add angle<->direction conversion functions to vector math (Cleanup)
...
Keep angle() (ex. GetAngle()) as-is.
(cherry picked from commit 7735557aa5
)
2021-01-16 03:20:57 +03:00
Jupeyy
c9a1586dec
Fix obvious division by zero
2020-10-17 18:24:34 +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
557f23b347
Disable -Wstringop-overflow warning in IntsToStr
...
Since it won't write into invalid memory when Num > 0
2020-06-23 10:35:41 +02:00
heinrich5991
9075bc452d
Add a comment justifying the modulo for random numbers
2020-05-27 18:12:42 +02:00
heinrich5991
c9c7f947b5
Use the PCG-XSH-RR PRNG instead
...
This came from a long discussion comparing PCG-* against xoroshiro*. Do
not generate integers without bias because it doesn't affect us very
much and it is easier to reimplement with modulo.
2020-05-26 10:59:49 +02:00
heinrich5991
2692f3c758
Use a consistent PRNG on all platforms
2020-05-25 15:19:29 +02:00
trml
47cafe6d6b
Remove unused code
2020-05-02 18:52:09 +02:00
ChillerDragon
96c9b1ab73
Rename rifle to laser
...
This makes it easier to copy code from/to 0.7
23df3c609e
2019-11-22 15:37:18 +01:00
Dennis Felsing
ae4f632bbd
Disable warning for false positive
2019-10-16 14:33:58 +02:00
heinrich5991
9a5de9eff8
Remove unused variables
2019-10-02 10:28:34 +02:00
heinrich5991
bcd1559c5e
Make LimitVel
a proper function
2019-09-18 14:50:27 +02:00
heinrich5991
66ccd808aa
Rewrite stopper code a bit, second try
...
Remove the whole copy-and-paste mess.
A seemingly ineffective and apparently code block has been removed.
The broken front layer from the first try has been fixed.
2019-09-18 02:04:46 +02:00
trml
b72a16ca36
Use new ddnetchar fields, cleanup, and fix prediction for already used jumps
2019-07-01 00:50:50 +02:00
bors[bot]
a5096c4de0
Merge #1663
...
1663: Use freeze end tick instead of a flag. Fix #1659 r=def- a=Learath2
I used -1 for deep frozen, and 0 for not frozen. Not really sure if this is the best way.
Co-authored-by: Learath <learath2@gmail.com>
2019-04-27 08:53:38 +00:00
Learath
24408e6f3c
Oops
2019-04-24 19:12:46 +03:00
Learath
67668d7fb2
Use freeze end tick instead of a flag. Fix #1659
2019-04-23 18:57:26 +03:00
trml
0b3f3b03b5
Rewrite of prediction code, with additional prediction
2019-04-21 16:12:20 +02:00
Ryozuki
f37f8a8268
add all character flags to ddnetnetwork character
2019-04-19 11:17:28 +02:00
Ryozuki
3556830b9a
fix solo prediction
2019-04-12 16:29:13 +02:00
Dennis Felsing
13aa154d47
Revert "Rewrite stopper code a bit"
...
This reverts commit 4ee5c5a781
.
2018-08-24 09:34:54 +02:00
Dennis Felsing
d60b0db632
Revert "Add mapbug "stoppers-passthrough@ddnet.tw""
...
This reverts commit 25e86851d3
.
2018-08-22 08:33:21 +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
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