Forum Thread
Search
by member
  Posts  
Source Engine - Breakable Models (Forums : Coding & Scripting : Source Engine - Breakable Models) Locked
Thread Options
Jul 3 2009, 5:32pm Anchor

Hey all,
I'm am VERY new to importing in the source engine, but I am having an issue. I have a model built in 3DsMax that I have exported and gone through all the steps to get it into the engine. I can get the model in just fine, but now I want it to break. I have set up the model and all the Gibs to the best of my knowledge, but when I load the model into any source games, I shoot it several times and it just disappears. I don't know at what step I am going wrong so I will ask a few questions and post some of my .qc files and see if anyone spots a glaring problem.

My main object is compiled with this .qc file:

  1. code:
  1. $modelname "custom models\fokkerbreak\fokkerbreak.mdl"
  2.  
  3. $body studio "fokkerbreak.smd"
  4.  
  5. $cdmaterials "custom models\fokkerbreak\"    
  6.  
  7. //$staticprop
  8.  
  9. $scale 1.0
  10.  
  11. $surfaceprop "Wood"
  12.  
  13. $keyvalues
  14. {
  15.   prop_data
  16.   {
  17.    base Wooden.Huge
  18.    health 10
  19.   }
  20. }
  21.  
  22.  
  23.        
  24.  
  25. $sequence "idle" "fokkerbreak" fps 30
  26.  
  27. $collisiontext
  28. {
  29. break
  30.   {
  31.     "model" "fokkerbreak/fokkerbreak_p1.mdl" "fadetime" "15"
  32.   }
  33. break
  34.   {
  35.     "model" "fokkerbreak/fokkerbreak_gib1.mdl" "fadetime" "15"
  36.   }
  37. break
  38.   {
  39.     "model" "fokkerbreak/fokkerbreak_gib2.mdl" "fadetime" "15"
  40.   }
  41. break
  42.   {
  43.     "model" "fokkerbreak/fokkerbreak_gib3.mdl" "fadetime" "15"
  44.   }
  45. }
  46.  
  47.  
  48. $collisionmodel “fokkerbreak_phys.smd”
  49.  
  50. {      
  51.   $Mass 100    
  52.   $concave
  53.  
  54. }

and each Gib is compiled with this .qc file (With the numbers changing accordingly to the model name):

  1. code:
  1. $modelname "custom models\fokkerbreak\fokkerbreak_gib1.mdl"
  2.  
  3. $body studio "fokkerbreak_gib1.smd"
  4.  
  5. $cdmaterials "custom models/fokkerbreak\"
  6.  
  7.        
  8.  
  9. //$staticprop
  10.  
  11. $scale 1.0
  12.  
  13. $surfaceprop "Wood"
  14.  
  15. $keyvalues
  16. {
  17.   "prop_data"
  18.   {
  19.    "base" "Wooden.Tiny"
  20.   }
  21. }
  22.        
  23.  
  24. $sequence "idle" "fokkerbreak_gib1" fps 30
  25.  
  26.  
  27.  
  28. $collisionmodel “fokkerbreak_gib1_phys.smd”
  29.  
  30. {      
  31.   $Mass 100    
  32.   $concave
  33.  
  34. }

Any thoughts?
Again I am about 3 day into learning about how to import into the source engine, and these bits of code are built from tutorials from various places.
Cheers

Edited by: Pippykk

Jul 7 2009, 12:21pm Anchor

Your paths aren't the same.

Reply to Thread

Only registered members can share their thoughts. So come on! Join the community today (totally free) and join in the conversation.