View Full Version : Help: Buggy drives through everything..
Hey folks!
I managed to get the Buggy in alien swarm.
everything is ok (except the camera, but with some console-commands its okay), BUT it goes through every prop oder entity likes there's nothing in the way. Walls/Brushes are working obstacles, but no dynamic/ no model or what ever.
My first attempt to solve this was to get a func_brush (or something) and place it in front of the buggy. But when i *parent* it to the buggy, the thingy just disappears.
Can someone help? I appreciate every input I can get!
Thanks!!
Imitate
08-10-2010, 10:41 AM
For the static props (at least props that are not supposed to move) the only solution is to make a brush with the 'clip' or 'invisible' texture on it. For moving props you can try to do the same thing, only making the brush a 'func_physbox' and parenting it to the prop.
So you mean, that i shouldn't "fake" the hitbox of the buggy, but the ones on the obstacles?
I will try this later today! Thanks!
The vehicle is still going through the physbox.
a static obstacle is no problem, but everything moveable is... :(:(
Issus_C
08-10-2010, 01:33 PM
Make some more invisible or clip brushes, make them func_brushes and parent them to the movable objects. Then the brushes should move with the movable objects.
Make some more invisible or clip brushes, make them func_brushes and parent them to the movable objects. Then the brushes should move with the movable objects.
they do, but when i parent the func_brushes to the props, they don't have their hitbox/collision anymore.
qoute from the dev-wiki:
"Collision : The Child's Solidity is suspended whilst it is parented. It will pass through walls and other solid objects. "
The buggy does not interact/colide with anything that has physics..whatever i try.. :(
Amos Trask
08-13-2010, 03:10 AM
//SetSolid( SOLID_BBOX );
///AddSolidFlags( FSOLID_NOT_SOLID );
SetMoveType( MOVETYPE_NONE );
have you tried uncommenting the set solids? Try a combination of trying each of the above settings.
have a look @ void CASW_Dummy_Vehicle::Spawn( void )
I'll see if i can get it working at my end (as vehicles are a step to a fully fledged tactics mod)
edit: for instance, the marines spawn code...
void CASW_Marine::Spawn( void )
{
Precache();
BaseClass::Spawn();
SelectModel();
SetModel( STRING( GetModelName() ) );
SetHullType(HULL_HUMAN);
SetHullSizeNormal();
but thats for infantry... and probably more likely hitbox related (that might help too)
thanks Amos!
For the moment I parented the buggy-model and a trigger-push around it to the player-marine, so I can move around a little.
Because I want the player to start as/in the car/buggy (the buggy is just for testing right now), it's tbe better solution to replace the player-model and also change the movement / controls of the player... but I'm sure this is also possible :eek::)
Amos Trask
08-16-2010, 03:22 AM
good to hear! :)
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.