Resource icon

Approved HomeSystem 2.6.5

No permission to download

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
I looked at the code for random spawn points. It doesn't seem very random to me.

When you connect to the game, if you have a saved avatar it is loaded and your last location is read. If you have deployed sleeping bags or beds (DeployedRespawn), one is selected randomly and you are spawned at a random point within 10m of it. If you don't have a DeployedRespawn then if the last location of the avatar is valid, you are spawned within 10m of it.

If it's not, then it looks to me like a respawn of another player is randomly selected and you're spawned within 10m of that. If all else fails, you are spawned at 0,0,0.

I'm thinking of adding an option to change what spawn points are loaded. The property is public, type SpawnPoint[], so it could be assigned a new array of SpawnPoints. The spawn points are stored as small objects with 2 properties, a vector3 and a quaternion.

Trivia: If you turn off pvp, sleepers, set crafting instant or reduced timescale, or turn off fall damage, your server is SetModded().
Code:
  public void UpdateModdedStatus()
  {
    if (server.pvp && sleepers.on && !crafting.instant && (double) crafting.timescale == 1.0 && falldamage.enabled)
      return;
    Rust.Steam.Server.SetModded();
  }
You sure? All the addjob stuff are commented.
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
Before i write so much stuff here, sorry for my bad english ;D

I have a big big Problem with this Plugin.
I install it on my Server, with /home it shows me all Stuff that i can Write in the Chat and i can save my
Home with /sethome 1.
But here are the Problem. I cant Port back to the Home with /home 1
There stand in the Chat that i will be Teleport back to home in 10 Seconds but nothing happend then.

What the hell i do wrong ? what can be the Problem ? Can you pls help me :(

[Settings]
run_timer=2
Cooldown=60000
safetpcheck=2
Maxhomes=2
Antihack=1
tpdelay=10
DistanceCheck=0
Distance=15
CheckCloseWall=0
movecheck=0
homesystemname=[HomeSystem]
;This is the roof glitch bypass
antiroofdizzy=0
randomlocnumber=8156
rejoincd=15
jointpdelay=7
https://github.com/dretax/JavaScript-Plugins/blob/master/HomeSystem/HomeSystem.js
Fixed it for you.
 

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
If your game is crashing it would not because of the code but Fougerite itself (Maybe?).
Just wondering, Are you using Fougerite 1.0.5? or MC6?
 

Marcos

Member
Trusted Member
Member
Aug 1, 2014
101
0
18
Good morning friends
I'll report some errors in the home system.
when the server is open direct, the home system starts to show errors,
I have no idea how to solve. Can you help?
I am sending this message to the error that has
 

Attachments

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
Good morning friends
I'll report some errors in the home system.
when the server is open direct, the home system starts to show errors,
I have no idea how to solve. Can you help?
I am sending this message to the error that has
Those errors are just my "bypasses" to avoid floodng. It means the player was null when the method was happening. Ignore It.
 

Marcos

Member
Trusted Member
Member
Aug 1, 2014
101
0
18
Those errors are just my "bypasses" to avoid floodng. It means the player was null when the method was happening. Ignore It.
right now always when these errors occur several times the plug stops working.
I have to restart server to return to work again.
have any tips to help me?
Thank you for your attention, your job is to showwww