Fix up issues related to +use, doors, buttons, and such#1792
Fix up issues related to +use, doors, buttons, and such#1792TimGoll merged 21 commits intoTTT-2:masterfrom
Conversation
fixes a billion bugs related to doing +use on map entities
|
this should be ok for testing now, i've tested it on a bunch of maps and it seems to work like it does in ttt (the main goal of this pr is to restore parity with ttt's +use behaviour with map entities) gonna mention @Crashington since they seem to have had issues with ttt2 stuff in their maps as well, pls let me know if those issues are fixed with this pr also i'm gonna restore crowbar unlocking/opening behaviour to be in line with base ttt, then i'll open this pr after that |
|
I will try to see if this breaks any things that I implemented with external addons |
|
Seems like your changes broke this addon from me: https://steamcommunity.com/sharedfiles/filedetails/?l=indonesian&id=3335175627 other than that everything seems to work fine right now |
i'll check later, what's broken specifically? |
The addon is able to overwrite the name and description for buttons - that seems to no longer work. Well, maybe it was on me. I just notived I have multiple version of this MC map. Maybe I chose the wrong one. I will test again! |
oh right i forgot, ttt is supposed to "cancel" your actual +use if you're pointing at a "special use" entity like corpses and traitor buttons and such, probably just needs a |
|
Confirmed on Not even the admin-info is working: This should show info about the button (like its ID etc) Here's the relevant code: https://github.com/TTT-2/ttt2-button_info/blob/main/lua/terrortown/autorun/client/cl_buttoninfo_tid.lua#L8-L31 If the ent is valid on the server and the client, then this should work |
|
@TimGoll seems to work fine for me |
…the centre of the entity and in fact it can even return Vector(0, 0, 0) so the correct function to use for this is Entity:WorldSpaceCenter()
|
@wgetJane That is so weird, because it still doesn't work for me |
|
@wgetJane you're right, oof. Somehow I enabled minimal mode for targetID: works now. So consider this resolved |
|
Your changes also fix #1627 Even the vehicle on grovestreet now works again! |
TimGoll
left a comment
There was a problem hiding this comment.
Thank you so much for looking into this issue. That looks really good to me. Besides the one question, could you add to your changelog that you also fixed the car usage?
|
it is with a heavy heart that i must report that the most recent update seems to have not fixed everything it should have. i am sure i am on the newest version since i have the new c4 settings available in the f1 menu |
it doesn't work in base ttt either, the button is locked using the
this might be caused by the |
|
oh sorry on the waterworld thing then. weird that its locked but thats irrelevant here then. |
|
The health station issue is handled in TTT2. Maybe you accidentally removed our continuous use implementation? |
|
i wouldnt know how i would have done that. we use the normal workshop version on the server. unless another addon could be somehow interfering? we dont have anything that directly interacts with the health station anyway |
|
probably meant me, not you, though i haven't touched the health station at all, just forgot to test it for this pr i'll figure out a solution later, was my fault anyway for not checking the health station (i just tested the traitor's placeables lmao) |
It is not part of the health station per se, but part of the use code. Holding E retriggers use 10 times per second. In theory this is an engine feature. I reimplemented it in lua. Dunno which approach would be best with your changes though |
fixes a bug re-introduced by #1792







fixes #1775
fixes #1691
fixes #1633
fixes #1626