Breakable Models?

Discussion in 'Mapping Questions & Discussion' started by xomp, Sep 6, 2014.

  1. xomp

    xomp L1: Registered

    Messages:
    33
    Positive Ratings:
    8
    I'm trying to figure out, how to make models break after x amount of damage is dealt. I understand this is possible with func_breakable, but cannot figure out if it's possible any other way. Additionally, I'm unable to see where I can specify a model with func_breakable (outside of Gib Model).

    Would anyone know a way to do this? Thanks
     
  2. Fr0Z3nR

    aa Fr0Z3nR Creator of blackholes & memes. Destroyer of forums

    Messages:
    6,391
    Positive Ratings:
    4,906
    Probably have the func-breakable soak the damage up, then "OnBreak > Set animation " on the model. And set the animation to something broken. Or spawn in gibs?
     
    • Thanks Thanks x 1
  3. xomp

    xomp L1: Registered

    Messages:
    33
    Positive Ratings:
    8
    Worked perfectly, thank you very much!
     
  4. xomp

    xomp L1: Registered

    Messages:
    33
    Positive Ratings:
    8
    I may have spoken too soon. My client shows the props gibs just fine. However, on my server the gibs do not appear and the model just disappears once destroyed. No idea why there are inconsistencies with this.. Any ideas?

    Here is an example in video format:

    Model breaks into gibs fine on Client:
    http://youtu.be/g3gH1lRUPXI

    Exact same Model breaks into glass gibs and disappears on Server:
    http://youtu.be/BdftBzGMomc
     
    Last edited: Sep 14, 2014
  5. Tumbolisu

    aa Tumbolisu  I ⌄ I 

    Messages:
    949
    Positive Ratings:
    936
    Dustbowl's Barrels
    sdk_cp_dustbowl
     
  6. xomp

    xomp L1: Registered

    Messages:
    33
    Positive Ratings:
    8
    Where do you find sdk_cp_dustbowl? It's not in my mapsrc folder.
     
  7. Faux Rhinoceros

    aa Faux Rhinoceros Also known as Dr. Element

    Messages:
    1,479
    Positive Ratings:
    1,369
    If you can't find the SDK version, perhaps you could settle with a decompiled version.
     
  8. xomp

    xomp L1: Registered

    Messages:
    33
    Positive Ratings:
    8
    Thanks -- it appears the barrels are "prop_physics_multiplayer". However, when I change my models to this type they become invisible? Or simply do not appear in the map. No idea why.
     
  9. Tumbolisu

    aa Tumbolisu  I ⌄ I 

    Messages:
    949
    Positive Ratings:
    936
    Models need to be able to be used as physics entities.
    While using the model browser thingy, click on the tab 'info'. If it doesn't have 'physics' checked, it aint gonna work. Only the checked stuff would be useable.
     
  10. Fr0Z3nR

    aa Fr0Z3nR Creator of blackholes & memes. Destroyer of forums

    Messages:
    6,391
    Positive Ratings:
    4,906
    To add to this, you can compile your models as physics objects. I'm unsure on how that works because I'm a scrub when it comes to modeling... But thats what you're looking for.
     
  11. xomp

    xomp L1: Registered

    Messages:
    33
    Positive Ratings:
    8
    Thanks -- The model I'm using does in-fact have physics checked in the info tab. Any other ideas?