Commit graph

25 commits

Author SHA1 Message Date
in0finite
b2495d3164 players can be server admins ; add command to authenticate player 2022-04-21 20:54:33 +02:00
in0finite
03ee73afee cache IP address of clients 2022-04-03 19:01:00 +02:00
Lukas
0445f29dfd
Feature/mirror upgrade (#127)
* Updated SyncDictionary usage in SyncedBag.cs

- Removed the extra class that is no longer needed for SyncDictionary's
- Removed OP codes (OP_DIRTY) switch case that no longer exists (superseded by OP_SET)

Signed-off-by: Lukas Olson <lukasolson@greyblockgames.com>

* Updated method names

Signed-off-by: Lukas Olson <lukasolson@greyblockgames.com>

* Updated more string sync dictionaries

Ped_Networking.cs
VehicleController.cs
Player.cs
SyncedServerData.cs

Signed-off-by: Lukas Olson <lukasolson@greyblockgames.com>

* Updated NetworkTime fields in NetStats.cs

Signed-off-by: Lukas Olson <lukasolson@greyblockgames.com>

* Updated syncData types

Signed-off-by: Lukas Olson <lukasolson@greyblockgames.com>

* Implemented conditional compilation to replace old isHeadless

Signed-off-by: Lukas Olson <lukasolson@greyblockgames.com>

* Updated hooks

* A few more syncDictionary upgrades

* Moved away from obsolete NetworkIdentity.spawned

* Updated SetDirtyBit to SetSyncVarDirtyBit in DeadBody.cs

* Updated ScriptingDefineSymbols for Mirror

* Updated JoinGameWindow.cs

* Use latest MirrorLite commit for submodule

* Use latest MirrorLite commit for submodule

* Reverted EditorSettings.asset to commit b1c9d38e3a

* Reverted JoinGameWindow.cs to commit b1c9d38e3a

* Changed method for headless mode in NetCmdLineHandler.cs

Changed from compiler defs to SanAndreasUnity helpers for determining headless mode in NetCmdLineHandler.cs

* Re-Added ConfigureHeadlessFrameRate override on CustomNetworkManager.cs

* Started updating JoinGameWindow.cs

- Commented out GUI errors
- Updated type 'DiscoveryInfo' to 'ServerResponse' in method ConnectFromDiscovery() params.
- Updated Connect() 'port' parameter to use type 'int' rather than 'ushort' as per Mirror conventions.

Co-authored-by: Lukas Olson <lukasolson@greyblockgames.com>
2022-04-02 20:15:08 +02:00
in0finite
a691232447 add player name 2021-07-23 22:59:44 +02:00
in0finite
92508905a3 ... 2021-07-18 21:12:40 +02:00
in0finite
b687faac8d rename 2021-07-18 21:07:27 +02:00
in0finite
71ea451b3b add Player.onDisable event 2021-02-22 15:52:46 +01:00
in0finite
11c0680c09 add some basic commands 2021-02-20 21:55:05 +01:00
in0finite
b365759ce9 impl SyncedBag 2021-02-19 21:45:54 +01:00
in0finite
da999023e9 log when player (dis)connects on client too 2020-05-31 19:09:44 +02:00
in0finite
2aabefe38c log 2020-05-31 19:09:44 +02:00
in0finite
00443679c9 ... 2020-05-31 19:09:44 +02:00
in0finite
5d2363d7fa detect dead connections 2020-05-31 19:09:44 +02:00
in0finite
d022f6bb41 add dates to some logs 2020-05-31 19:09:44 +02:00
in0finite
45897ebd9d Working on vehicle authority 2020-05-31 19:09:40 +02:00
in0finite
d2a5764624 Fix log 2020-05-31 19:09:39 +02:00
in0finite
1204ff9942 Log when player connects 2020-05-31 19:09:38 +02:00
in0finite
50c31a61be Log some info when player disconnects 2020-05-31 19:09:38 +02:00
in0finite
da380e0fa1 Kill player's ped after he disconnects 2020-05-31 19:09:38 +02:00
in0finite
18f83af5bf Add log message 2020-05-31 19:09:38 +02:00
in0finite
30cc4e0384 Add onStart event to Player 2020-05-31 19:09:37 +02:00
in0finite
bb8e416457 Change SyncVar to be a GameObject 2020-05-31 19:09:37 +02:00
in0finite
80c0507f0b Fixing Ped.Instance & Ped.IsLocalPlayer 2020-05-31 19:09:37 +02:00
in0finite
235adeee7b Working on player spawning 2 2020-05-31 19:09:37 +02:00
in0finite
06a2dc4c5f Create Player script 2020-05-31 19:09:37 +02:00