Other Structures for Engies to repair

Discussion in 'Mapping Questions & Discussion' started by Icemapstryka, Feb 17, 2008.

  1. Icemapstryka

    Icemapstryka Guest

    Positive Ratings:
    0
    Is it possible to give an engineer, say in a map with a destructible wall, the ability to repair it as if were one of his buildings? He could whack it with his wrench and then it could use up metal perhaps. Maybe it could go up gradually in phases and the more engineers are working on it putting more metal into it the faster it would be back to perfect health?
     
  2. spaceweasels

    aa spaceweasels

    Messages:
    219
    Positive Ratings:
    335
    Describing it the way you have, TF2 by itself wouldn't be able to do it. You'd have to mod the game itself to accomplish that.

    The only way to get TF2 to do something like that, is to have a series on func_brushes tied to a timer_relay tied to a trigger. This way the bricks get rebuilt one by one as long as someone is near the wall. But that's the point, it doesn't have to be engineers, it could be anyone. They don't even need to do anything, they could stand there or keep fighting and the wall would still build itself.

    Anyway, that's what comes to mind. Someone else, who has greater skill in Script-Fu, might have a better solution.
     
  3. trackhed

    trackhed L3: Member

    Messages:
    106
    Positive Ratings:
    2
    you could make a trigger that only responds to whatever type of damage melee weapons do

    filter_damage_type on a prop or something that has OnDamage in its I/O
     
  4. Doran

    Doran L1: Registered

    Messages:
    21
    Positive Ratings:
    0
    building on what trackhed said, isn't it possible to filter by class somehow?

    Or is that still broken?
     
  5. Scotland Tom

    Scotland Tom L6: Sharp Member

    Messages:
    332
    Positive Ratings:
    64
    Not just broken, never implemented. You can't filter by class in TF2.
     
  6. Icemapstryka

    Icemapstryka Guest

    Positive Ratings:
    0
    Then using that trigger method. With the map I'm using perhaps there can be some kind of construction equipment that any class can use, but I want some kind of catch. Maybe two people need to operate it.... or maybe it takes some kind of fuel? I want to make a map where there's destructible objectives that become vulnerable only when certain conditions are met and then able to be repaired only when certain conditions are met, a simple example I'm thining of is a wall that is only destructible when a cap point nearby is taken. Either that or it has extremely high hp regeneration until the cap point is taken.
     
  7. trackhed

    trackhed L3: Member

    Messages:
    106
    Positive Ratings:
    2
    i would say do some testing with damage filtering on the walls for explosions or blasts and make it so only a demo or soldier can damage it