in0finite
7de0dd7cdb
removed unneeded methods
2020-05-31 19:09:45 +02:00
in0finite
94b7404e4f
client checks if vehicle is spawned every frame
2020-05-31 19:09:45 +02:00
in0finite
30b1176ee7
play passenger anim every frame
2020-05-31 19:09:45 +02:00
in0finite
b467859ce5
extract method
2020-05-31 19:09:45 +02:00
in0finite
63ce71bec6
check if anim state is null
2020-05-31 19:09:45 +02:00
in0finite
854b0c1856
check if state is still active
2020-05-31 19:09:45 +02:00
in0finite
e3bdea9647
small optimization
2020-05-31 19:09:45 +02:00
in0finite
e9b944cad5
fix NRE in GetCameraFocusPos()
2020-05-31 19:09:45 +02:00
in0finite
57bb127345
now sending net id of current vehicle
2020-05-31 19:09:45 +02:00
in0finite
e5ef9e03c7
sync weapon fire event
2020-05-31 19:09:44 +02:00
in0finite
eb13b25a3f
send next/previous weapon button events
2020-05-31 19:09:44 +02:00
in0finite
d21a9f5c44
send aim/fire button events
2020-05-31 19:09:44 +02:00
in0finite
209cb1e08e
end roll state only on server
2020-05-31 19:09:44 +02:00
in0finite
f10c52b902
only on server
2020-05-31 19:09:43 +02:00
in0finite
eaa9247897
only on server and local player
2020-05-31 19:09:43 +02:00
in0finite
884ef2a223
only on server or local player
2020-05-31 19:09:43 +02:00
in0finite
b1acdecd20
fire only on server
2020-05-31 19:09:43 +02:00
in0finite
49eaf4140f
only on server
2020-05-31 19:09:43 +02:00
in0finite
4551cb67e9
fix RotatePedInDirectionOfAiming(): it uses aim direction instead of camera direction
2020-05-31 19:09:43 +02:00
in0finite
64f30f6063
only on server
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
0b562318c1
trying to fix: camera going through map objects
2020-05-31 19:09:42 +02:00
in0finite
c939f16c81
Don't block camera with peds
2020-05-31 19:09:42 +02:00
in0finite
ed7ce1429f
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
ec4435e181
Converting vehicle states to new API 3
2020-05-31 19:09:41 +02:00
in0finite
b474d7df85
Converting vehicle states to new API 2
2020-05-31 19:09:41 +02:00
in0finite
4faa53bb1d
Converting vehicle states to new API
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
a4329fedea
When entering/exiting vehicle, don't change sync interval, but instead disable/enable NetworkTransform
2020-05-31 19:09:40 +02:00
in0finite
23ed98633a
Remove DefaultTransformSyncInterval variable
2020-05-31 19:09:40 +02:00
in0finite
10b5e541bc
Spine's direction is obtained from aim direction
2020-05-31 19:09:40 +02:00
in0finite
cb92bdd3dd
Properly obtain aim direction
2020-05-31 19:09:40 +02:00
in0finite
781553d6a4
...
2020-05-31 19:09:40 +02:00
in0finite
7f5b37f85e
Disable ped transform syncing while in vehicle
2020-05-31 19:09:40 +02:00
in0finite
461a3087b8
Remove authority when ped exits vehicle
2020-05-31 19:09:40 +02:00
in0finite
45897ebd9d
Working on vehicle authority
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
e99839de0a
Fix sending submit button event
2020-05-31 19:09:39 +02:00
in0finite
78507f0f32
Send submit button event
2020-05-31 19:09:39 +02:00
in0finite
1865251ebb
Additional check
2020-05-31 19:09:39 +02:00
in0finite
07fa4c2752
Comments
2020-05-31 19:09:39 +02:00
in0finite
45418f88e0
Working on vehicle exiting 2
2020-05-31 19:09:39 +02:00
in0finite
be83e941a7
Working on vehicle exiting
2020-05-31 19:09:39 +02:00
in0finite
6ae76e392f
Working on vehicle sync 7
2020-05-31 19:09:39 +02:00
in0finite
8026142938
Add cleanup
2020-05-31 19:09:39 +02:00
in0finite
9a5d6a3ec6
Working on vehicle sync 6
2020-05-31 19:09:39 +02:00
in0finite
c3bd5362d5
Don't set camera parent
2020-05-31 19:09:39 +02:00
in0finite
7a6c6b4aa8
Fix cleanup
2020-05-31 19:09:39 +02:00
in0finite
5e32312a77
Fix cleanup
2020-05-31 19:09:39 +02:00
in0finite
b1dcbd80c8
Improvement
2020-05-31 19:09:39 +02:00
in0finite
028c63955c
Remove commented code
2020-05-31 19:09:39 +02:00
in0finite
e4644c1319
Fix
2020-05-31 19:09:39 +02:00
in0finite
4cae66d0c2
Sitting state should be done
2020-05-31 19:09:39 +02:00
in0finite
2842d653ef
Working on vehicle sync 5
2020-05-31 19:09:39 +02:00
in0finite
63491e76ea
Working on vehicle sync 4
2020-05-31 19:09:39 +02:00
in0finite
f3eff67bdf
Improvement
2020-05-31 19:09:39 +02:00
in0finite
c7ce53f6e1
Almost done with vehicle entering
2020-05-31 19:09:39 +02:00
in0finite
6472f3c73e
Working on vehicle sync 3
2020-05-31 19:09:39 +02:00
in0finite
b89e365619
Remove unused code for camera
2020-05-31 19:09:39 +02:00
in0finite
9944d54c20
Split into another function
2020-05-31 19:09:39 +02:00
in0finite
a90cb21be6
Cleanup coroutine
2020-05-31 19:09:39 +02:00
in0finite
f159f76806
Remove log message
2020-05-31 19:09:39 +02:00
in0finite
5e8d96aead
Working on vehicle sync 2
2020-05-31 19:09:39 +02:00
in0finite
09b1bfae30
Working on vehicle sync
2020-05-31 19:09:39 +02:00
in0finite
f9e89e25ea
Improvements
2020-05-31 19:09:39 +02:00
in0finite
30dc42d3ad
Enter vehicle only on server
2020-05-31 19:09:39 +02:00
in0finite
91ffd9531f
Removed commented code
2020-05-31 19:09:39 +02:00
in0finite
5a720b020a
Fix another NRE
2020-05-31 19:09:39 +02:00
in0finite
344318f558
Fix NRE caused by updating camera in LateUpdate()
2020-05-31 19:09:39 +02:00
in0finite
669daa23be
Send crouch button event
2020-05-31 19:09:39 +02:00
in0finite
9f64097b5e
Exit crouch move state only on server
2020-05-31 19:09:39 +02:00
in0finite
2681264b40
Exit crouch state only on server
2020-05-31 19:09:39 +02:00
in0finite
e2895deb31
Improvement
2020-05-31 19:09:39 +02:00
in0finite
4d00d5df55
Add comments
2020-05-31 19:09:39 +02:00
in0finite
bda70b5bfb
Only on server
2020-05-31 19:09:39 +02:00
in0finite
8ea0d445ac
Add comment
2020-05-31 19:09:39 +02:00
in0finite
60c5284984
Camera is updated in LateUpdateState() - this seems to have fixed the problem with camera shaking
2020-05-31 19:09:38 +02:00
in0finite
feea8ffbe6
Enter crouch/fly states only on server
2020-05-31 19:09:38 +02:00
in0finite
dad31d5918
Switch to movement/aim state only on server
2020-05-31 19:09:38 +02:00
in0finite
09dbaaa12c
Update movement only on server
2020-05-31 19:09:38 +02:00
in0finite
a5ff23268b
Update rotation only on server
2020-05-31 19:09:38 +02:00
in0finite
574ad5d21b
Improve constraining position and rotation
2020-05-31 19:09:38 +02:00
in0finite
ce674ed007
Update heading only on server
2020-05-31 19:09:38 +02:00
in0finite
0a4a760ac4
Constrain position and rotation only on server
2020-05-31 19:09:38 +02:00
in0finite
656ad48124
Rename var
2020-05-31 19:09:38 +02:00
in0finite
039ae76a14
Initial commit
2020-05-31 19:07:22 +02:00