Gibs with collision models.

Modelling, Textures, Animating and other general engine asset topics.

Gibs with collision models.

Postby andy4729 on Wed Jul 13, 2011 11:07 pm

Heyo,

I've made a wooden table that breaks into three gibs when damaged. My only issue is that the player can walk throguh the gibs and considering they are quite large chunks of the table it seems a bit wrong. I gave the models collision models which are visible in model viewer/hammer so I'm not sure whats up. Can gibs even be 'solid'?
We're squatting in a system that consistently stalls
User avatar
andy4729
Regular
Regular
 
Joined: Sat Sep 09, 2006 7:26 pm
Location: Canterbury, United Kingdom

Re: Gibs with collision models.

Postby Guessmyname on Thu Jul 14, 2011 3:39 am

This is a bit of a guess, but it sounds like they're spawning as debris (which won't collide with the player or other debris). If they had no collision model at all they simply wouldn't work. From the documentation on custom gibs, looks like adding "debris" "0" (ie debris false; hopefully means 'do not spawn as debris') should work.
User avatar
Guessmyname
1337 p0st3r
1337 p0st3r
 
Joined: Sun Mar 27, 2005 10:38 pm

Re: Gibs with collision models.

Postby andy4729 on Thu Jul 14, 2011 10:50 am

It worked!

Like this:

Code: Select all
$collisiontext
   {
   break
       {
           "model" "table01_gib_a.mdl" "fadetime" "30" "debris" "0"
       }
   break
       {
           "model" "table01_gib_b.mdl" "fadetime" "30" "debris" "0"
       }
   break
       {
           "model" "table01_gib_c.mdl" "fadetime" "30" "debris" "0"
       }
   }


Thank you very much :)
We're squatting in a system that consistently stalls
User avatar
andy4729
Regular
Regular
 
Joined: Sat Sep 09, 2006 7:26 pm
Location: Canterbury, United Kingdom

Return to Art Creation

Who is online

Users browsing this forum: No registered users