1. Hey Guest, welcome to the new forums. Be sure to check out this thread to get all the information you need on the cool new stuff!

getting stuck in my models

Discussion in 'Mapping Questions & Discussion' started by Kill_the_Bug, May 5, 2012.

  1. Kill_the_Bug

    Kill_the_Bug L14: Epic Member

    Messages:
    1,307
    Thanks Received:
    179
    hi I need red/blue to ride a mining cart to a certain point but I'm getting stuck - ant ideas on how not to get stuck in a model?

    sorry forgot to add it's a func_train
     
    Last edited: May 5, 2012
  2. Fr0Z3nR

    aa Fr0Z3nR I do things sometimes.

    Messages:
    5,543
    Thanks Received:
    3,626
    If you have a func_train, and it is parented to the cart (which is a prop_dynamic) then it will cause those issues.

    You should make it into a prop_physics_override. Like how the Payload cart is set up.
     
  3. Terwonick

    Terwonick L6: Sharp Member

    Messages:
    259
    Thanks Received:
    84
    Cool, that fixes a problem I was going through!
     
  4. Kill_the_Bug

    Kill_the_Bug L14: Epic Member

    Messages:
    1,307
    Thanks Received:
    179
    Ok I just tried that and my carts just fell out of the sky - the train still works (cause I can here it moving around the map) any more ideas?
     
    Last edited: May 5, 2012
  5. ics

    ics L5: Dapper Member

    Messages:
    233
    Thanks Received:
    47
    Follow this guide for setting up the cart https://developer.valvesoftware.com/wiki/TF2/Creating_a_Payload_Map

    However, it won't explain how exactly to make the cart so that it will also destroy dispensers and such from it's way. For example badwater and goldrush carts will do that, but barnblitz cart won't. It just goes through dispenser, own or enemy. The guide teaches you to do that destroy trigger in front of the cart but it doesn't seem to work. When i did my map, i got it working but it killed every player once cart turned uphill. Funny stuff.
     
    Last edited: May 5, 2012
  6. Kill_the_Bug

    Kill_the_Bug L14: Epic Member

    Messages:
    1,307
    Thanks Received:
    179
    Ok, I think I have found a working solution

    Using Froz3n's thing above I put an addtional fence/box aroung the cart that the player could jump into.

    I made it a func_brush - called it red/blue_cart_fence and have it turning on/off as it passes the pathtrack nodes.

    Seems to be working well.
     
  7. henke37

    henke37 L13: Stunning Member

    Messages:
    1,146
    Thanks Received:
    216
    The trick to making a trigger_hurt that doesn't damage players is to use a filter_classname that rejects "player". Parent it to the cart and there you go, buildings exploding on contact.
     
  8. Kill_the_Bug

    Kill_the_Bug L14: Epic Member

    Messages:
    1,307
    Thanks Received:
    179
    Sorry for the bump but it would appear that I have the cmplete opposite happening now - I can't stay in the cart it just goes right through me and I'm using the exact same coding as the original via a copy paste.

    Any ideas why it would work on map A but not on Map B? On Map A I'm stuck solid until I turn off my fence. On Map B nothing seems to be working and I've tried several diferent setups now to get me to stick back inside the cart (including the BSP yes/no option to allow you to ride around on a platform while inside the map.
     
  9. Mr. Happy

    Mr. Happy L6: Sharp Member

    Messages:
    309
    Thanks Received:
    143
    So you make a func_brush around the cart model and attached it to the func_train hoping that it would carry the prop_physics_override along with it? Without going into to much detail, don't. Just...no ;)

    When you make the prop_physics_override you will need to use a phys_constraint to attach it to the func_tracktrain. That is the proper way to attach the two and will prevent it from falling.
     
  10. Kill_the_Bug

    Kill_the_Bug L14: Epic Member

    Messages:
    1,307
    Thanks Received:
    179
    Yep double checked that - that's the way I had it working in the first place, then when I copy/pasted it into mp new map it no linger works - so I tried adding a brush
     
  11. Mr. Happy

    Mr. Happy L6: Sharp Member

    Messages:
    309
    Thanks Received:
    143
    Having a brush drag it along will give unpredicatble results, cause lag (as the server will need to calculate a LOT of networked physics) and the prop may even 'freak out' and escape from confinement.

    If the constraint stopped working than I suggest there is something else at fault, maybe you forgot to select part of the setup, made a typo or accidentally changed something else. There's no logical reason that something would work in one map and not in another unless they aren't the same. Try doing it over again double checking everything, in the main map.
     
  12. Kill_the_Bug

    Kill_the_Bug L14: Epic Member

    Messages:
    1,307
    Thanks Received:
    179
    ok got it working - THANKS!

    the track_train usually encases the model - so I recreated the train with a hole for the player to sit - works even better than before this way :)
     
    Last edited: Jul 24, 2012