Help with glass (Break and after timer respawn)

Discussion in 'Mapping Questions & Discussion' started by JantsoP, Aug 28, 2013.

  1. JantsoP

    JantsoP L1: Registered

    Messages:
    23
    Positive Ratings:
    0
    So im editing the ctf_vikings_final for my server and players have told that i need to make it so the glass respawns after a certain ammount of time or its way too easy. I have tried whole day for this but still havent got proper working respawn for glass. So can anyone help me with this?
     
  2. Egan

    aa Egan

    Messages:
    1,304
    Positive Ratings:
    1,486
    As I told you in chat,

    While the glass brush is selected, hit Ctrl + T. this turns the brush into an func entity, change it from a func_detail to a func_breakable, name it, and click the Outputs tab. Click Add.. OnBreak glassTemplate ForceSpawn (after a delay of) 30.

    Now create a point entity as a point_template. change its name to glassTemplate and in one of the template keyvalues place the name of your func_breakable.

    So the whole thing goes: glass onbreak template forcespawn, which spawns in another glass 30 seconds later.

    Edit for the sake of information:
    you're going to need another point entity called logic_auto outputs onMapSpawn template forcespawn since point_templates aren't autospawned
     
    Last edited: Aug 28, 2013
  3. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,527
    Nay, point_template has a flag for "do not remove template entities" that leaves the originals in place.
     
    • Thanks Thanks x 1
  4. JantsoP

    JantsoP L1: Registered

    Messages:
    23
    Positive Ratings:
    0
    Now it works like a charm. Thanks to you both ^^