Create new Playerobject first on respawn marker and move Player +
Playerobject at least together to final position.
Seems to help against login issues as loadout is more accurate
broadcasted to client.
Configs:
-Custom wrecks : ClassName string expected
-Custom locations : Posistion Array{x,y,z} expected
Description:
-This upgrade was to provide maps without the built-in terrain objects
"SHIPWRECK" to have this feature available with a few custom locations
added to the servers config.
Function Changes:
-Custom Locations and Wrecks Classnames are pulled from the config
variable.
-Wrecks are created and added to the already gathered array of Terrain
Objects "SHIPWRECK".
-On Maps without these terrain objects, the original array will be
empty[], and then the custom locations will populate it from there.
-On Maps with these terrain objects, the custom locations are added to
the already populated array of "SHIPWRECK"'s and will then become part
of the random selection of all known shipwrecks and custom locations.
Remember custom shipwrecks have a distance check and will stop a loot
spawn if there is already another shipwreck within the configured
amount.
- Fixed usedItemRepack removes all same items with same rounds
- removed action "gear" by opening Cargo Container
- removed StorageInit (EH Killed), if Storage is indestructible
- Spawn Vehicles near 0 and port them after all is loaded to final
position (prevent collide)
- increased Altis World size to 25000 (better Vehicle / Trader Spawn)
- Removed disable Simulation here, because desimulated objects need a
long time to broadcast the correct position. So we only desimulate them
on next restart
- Removed reveal, because it has no effect in my tests.
- Moved the position set code more to the top of this script, as it has
a positive effect on position set performance
- Added an option to completely disable Simulation for specific Base
Parts.
- Added Base Parts without animations to this array.
- Removed Base Objects Init (mpAddEventhandler "mpKilled") from
indestructible Base Objects, as it is not needed.
- Moved Dynamicsimulation server side (not needed client side)
- Resorted epochonfig.hpp
All changes are running on our Server without any problems and with a
good performance boost, as the dynamicsimulationhandler has not to
handle a few thousand objects anymore