Commit graph

30 commits

Author SHA1 Message Date
in0finite
e6ecbc01e4 remove HUD related code from state class 2020-05-31 19:09:47 +02:00
in0finite
1ad26f11ed implement movement button with arrows 2020-05-31 19:09:47 +02:00
in0finite
0afbaa9d4e aim button works 2020-05-31 19:09:47 +02:00
in0finite
4045311d59 preserve input for some buttons 2020-05-31 19:09:47 +02:00
in0finite
cb7c1418d2 move all HUD drawing functions to BaseScriptState 2020-05-31 19:09:47 +02:00
in0finite
13f94bf27d don't draw hud when input should not be read 2020-05-31 19:09:47 +02:00
in0finite
2596a88be6 draw touch input for movement 2020-05-31 19:09:47 +02:00
in0finite
8ff92619ff working on touch input 2020-05-31 19:09:47 +02:00
in0finite
de0cb01239 state can draw it's own hud 2020-05-31 19:09:46 +02:00
in0finite
d380eaeb55 trying to fix passenger anim 2020-05-31 19:09:46 +02:00
in0finite
7983812074 send fire direction to server 2020-05-31 19:09:45 +02:00
in0finite
a1601341e6 fixing fire direction on clients 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
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
7fb6256b3a States can provide additional data for clients when being switched 2020-05-31 19:09:41 +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
78507f0f32 Send submit button event 2020-05-31 19:09:39 +02:00
in0finite
669daa23be Send crouch button event 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
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
039ae76a14 Initial commit 2020-05-31 19:07:22 +02:00