Accepted Fix LifeTheRoof traitor tester

Discussion in 'Maps' started by DirkyJerky, Jun 10, 2017.

Thread Status:
Not open for further replies.
  1. Like with other fixes this map was originally modified for a different type of TTT gamemode, and needed to be fixed for the normal version of TTT.

    Here the traitor tester needed fixing.

    At minimum every `ttt_logic_role_reborn` entity just needs to have its class changed to `ttt_logic_role`.

    I was unable to recreate the methods the developers made to live-patch maps server-side, so I can't help :c. (specifically changing an existing entities class, and entities with non-existant classes seem to get deleted...)
     
    • Like Like x 2
    • Disagree Disagree x 1
  2. It's really easy, just use Entspy on the .bsp and change the entity name and done.
     
    • Disagree Disagree x 1
  3. Yea I can do that but the system used on these servers is that they use server-side Lua scripts to modify the vanilla map. They don't patch maps directly. The map that is downloaded is completely unmodified and "broken," if you were to use it in singleplayer.
     
    Last edited: Jun 10, 2017
  4. Mr. 7-Minute Wonder

    Mr. 7-Minute Wonder Regular Member

    Traitor testers are a crutch that alter the immersion of a game.
     
    • Agree Agree x 1
    • Funny Funny x 1
  5. Xproplayer

    Xproplayer VIP Silver

    No we actually use lua to edit the entities at map load. @Opalium want to work on this together?
     
    • Like Like x 2
  6. @Opalium here you go. I tested it on a local server, works fine there.
    Code:
    new_logic = ents.Create("ttt_logic_role")
    new_logic:SetKeyValue("Role", "1")
    new_logic:SetKeyValue("targetname", "ttt_logic_role_reborn_traitor")
    new_logic:SetKeyValue("OnPass", "light_traitor,TurnOn,,0,-1")
    new_logic:SetKeyValue("OnPass", "light_traitor,TurnOff,,5,-1")
    new_logic:SetKeyValue("OnFail", "light_inno,TurnOn,,0,-1")
    new_logic:SetKeyValue("OnFail", "light_inno,TurnOff,,5,-1")
    
     
    • Like Like x 1
  7. Opalium

    Opalium Stay Awesome Banned VIP Silver

    • Like Like x 1
    • Winner Winner x 1
Thread Status:
Not open for further replies.