Notices

getting stuck in my models  Thread Tools Reply
Old 05-05-2012, 12:33 AM   #1
Kill_the_Bug
Veteran Member
 
Kill_the_Bug is offline
Posts: 901
Thanks given: 310
Thanks received: 111

Default getting stuck in my models


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 by Kill_the_Bug; 05-05-2012 at 12:47 AM.
Reply With Quote
Advertisement
 
Advertisement
Advertisement Sponsored links

Old 05-05-2012, 08:20 AM   #2
Fr0Z3n
npc_contest_holder
 
Fr0Z3n's Avatar
 
Fr0Z3n is offline
Posts: 5,198
Thanks given: 3,156
Thanks received: 2,865
Blog Entries: 1

Default getting stuck in my models


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.

__________________

 
Reply With Quote
Old 05-05-2012, 10:04 AM   #3
Terwonick
L4: Senior Member
 
Terwonick's Avatar
 
Terwonick is offline
Posts: 259
Thanks given: 386
Thanks received: 83

Default getting stuck in my models


Quote:
Originally Posted by Fr0Z3n View Post
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.
Cool, that fixes a problem I was going through!

__________________
r/terwonickland - My blog
 
Reply With Quote
Old 05-05-2012, 11:54 AM   #4
Kill_the_Bug
Veteran Member
 
Kill_the_Bug is offline
Posts: 901
Thanks given: 310
Thanks received: 111

Default getting stuck in my models


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 by Kill_the_Bug; 05-05-2012 at 12:25 PM.
Reply With Quote
Old 05-05-2012, 12:28 PM   #5
ics
L3: Junior Member
 
ics is offline
Posts: 189
Thanks given: 46
Thanks received: 37

Default getting stuck in my models


Follow this guide for setting up the cart https://developer.valvesoftware.com/..._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.

__________________
http://www.ics-base.net/
 
Last edited by ics; 05-05-2012 at 12:30 PM.
Reply With Quote
Old 05-07-2012, 09:44 AM   #6
Kill_the_Bug
Veteran Member
 
Kill_the_Bug is offline
Posts: 901
Thanks given: 310
Thanks received: 111

Default getting stuck in my models


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.
 
Reply With Quote
Old 05-07-2012, 03:17 PM   #7
henke37
Veteran Member
 
henke37's Avatar
 
henke37 is offline
Posts: 865
Thanks given: 110
Thanks received: 148

Default getting stuck in my models


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.
 
Reply With Quote
Old 07-20-2012, 01:29 PM   #8
Kill_the_Bug
Veteran Member
 
Kill_the_Bug is offline
Posts: 901
Thanks given: 310
Thanks received: 111

Default getting stuck in my models


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.
 
Reply With Quote
Old 07-21-2012, 05:55 PM   #9
Mr. Happy
L4: Senior Member
 
Mr. Happy's Avatar
 
Mr. Happy is offline
Posts: 321
Thanks given: 61
Thanks received: 143

Default getting stuck in my models


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.
 
Reply With Quote
Old 07-21-2012, 11:39 PM   #10
Kill_the_Bug
Veteran Member
 
Kill_the_Bug is offline
Posts: 901
Thanks given: 310
Thanks received: 111

Default getting stuck in my models


Quote:
Originally Posted by Mr. Happy View Post
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.
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
 
Reply With Quote
Advertisement
 
Advertisement
Advertisement Sponsored links

Reply  

Previous Thread Next Thread
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 12:06 AM.