Commit graph

248 commits

Author SHA1 Message Date
in0finite
ae3ee460c8 ... 2021-07-24 00:27:26 +02:00
in0finite
3159d3ed97 add setting for player name 2021-07-24 00:27:02 +02:00
in0finite
5cbdf1314b don't save setting if it's equal to default value and it's not saved already 2021-07-18 21:02:28 +02:00
in0finite
f3a7bcc72a add ability to specify serialization name for settings 2021-07-18 20:24:20 +02:00
in0finite
32c0be1af2
new world loading system (#110)
* wip

* much faster world creation

* add StaticGeometryInspector

* disable child/parent logic and fading

* rename

* (de)activate objects based on parent

* set draw distance based on layers

* ...

* wip

* wip

* wip

* remove unused param

* prevent concurrent modification

* ...

* catch exceptions when notifying

* ...

* notify about area, not objects

* limit public access to Area

* ...

* ...

* allow public access

* add public api

* adapt code

* pass callback to ctor

* adapt focus points

* fix

* fix intersection check

* support rectangles

* adjust parameters in prefab

* this should fix IsInsideOf()

* ...

* ...

* fix getting area by index

* create area if not exists

* ...

* ...

* ...

* wip for distance levels

* remove constraint on generic parameter

* add some validation

* fix

* fix draw distance per level

* change time of day in which lights are visible

* add todos

* don't use id for UnRegisterFocusPoint()

* use hash set for storing focus points

* add 1 more level

* mark area for update only if visibility changes

* profile WorldSystem calls

* add some profiling sections

* limit time per frame for LoadingThread

* switch custom concurrent queue

* copy jobs to buffer

* rename

* change max draw distance setting

* wait one more frame

* try to remove 801 distance level to remove holes

* attempt to hide interiors, but failed

* delete no longer needed script

* optimization

* some error checking

* add camera as focus point

* dont add camera as focus point in headless mode

* working on load priority

* fix bug - load priority finished

* ...

* small optimizations

* ...

* ...

* remove unneeded variable

* add fading

* dont do fading in headless mode

* fadeRate available in inspector

* change fade rate

* take into account if geometry is loaded when checking if object should be visible, and if fading should be done

* small optimization

* cache IsInHeadlessMode

* display Instance info in inspector

* move interiors up in the sky

* rename

* adapt code to different y pos of interiors

* refactor

* fix finding matched enex for enexes that lead to the same interior level

* display new world stats

* rename

* rename class

* ...

* ...

* extract function

* extract parameters into a struct

* add focus point to dead body

* add focus point to vehicle

* add focus point to vehicle detached parts

* remove OutOfRangeDestroyer from vehicle, and destroy vehicle if it falls below the map

* dont use focus points on vehicle and vehicle detached parts, when not on server

* add focus point for npc peds

* add possibility to set timeout during which focus point keeps revealing after it's destroyed

* adapt UnRegisterFocusPoint() to timeout

* rename

* adapt code

* cleanup MapObject class

* ...

* converting to `lock()`

* optimize method: use 1 lock instead of 3

* call OnObjectFinishedLoading() instead of AddToLoadedObjects()

* ...

* make sure it's main thread

* AsyncLoader is no longer thread safe

* convert static members to non-static in LoadingThread

* fix

* ...

* store indexes for each area

* impl GetAreaCenter()

* calculate load priority based on distance to area, not objects ; limit time per frame ; sort area in Cell, not in concurrent SortedSet ;

* add support for changing draw distance at runtime

* delay setting the new value by 0.2 s

* have a separate default max draw distance for mobile platforms

* adjust y axis world params so that number of visible areas is reduced

* remove "camera far clip plane" setting

* rename

* document flags

* rename

* disable shadow casting and receiving for some objects

* allow casting shadows for LODs with large draw distance

* remove "WorldSystem" layer

* revert layer
2021-07-18 06:03:43 +02:00
in0finite
08ccd6f9ee ... 2021-05-04 21:28:47 +02:00
in0finite
d73fd9e163 display day time UI even when local ped is not alive 2021-05-04 21:21:13 +02:00
in0finite
f72cd743a3 display current time in UI 2021-05-04 20:55:01 +02:00
in0finite
d5f3657151 ... 2021-05-03 02:00:55 +02:00
in0finite
50e8cef69a rename class 2021-05-03 01:59:33 +02:00
in0finite
91f136b97c add time scale to day-time window 2021-05-03 01:54:26 +02:00
in0finite
b459f62e73 implement daytime manager 2021-05-02 23:01:31 +02:00
in0finite
805eaefea7 game modes can be selected ; selected game modes are activated when server starts 2021-03-02 23:09:08 +01:00
in0finite
2c4521200d console subscribes to log event before any other script executes 2021-03-01 02:53:03 +01:00
in0finite
04153d6cc0 chat is visible when local ped is dead 2021-03-01 02:10:27 +01:00
in0finite
8a74156e94 ... 2021-03-01 01:25:31 +01:00
in0finite
9d5039edfe improve chat UI 2021-02-28 21:15:27 +01:00
in0finite
afb443d269 don't update chat UI in headless mode 2021-02-27 23:17:56 +01:00
in0finite
bb8e18195d automatically refresh master-server when JoinGame window is opened 2021-02-27 18:07:52 +01:00
in0finite
92b1352cf5 make "Internet" the default tab in JoinGame window 2021-02-27 17:30:55 +01:00
in0finite
75503c74fd use only Y euler 2021-02-27 17:03:06 +01:00
in0finite
e21ef25835 players can specify model id for their ped or stalker 2021-02-22 21:26:57 +01:00
in0finite
000a8a6cc9 revert adaption 2021-02-22 20:21:14 +01:00
in0finite
700e9e9e44 some more adaptions 2021-02-22 19:53:41 +01:00
in0finite
16380a4fe7 adapt all scripts to command system - stop using PlayerRequests 2021-02-22 19:43:17 +01:00
in0finite
e649952aa9 don't show "..." button in Peds window on clients 2021-02-22 17:44:29 +01:00
in0finite
6eb48ad5f3 remove WorldStatsWindow script 2021-02-20 16:21:01 +01:00
in0finite
82c6df722b change namespace 2021-02-19 20:36:07 +01:00
in0finite
ec436c6037 add plugin loading and game modes 2021-02-19 02:22:03 +01:00
in0finite
899711abda add ability to specify gui style for area 2021-02-06 23:20:21 +01:00
in0finite
933c3ed089 improve gui 2021-02-06 23:06:43 +01:00
in0finite
845c0c98fa add checkbox for registering at master server 2021-01-31 23:38:01 +01:00
in0finite
e6c33e14ad some adjustments for StartGame window 2021-01-31 22:44:15 +01:00
in0finite
8659ae57b7 disable Start button while server is active 2021-01-31 21:18:30 +01:00
in0finite
a4ddd0fc0c continue if failed to load arrow textures 2021-01-31 03:45:14 +01:00
in0finite
8780e3a0d6 adjust window size 2021-01-28 15:47:56 +01:00
in0finite
c59099dcf0 use only 1 message box for displaying errors 2021-01-28 15:01:22 +01:00
in0finite
2848638d8c re-enable gui - fix bug when window could not be dragged 2021-01-28 13:13:01 +01:00
in0finite
2c2a82ff7c disable IP button while client is connecting 2021-01-28 13:07:28 +01:00
in0finite
93fbe15ab1 use centered label style 2021-01-28 13:01:39 +01:00
in0finite
ee89445e6f show message box when failed to refresh master server 2021-01-27 01:51:12 +01:00
in0finite
b4c0df123c extract function 2021-01-27 01:34:53 +01:00
in0finite
0d7ac7b6b4 don't refresh servers from Start() 2021-01-27 01:29:00 +01:00
in0finite
df730095f3 use ConfigManager to load config 2021-01-26 23:29:01 +01:00
in0finite
3a662c34c8 adjust width 2021-01-26 23:01:20 +01:00
in0finite
d22e89bdf0 improve JoinGameWindow 2021-01-26 22:46:14 +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
17f6aaeeda peds are killed with a separate function ; ragdoll is detached only when peds are killed, not destroyed 2021-01-05 05:18:47 +01:00
in0finite
3a5e237e06 add button to remove all dead bodies 2021-01-05 03:09:45 +01:00