Make everything unbreakable!

Post Reply
User avatar
AiTechEye
Member
Posts: 1000
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: Sweden

Make everything unbreakable!

by AiTechEye » Post

Players that easly glitch break through protected walls when there are small lags, doors without lags, or a celling to easly fall into the buildnings.

Its too easy to get through everyting, except unbreakable things


why not make everything to unbreakable, then set the drop level when a player is poiting a block that is able to break?, namely uprotected and allowed by can_dig

same for buildable_to, so players can't glitch climb by placing blocks in protected areas

User avatar
sorcerykid
Member
Posts: 1847
Joined: Fri Aug 26, 2016 15:36
GitHub: sorcerykid
In-game: Nemo
Location: Illinois, USA

Re: Make everything unbreakable!

by sorcerykid » Post

The unbreakable group is set in the node definition, and cannot be applied to a single instance of a node in world.

Your idea has merit, but what you are suggesting would require an internal engine change. Perhaps one possible solution would be the addition of a param3, with bits for buildable, breakable, climbable, and walkable that could be inherited from the node definition, and thus resolved entirely on the client-side.

User avatar
Wuzzy
Member
Posts: 4803
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Re: Make everything unbreakable!

by Wuzzy » Post

That would be actually almost trivial to code. Just assign the player a hand which can't dig anything. The Lua API upports custom settable hands since a while.

Okay, there's a small problem: Nodes with the group dig_immediate can still be dug, no matter what.

User avatar
sorcerykid
Member
Posts: 1847
Joined: Fri Aug 26, 2016 15:36
GitHub: sorcerykid
In-game: Nemo
Location: Illinois, USA

Re: Make everything unbreakable!

by sorcerykid » Post

The player needs to be able to dig areas that they own. But due to client-side prediction, such checks would be very difficult to implement on the server side (even given my solution above)

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests