Commit graph

776 commits

Author SHA1 Message Date
in0finite
fda799b8a2 optimizations and refactoring 2021-06-25 23:00:33 +02:00
in0finite
4aa60fbae4 add param 'rotateLightsToFaceCamera' 2021-06-25 22:24:46 +02:00
in0finite
65eb14afad use arrays 2021-06-25 22:16:27 +02:00
in0finite
417272e027 ... 2021-06-25 22:12:46 +02:00
in0finite
877ad97e04 determine time offset based on rotation of object 2021-06-25 22:11:26 +02:00
in0finite
a214441b94 can now correctly detect red/yellow/green lights 2021-06-25 21:30:31 +02:00
in0finite
a7b7ac1e9b use InvokeRepeating() 2021-06-25 20:28:11 +02:00
in0finite
66391fcb58 fix infinite loop 2021-06-25 19:13:40 +02:00
in0finite
2193aeaea1 traffic lights should be working 2021-06-25 18:56:52 +02:00
in0finite
06a277acd2 update lights in StaticGeometry 2021-06-25 15:51:00 +02:00
in0finite
fc6af2392e implement world lights 2021-06-25 14:37:24 +02:00
in0finite
d59c2c7ede remove light game objects 2021-05-04 21:24:13 +02:00
in0finite
f72cd743a3 display current time in UI 2021-05-04 20:55:01 +02:00
in0finite
197089aab3 (de)activate time objects based on current time 2021-05-04 19:54:47 +02:00
in0finite
49596eb613 load TOBJ objects 2021-05-03 21:24:48 +02:00
in0finite
71fb48f481 fix sync 2021-05-03 04:18:59 +02:00
in0finite
613767d6d7 attempt to sync 2021-05-03 03:00:22 +02:00
in0finite
50e8cef69a rename class 2021-05-03 01:59:33 +02:00
in0finite
46e76e7895 rename file 2021-05-03 01:57:34 +02:00
in0finite
bcf74a342d update light angle every frame 2021-05-03 01:55:41 +02:00
in0finite
6b807e2d98 ... 2021-05-03 00:17:08 +02:00
in0finite
2da430251c remove unused code 2021-05-02 23:51:37 +02:00
in0finite
378a92794d ... 2021-05-02 23:02:04 +02:00
in0finite
b459f62e73 implement daytime manager 2021-05-02 23:01:31 +02:00
in0finite
b963a95d85 wip 2021-04-26 00:43:30 +02:00
in0finite
38e1d4f0b2 set mesh vertex colors 2021-04-25 23:16:16 +02:00
in0finite
25c3954256 load night colors 2021-04-25 21:15:53 +02:00
in0finite
f87eb89c63 create LightSource script 2021-04-18 00:07:49 +02:00
in0finite
91491a19f1 load lights info 2021-04-17 22:15:07 +02:00
in0finite
072b7f128e change plugins folder name 2021-03-05 21:55:56 +01:00
in0finite
d5d15876fd load plugins from Start() 2021-03-05 21:55:09 +01:00
in0finite
ab4f1e00d9 change SEO 2021-03-05 21:32:49 +01:00
in0finite
f96be81166 skip font loading because fonts are not used anywhere 2021-02-28 22:57:29 +01:00
in0finite
0589ccb039 exit aim & fire states if ped is not holding a weapon 2021-02-23 00:10:11 +01:00
in0finite
c52fd29de8 don't display inflicted damage for the same player 2021-02-22 23:56:58 +01:00
in0finite
9e7378d1ca exit drive-by state if ped doesn't have gun weapon 2021-02-22 23:20:01 +01:00
in0finite
fb2f17792e unsupported vehicles will not cause spamming error messages - they are destroyed 2021-02-22 22:19:15 +01:00
in0finite
000a8a6cc9 revert adaption 2021-02-22 20:21:14 +01:00
in0finite
16380a4fe7 adapt all scripts to command system - stop using PlayerRequests 2021-02-22 19:43:17 +01:00
in0finite
fb332a40c0 add flag "addWeaponsToSpawnedPlayers" 2021-02-21 02:35:26 +01:00
in0finite
985054b648 add Ped.onAwake event 2021-02-21 01:39:39 +01:00
in0finite
6e23e3a97c add Ped.onStart event 2021-02-21 01:20:20 +01:00
in0finite
1970c945aa add SpawnHandler - spawn positions can be overridden 2021-02-20 17:04:17 +01:00
in0finite
a729fa7692 add 'attackingPlayer' to DamageInfo 2021-02-19 22:08:37 +01:00
in0finite
16f991db98 remove commented code 2021-02-19 20:35:46 +01:00
in0finite
e711eaae58 fix plugin loading 2021-02-19 20:35:38 +01:00
in0finite
98e110881a move file to another folder 2021-02-19 18:30:10 +01:00
in0finite
7e97945021 add Ped.onDamaged event 2021-02-19 02:55:09 +01:00
in0finite
ec436c6037 add plugin loading and game modes 2021-02-19 02:22:03 +01:00
in0finite
104f627bd3 extract into static function 2021-02-13 22:52:43 +01:00
in0finite
0d3d8e3dce remove old code 2021-02-13 22:44:22 +01:00
in0finite
7b4d256008 cache shader property ids 2021-02-13 22:38:35 +01:00
in0finite
ec660c368c set vehicle lights' intensity to 0 by default 2021-02-13 22:22:03 +01:00
in0finite
2232f4327f fix FPS drop on Android 2021-02-13 22:18:27 +01:00
in0finite
899711abda add ability to specify gui style for area 2021-02-06 23:20:21 +01:00
in0finite
f9faff6c67 don't detach ragdoll when ped is killed in a vehicle, except if vehicle exploded 2021-02-06 21:12:41 +01:00
in0finite
3267daa543 state classes handle killing of ped 2021-02-06 21:11:14 +01:00
in0finite
ac56764618 add "Dead body traffic per player" stat 2021-02-06 20:07:53 +01:00
in0finite
6f21cc8bf0 destroy all rigid bodies on clients except for the root bone - they work for themselves, and bones look deformed and stretched 2021-02-06 19:20:21 +01:00
in0finite
d525a99575 sync velocity only for root bone 2021-02-06 19:18:36 +01:00
in0finite
ae834f63c7 add flags to sync data 2021-02-06 17:19:35 +01:00
in0finite
dac7f81574 add setting for ragdoll interpolation mode 2021-02-06 03:16:36 +01:00
in0finite
3e73a557f2 set vehicle's rigid body CollisionDetectionMode to continuous dynamic 2021-02-06 02:39:56 +01:00
in0finite
af54f74847 optimize network traffic for ragdolls - sync only rigid bodies - traffic should be 4 KB/s for 1 ragdoll 2021-02-06 01:29:55 +01:00
in0finite
964a76685e set collision detection mode to ContinuousDynamic - seems that leftover parts no longer can go through ground 2021-02-05 23:40:30 +01:00
in0finite
7df6fcd135 more limitations on client ... 2021-02-05 01:08:07 +01:00
in0finite
93a1c7aaf0 use RigidBody's position for syncing, not transform's 2021-02-05 01:06:11 +01:00
in0finite
c4699859e1 add option to destroy wheel colliders on client 2021-02-05 01:04:37 +01:00
in0finite
c6bd9fef9a sync rpm and properly rotate wheel 2021-02-04 23:18:01 +01:00
in0finite
b0ec6417c7 extract function 2021-02-04 23:17:12 +01:00
in0finite
f6fe21cbdb sync y position of wheel 2021-02-04 22:21:16 +01:00
in0finite
91bc7547a5 don't use gravity and don't detect collisions on client 2021-02-04 22:19:34 +01:00
in0finite
9caf2df790 set interpolation on vehicle rigid body 2021-02-04 22:17:26 +01:00
in0finite
f17824e237 reset velocity on clients if it is not synced 2021-02-04 22:14:10 +01:00
in0finite
0c20894a31 add namespace 2021-01-31 20:58:44 +01:00
in0finite
e6a48d4bf6 load all IMG archives that are found in loose archive 2021-01-31 20:08:48 +01:00
in0finite
336db81e51 continue if failed to load cursor texture 2021-01-31 03:29:51 +01:00
in0finite
c6dea949cf add possibility to skip minimap load 2021-01-31 03:21:02 +01:00
in0finite
fed4e987f9 extract function 2021-01-31 03:12:22 +01:00
in0finite
63c27c28a9 load anim groups using ArchiveManager 2021-01-31 02:07:57 +01:00
in0finite
cf322da937 set invariant culture for all threads 2021-01-30 18:49:46 +01:00
in0finite
1a5e433e28 ... 2021-01-26 23:30:36 +01:00
in0finite
df730095f3 use ConfigManager to load config 2021-01-26 23:29:01 +01:00
in0finite
406af30d90 move script to another folder 2021-01-12 23:17:27 +01:00
in0finite
9f83eadabb add namespace 2021-01-12 23:12:23 +01:00
in0finite
cfab2fec73 improve master server's client 2021-01-12 23:11:10 +01:00
in0finite
c0167903eb Merge remote-tracking branch 'origin/dev' into feature/ragdoll 2021-01-12 22:12:37 +01:00
Spider134
9ef83a1ab5
Implement master server (#102)
* Added font importing

* Revert "Added font importing"

This reverts commit 31f3463097.

* Fix Loader.cs formatting

* Fix texture issue

* Revert "Fix texture issue"

This reverts commit 79c44f8069.

* Update FontsImporter.cs

* Add master server client

* Remove curly bracket

* Add missing tab and fix a issue

* Update MasterServerClient.cs

* Remove IP and fix an issue

* Added feedback for when a user refreshes the internet tab and added an error message when server registration fails.
2021-01-12 22:06:38 +01:00
in0finite
a713853140 Merge remote-tracking branch 'origin/dev' into feature/ragdoll 2021-01-12 21:58:27 +01:00
in0finite
b7ab28fedf add "num rigid bodies in dead bodies" to misc stats 2021-01-08 03:00:03 +01:00
in0finite
ebaa36fb1a add "num bones in dead bodies" to misc stats 2021-01-08 02:57:39 +01:00
in0finite
be97e40457 cleanup 2021-01-08 02:52:10 +01:00
in0finite
2451514db1 use custom serialization 2021-01-08 02:40:45 +01:00
in0finite
4b20f5de34 ... 2021-01-08 00:18:46 +01:00
in0finite
38e205efc4 found almost perfect solution 2021-01-07 23:21:28 +01:00
in0finite
c8b44837af fix comments 2021-01-07 22:16:51 +01:00
in0finite
dcc65fa8c5 tried to use MovePosition()/MoveRotation(), but it doesn't work 2021-01-07 21:43:03 +01:00
in0finite
34b9613782 don't set rigid body to kinematic - it behaves a little better with high velocity 2021-01-07 21:35:14 +01:00
in0finite
9267660a97 configure interpolation in Inspector 2021-01-07 21:02:12 +01:00
in0finite
2051451095 fix commented code 2021-01-07 20:59:36 +01:00