Forum Thread
  Posts  
Animate the HL2 headcrab (Forums : Coding & Scripting : Animate the HL2 headcrab) Locked
Thread Options
Mar 21 2005 Anchor

I need to animate the headcrab in HL2, but what is the most easy way to turn the HL2 file in to a 3DS file or a other file that Cinema 4D is able to open, and back again?? And where is the HL2 headcrab file located??

Stuffie
Stuffie Mod DB Star * !
Mar 21 2005 Anchor

Okay here goes

{edit new mdldecompiler :D)

Just Download the Model decompiler from here > Chaosincarnate.net

Select and decompile the head crabclassic model into a folder..

Next dwnload the XSI mod tool from here > Softimage.com
Install it then install the valve xsiaddon found in steam/steamapps/sourcesdk/xsi/

Now run XSI and install the addon file>install
restart xsi and you should find a menu labelled valve source or similar click that and go to import smd import the headcrab reference.smd.

*breath*

Now go into the Netview (try layout views.. of not it some number keys till it pops up) now find the section devoted to export plugins dont know exactly but its there and install the 3ds exporter .

Export as 3ds open up in c4d do animations

import the anim 3ds into xsi. then go to valveSrc>export Smd and save it as a sequence or skeletal smd in the folder with the head crab.

Now in the decompiled mdldecompiler.qc u will find lines starting with $sequence copy one of these lines and replace the names at the start with the names of your anims/smds ie

$sequence "mySeq" "mySMD" fps 20 loop

Now you need to compile it..

run the following from the command line %sourcesdk%\bin\studiomdl.exe -"location of mdldecompiler.qc"

That should work Its a rather complicated procedure and bones are likely not to export very good etc but I at least gave you an idea of the work involved.

Edited by: Stuffie

--

Stuffie
User Posted Image

Reply to thread
click to sign in and post

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.