Counter-Strike: Source blends Counter-Strike's award-winning teamplay action with the advanced technology of Source technology. Featuring state of the art graphics, all new sounds, and introducing physics, Counter-Strike: Source is a must-have for every action gamer. Game updates since mid 2010 are done by Hidden Path Entertainment.

Post tutorial Report RSS Fixing CStrike Playermodels for HL2

Fixing CS:S Playermodels for HL2 and HL2MP yeah!

Posted by on - Basic Players Modelling

So, my last tutorial was fixing CStrike weapon models for HL2 NPCs/HL2MP Playermodels.
Now, lets do the same for the playermodels!
This is a lot simpler then my last tutorial, because you don't need any 3D modeling software.
Before we begin, you are going to need the fowling things:
- Cowbar
- A CS:S Skin (you should get permision from the author before you add it to your mod!)
So lets start.
decompile the playermodel and in the qc file it outputted, find the lines that say "$includemodel" and delete them all and then add these lines where the old "$includemodel" use to be: $includemodel "player/(gender)_anims.mdl"
$includemodel "humans/(gender)_gestures.mdl"
$includemodel "humans/(gender)_postures.mdl"
$includemodel "humans/(gender)_ss.mdl"
$includemodel "humans/(gender)_shared.mdl"
The gender is eather male or female.
Next, add the fowling lines below the rest of the "$attachment"s:
$attachment "anim_attachment_RH" "ValveBiped.Bip01_R_Hand" 0 0 0 rotate 0 0 0
$attachment "anim_attachment_LH" "ValveBiped.Bip01_L_Hand" 0 0 0 rotate 0 0 0
$attachment "lefthand" "ValveBiped.Bip01_L_Hand" 0 0 0 rotate 0 0 0 $attachment "eyes" "ValveBiped.Bip01_Head1" 4.5 -5 0 rotate 0 -90 -90

Next edit the "modelname"_reference.smd and add these lines to under the rest of the "nodes" at the begining of the file:
NUMBER "ValveBiped.Anim_Attachment_LH" 18
NUMBER "ValveBiped.Anim_Attachment_RH" 31
Replace "NUMBER" with the next 2 numbers in the list, so say the last node is 24, then replace the first "NUMBER" with 25 and the 2nd "NUMBER" with 26.
Now compile the mode, and every thing should be working. I hope this helped you!

Post a comment
Sign in or join with:

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.

Follow Report Profile
Icon
Counter-Strike: Source
Platforms
Windows
Developer & Publisher
Valve
Engine
Source
Contact
Send Message
Release date
Game watch
Follow
Purchase
Tutorial
Browse
Tutorials
Report
Report
Share
Related Games
Counter-Strike: Source
Counter-Strike: Source First Person Shooter
Half-Life 2
Half-Life 2 First Person Shooter
Half-Life 2: Deathmatch
Half-Life 2: Deathmatch First Person Shooter
Half-Life 2: Episode One
Half-Life 2: Episode One First Person Shooter
Half-Life 2: Episode Two
Half-Life 2: Episode Two First Person Shooter
Half-Life 2: Lost Coast
Half-Life 2: Lost Coast First Person Shooter
Related Engines
Source
Source Commercial
Related Groups
Valve
Valve Developer & Publisher
Got it!

We have recently updated our privacy policy and terms of use in-line with GDPR requirements. More Info?