Is there a way to remove an decal in game?

Discussion in 'Mapping Questions & Discussion' started by Linking-Yellow, Jan 22, 2015.

  1. Linking-Yellow

    Linking-Yellow L1: Registered

    Messages:
    4
    Positive Ratings:
    0
    Hey guys,

    Does anyone know if there is a way to remove decals from in game. I specifically need to remove decals, not overlays. I have a script that dynamically places decals over logic points, and I want to be able to remove them when they are no longer necessary.
     
  2. hutty

    aa hutty

    Messages:
    470
    Positive Ratings:
    371
    .vmf files are stored in plain text ... so it shouldn't be too difficult to throw something together in processing or python (or programming language of choice) to do that.

    Alternatively you could use the find texture in a text editor and then manually edit out the chunks
     
  3. Linking-Yellow

    Linking-Yellow L1: Registered

    Messages:
    4
    Positive Ratings:
    0
    That's not what I mean. I have a script that places the decals in-game in places that I've placed some entities. Later, in the same game-session, I want to be able to remove them. I'm having trouble finding how to remove decals that have been placed by an infodecal. Thanks for replying though.
     
  4. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,527
    Can you not give them a name and issue the Kill input?
     
    • Thanks Thanks x 1
  5. Linking-Yellow

    Linking-Yellow L1: Registered

    Messages:
    4
    Positive Ratings:
    0
    No, the infodecal kills itself after it applies the decal to the wall, so it does not respond to any entity inputs once it is activated.
     
    Last edited: Jan 22, 2015
  6. KubeKing

    Server Staff KubeKing Back home in Jupiter, things are getting harder

    Messages:
    1,223
    Positive Ratings:
    1,420
    Hey, this probably won't work (or might not even be possible or feasible), but you could try creating a custom decal that is entirely clear and place it over wherever you need it. In the map, set all of the 'Render Order' values to at least 1, and make sure that the Render Order value of the new decal is 0.

    Also, edit from my limited experience with this community I know to tell you to don't deny the validity of Grand Poobah Boojum. You don't know how much power he holds in this community, and he could be coming for you rightOHNOHE'SGOTMERUN!!
     
  7. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,527
    No, he is right. It has been years since I've used decals so I wasn't really sure why that wouldn't work. I assumed it did not else this thread wouldn't be here, seemed like a good way to inquire as the the actual problem.
     
    • Thanks Thanks x 1
  8. KubeKing

    Server Staff KubeKing Back home in Jupiter, things are getting harder

    Messages:
    1,223
    Positive Ratings:
    1,420
    Oops, sorry for getting in the way, I need to go do somethingquicknowbye

    KubeKing4556 left chat.