Commit graph

41 commits

Author SHA1 Message Date
in0finite
a384877191 sync aim direction for host's ped 2020-05-31 19:09:49 +02:00
in0finite
95120b46d3 client detects when roll direction changes, and plays anim again 2020-05-31 19:09:46 +02:00
in0finite
2e7289d1b4 use base64 encoding for converting between string and byte array 2020-05-31 19:09:46 +02:00
in0finite
0127b0d392 send fire position to server 2020-05-31 19:09:45 +02:00
in0finite
bae6676196 using fire direction from client when trying to fire 2020-05-31 19:09:45 +02:00
in0finite
7983812074 send fire direction to server 2020-05-31 19:09:45 +02:00
in0finite
fe257c58ec remove some spamming logs 2020-05-31 19:09:44 +02:00
in0finite
eb7c90f0ab sync health 2020-05-31 19:09:44 +02:00
in0finite
6da98dd68a sync movement input and heading 2020-05-31 19:09:43 +02:00
in0finite
44c4012645 aim direction is synced 2020-05-31 19:09:43 +02:00
in0finite
2c30229ed7 sync current weapon slot 2020-05-31 19:09:43 +02:00
in0finite
ee25411026 states can detect when current weapon changes 2020-05-31 19:09:43 +02:00
in0finite
cb2ce01463 ped owner is fully synced ? 2020-05-31 19:09:43 +02:00
in0finite
518517a9c6 load ped model as soon as he gets spawned 2020-05-31 19:09:43 +02:00
in0finite
c51798bf75 trying to fix bug when player's sync var was not updated before Ped.Start() executed 2020-05-31 19:09:43 +02:00
in0finite
266c90deac Improvements 2020-05-31 19:09:41 +02:00
in0finite
e117c2cd81 Fixed several bugs:
- vehicle states are activated on clients at the end of frame, because at the moment of ped creation, vehicle may not be created yet

- ped doesn't switch to stand state in Start(), on clients

- state is now synced using string, not struct, because struct failed to sync after first modification
2020-05-31 19:09:41 +02:00
in0finite
d91cd759e3 Attempt to fix state sync 2020-05-31 19:09:41 +02:00
in0finite
027319df86 Attempt to fix state sync 2020-05-31 19:09:41 +02:00
in0finite
e9ef2e583d Working on misc stats 2020-05-31 19:09:41 +02:00
in0finite
7fb6256b3a States can provide additional data for clients when being switched 2020-05-31 19:09:41 +02:00
in0finite
8da6e641b2 Apply sync rate to NetworkTransform too 2020-05-31 19:09:40 +02:00
in0finite
23ed98633a Remove DefaultTransformSyncInterval variable 2020-05-31 19:09:40 +02:00
in0finite
548f0ee57c Add configurable ped sync rate 2020-05-31 19:09:40 +02:00
in0finite
d76320682a Cache NetworkTransform and save default sync interval 2020-05-31 19:09:40 +02:00
in0finite
394e08b458 States now control switching when they are forcefully switched to by the server. Fix for vehicle exiting state. 2020-05-31 19:09:39 +02:00
in0finite
c88920e3f8 Send input from Update(), with a specified max rate 2020-05-31 19:09:38 +02:00
in0finite
787603cdb8 Don't reset input after sending it 2020-05-31 19:09:38 +02:00
in0finite
929bb22fb5 Testing client behaviour when input is reset 2020-05-31 19:09:38 +02:00
in0finite
be231b0f7d Working on sending input to server 2 2020-05-31 19:09:38 +02:00
in0finite
abf9db0818 Working on sending input to server 2020-05-31 19:09:38 +02:00
in0finite
3607621665 Don't try to switch state when string is empty 2020-05-31 19:09:38 +02:00
in0finite
dbaf2f00df Remove spamming log 2020-05-31 19:09:38 +02:00
in0finite
6aadc268c0 Only load ped model if id > 0 2020-05-31 19:09:38 +02:00
in0finite
5c390d2be1 Don't assign syncvars in hooks 2020-05-31 19:09:38 +02:00
in0finite
c920d6f455 Assign syncvars only if values changed 2020-05-31 19:09:38 +02:00
in0finite
c1a320ea3d Better log messages 2020-05-31 19:09:38 +02:00
in0finite
30f379da41 Ped state is synced 2020-05-31 19:09:38 +02:00
in0finite
3492c39c8b Working on ped networking 3 2020-05-31 19:09:37 +02:00
in0finite
a5b8e5c51c Working on ped networking 2 2020-05-31 19:09:37 +02:00
in0finite
c60d1ae2d4 Working on ped networking 2020-05-31 19:09:37 +02:00