hiker
9ea8dae693
Further improved braking in networking.
2018-06-05 00:46:36 +10:00
hiker
5092f0326c
Removed unnecessary update (it's done in max_speed.cpp as well).
2018-06-05 00:04:49 +10:00
hiker
c751db865f
Always include terrain-based slowdown fraction in a state update
...
(otherwise the client would reset this value to 1.0 in each rewind).
2018-06-04 08:54:49 +10:00
hiker
b15de8c3dc
Update m_hardPointWS after a rewind to make sure the current
...
terrain is computed based on the new (rewound) kart position.
2018-06-04 08:53:21 +10:00
hiker
91f472e1c7
Fixed braking in network games (hopefully).
2018-06-03 01:09:05 +10:00
hiker
5ec22d17f4
Fixed EndController (base functions in AIBasecontroller need to
...
use same state size as PlayerController.
2018-06-02 00:48:48 +10:00
hiker
e0d7717c46
Added previous brake and steer value (necessary for full state).
2018-06-02 00:08:08 +10:00
hiker
c3ec9bf6eb
Fixed comment.
2018-06-01 21:43:40 +10:00
hiker
da14ffc4de
Added brake_tick counter to the state (the longer you brake the
...
stronger you brake).
2018-06-01 21:40:00 +10:00
hiker
eebd5f2534
Removed unnecessary #include.
2018-06-01 09:42:36 +10:00
hiker
8cca845dde
Hopefully fixed item collection prediction.
2018-05-31 09:48:33 +10:00
hiker
70039f7d92
Removed unnecessary #include.
2018-05-31 09:29:01 +10:00
hiker
e6d5e194d3
Don't save the terrain slowdown as part of the state, it will get
...
updated on each client automatically.
2018-05-29 19:25:24 +10:00
hiker
50425ef59f
Moved item position into ItemState.
2018-05-29 19:21:34 +10:00
hiker
755cd8095b
Use ItemState instead of Item as paramter for kart's collectedItem.
2018-05-28 00:26:02 +10:00
hiker
d0e95d0d63
Removed debug code (always get bubble gum as powerup).
2018-05-27 23:44:51 +10:00
hiker
ab3a3e1155
Combined event handler and emitter in item into one object (since
...
they are the same anyway).
2018-05-27 23:42:38 +10:00
hiker
079b5abe2a
Started to use ItemState instead of Item in the attachment and
...
powerup callbacks on item collection.
2018-05-27 00:42:21 +10:00
hiker
89ded35c21
Fixed bugs in MaxSpeed state saving and restoring.
2018-05-24 10:19:54 +10:00
hiker
227572809a
Synch attachments of bananas between client and server, some
...
code cleanup.
2018-05-22 00:00:38 +10:00
hiker
9108934c18
Added handling of predicted item drops.
2018-05-21 10:09:10 +10:00
hiker
cdea16f81d
Fixed kart id being received as unsigned int (needs to be signed since
...
the sign indicates the event type).
2018-05-16 08:55:18 +10:00
hiker
ad82dca6cc
Created separate file for ItemEventInfo.
2018-05-15 18:05:46 +10:00
hiker
0d850201fb
Renamed and split the two newItem () functions into three functions:
...
placeItem(), placeTrigger(), dropNewItem(). Started to add support
for networked bubble gum (though that's not working, i.e. will crash
atm ;) ).
2018-05-15 10:40:25 +10:00
hiker
8c4158c139
Removed option to set item etc type via additional parameter for
...
networking. Now networking relies on deterministically determined
'random' item types and state updates.
2018-05-14 08:46:50 +10:00
hiker
d2dc99f859
Added --disable-item-collection command line flag, which is useful
...
for evaluating client/server 'disagreements'.
2018-05-13 23:43:29 +10:00
hiker
af0495848a
Use client prediction for item collection.
2018-05-13 01:04:45 +10:00
hiker
d88ce3b3b6
Removed unused code, coding style fixes.
2018-05-11 09:41:46 +10:00
hiker
b77a76dd8c
The ItemManager must be updated even if no event is received (to
...
rewind item states to the rewind time).
2018-05-10 23:25:04 +10:00
hiker
5f8dc7b641
Added debug comment to let the server not connect any items
...
(--> client predictions wrong, useful for debugging).
2018-05-10 23:24:07 +10:00
hiker
ff6d5119b4
CLients now predict item (predictions are not synched with server,
...
so the item will chance once the server update is received atm).
2018-05-10 23:23:23 +10:00
hiker
8f2b991e6a
Code cleanup.
2018-05-10 09:31:21 +10:00
hiker
4e37c1388b
Item collection on a client now works, though it is not predicted yet.
...
Other things (dropping bubble gum, switch, synchronised banana collection)
still do be done.
2018-05-10 01:09:23 +10:00
hiker
031eb461a3
Removed debug output.
2018-05-10 01:07:41 +10:00
hiker
c98df155a6
Change item visibility always in Item::updateGraphics, which (except
...
for listener) makes it unnecessary to call collect for Item (only
for ItemState).
2018-05-10 01:05:38 +10:00
hiker
e1530267f3
Fixed compilation error and some warnings.
2018-05-09 00:48:20 +10:00
hiker
3f96ba2b93
Added nitro amount to state.
2018-05-08 20:51:35 +10:00
hiker
9d60112e65
Started to implement proper item handling: the server now sends
...
updates of all collected items to the clients as part of a state.
A client confirms the received states. Once all clients have
confirmed a certain event, that event is deleted on the server
and not sent anymore. WIP, item collection kind of works, but only
because of kart state updates which include attachment (but not
e.g. nitro).
2018-05-08 19:12:06 +10:00
hiker
356680b182
Removed debug prints.
2018-05-08 18:41:37 +10:00
hiker
eb647124e8
Split the item update into update and updateGraphics() parts.
2018-05-04 16:41:03 +10:00
hiker
c7c061c7c1
Bugfix: all items were counted as easter eggs :)
2018-05-04 16:36:56 +10:00
hiker
3e518968b3
Added a generic collectedItem() virtual function to world
...
instead of a special case of easter eggs only.
2018-05-04 10:29:44 +10:00
hiker
10ce48b86f
Moved notification of easter egg collectoin from Item to ItemManager.
2018-05-04 09:48:54 +10:00
hiker
5ba79bddd7
Removed m_confirmed, renamed m_disappear_counter to m_used_up_counter.
2018-05-04 09:31:50 +10:00
hiker
9392354663
Split Item into two classes: ItemState which contains the non-graphical
...
and changing properties (e.g. collected,item type etc), and Item (using
ItemState as base class) which contains graphical and constant values.
2018-05-04 01:01:15 +10:00
hiker
0d1e799b4b
Removed unused function.
2018-04-30 08:56:28 +10:00
hiker
a737f9e3d5
Fixed typos.
2018-04-27 00:34:58 +10:00
hiker
8a8b954bf9
Fixed more ticks vs time issues.
2018-04-24 17:44:39 +10:00
hiker
c8befd7505
Fixed compiler warning.
2018-04-24 17:30:15 +10:00
hiker
6f38a56dfa
Merge branch 'lan-broadcast'
2018-04-24 17:28:19 +10:00