Jump to content

Bug when placing ladders

Closed 2.8.9 2.9.0

Snaplatack
Snaplatack

Posted

Hello. I wasn't sure if this has been said before but I can place ladders horizontally only in raidable bases. When I copy paste bases, I cannot place them horizontally and on player bases I cannot place them horizontally. 

nivex

Posted

heya. ladders are placed vertically in raidable bases (up and down) which is how the game does it. it should not be possible to place them horizonally (left and right). I tested for you and it functions normally. perhaps you have a plugin altering this

Snaplatack

Posted

3 minutes ago, nivex said:

heya. ladders are placed vertically in raidable bases (up and down) which is how the game does it. it should not be possible to place them horizonally (left and right). I tested for you and it functions normally. perhaps you have a plugin altering this

Weird cause I have nothing else that does this. The only other plugin that has anything with ladders is AntiLadderandTwig. I unloaded it and tried it again and it still does it only in raidable bases

nivex

Posted

I'm not sure how you are able to do this then. is there some new ladder that I'm not aware of?

Snaplatack

Posted

3 minutes ago, nivex said:

I'm not sure how you are able to do this then. is there some new ladder that I'm not aware of?

Nope. I can recheck just to make sure I don't have anything. 

nivex

Posted

ok, let's try this then. edit the .cs

change line 2365 from

Quote

Quaternion rot = Quaternion.LookRotation(constructionType == ConstructionType.Barricade ? (t.position.WithY(0f) - hit.point.WithY(0f)).normalized : hit.normal);

to

Quote

Quaternion rot = Quaternion.LookRotation(item.info.shortname == "ladder.wooden.wall" ? hit.normal : (t.position.WithY(0f) - hit.point.WithY(0f)).normalized);

and line 2375 from

Quote

if (constructionType == ConstructionType.Ladder && hit.GetEntity() is BaseEntity hitEntity)

to

Quote

if (hit.GetEntity() is BaseLadder hitEntity)

 

Snaplatack

Posted

1 hour ago, nivex said:

ok, let's try this then. edit the .cs

change line 2365 from

to

and line 2375 from

to

 

Currently out. I will test tonight. Thanks for the quick response 😄

  • Like 1
Snaplatack

Posted

Did not work. I can still place them. 

 

Snaplatack

Posted

I can send a vid in discord of whats happening

 

nivex

Posted

I dont see how that is possible. surely it is a plugin or mod breaking it

Snaplatack

Posted

6 minutes ago, nivex said:

I dont see how that is possible. surely it is a plugin or mod breaking it

Idk how though. Is there a debug I could do to see if its RaidableBases?

 

nivex

Posted

not necessarily, a plugin can modify the rotation by multiple means such as on spawn.

do you have a test server

Snaplatack

Posted

I do

2 minutes ago, nivex said:

not necessarily, a plugin can modify the rotation by multiple means such as on spawn.

do you have a test server

 

nivex

Posted

ok. load up Raidable bases and copypaste only and try it out there

nivex

Posted (edited)

@Snaplatack

I just got a chance to look at the video you sent me. you can disregard everything I said above. I was mistaken in what you were telling me

I thought you meant the ladders were rotating on walls horizontally, rather than being able to deploy them horizontally such as on roofs or ceilings. 😄

ya, I think this is fine, unless you see it as a problem?

 

Edited by nivex
Snaplatack

Posted

3 minutes ago, nivex said:

@Snaplatack

I just got a chance to look at the video you sent me. you can disregard everything I said above. I was mistaken in what you were telling me

I thought you meant the ladders were rotating on walls horizontally, rather than being able to deploy them horizontally such as on roofs or ceilings. 😄

ya, I think this is fine, unless you see it as a problem?

 

The only problem I would have with this is that if players can counter a raid, the owner of the raid can put ladders like that to stop someone from getting into the base. 

nivex

Posted

true, but you can deploy them normally to obstruct entry too

I will see if I can block it though

Snaplatack

Posted

3 minutes ago, nivex said:

true, but you can deploy them normally to obstruct entry too

I will see if I can block it though

Its not intentional in default rust. If it was normal, I wouldnt care. I just dont want unexpected outcomes for players.

nivex

Posted

many things in this plugin aren't in default rust, but I did say I'd try to block it =p

  • Like 1
nivex

Posted (edited)

alright, may have a solution. change:

Quote

if (!(player.GetActiveItem() is Item item) || !IsConstructionType(item.info.shortname, ref constructionType))

to

Quote

if (!(player.GetActiveItem() is Item item) || !IsConstructionType(item.info.shortname, ref constructionType) || item.info.shortname == "ladder.wooden.wall" && Mathf.Abs(hit.normal.y) > Mathf.Max(Mathf.Abs(hit.normal.x), Mathf.Abs(hit.normal.z)))

 

 

Edited by nivex
nivex

Posted

Changed Status from Pending to Closed

Changed Fixed In to Next Version

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.4k

Files Sold

Total number of files sold.

2.4m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.