Replace NPC and also Player...issues

  • Thread starter Thread starter alcwntr
  • Start date Start date
A

alcwntr

Guest
Multi-part problem.

1, NPC: I built my own model and used a ValveRig for my skeleton. I got my model into Hammer and it shows up as an NPC citizen. The problem is that I can't get it to show up in game EVERYTIME. The model is randomly chosen and one time it actually chose the model I replaced (male_01). I've played with the citizen type and tried to force the model to be the player. Everytime I change the citizen type to 'unique' then HL2 crashes. How can I have the citizen be my character everytime?

2, NPC: This is related to the first question. How do I get my character in-game as an NPC if I use a custom skeleton/rig, where I can still steal the animations from the npc_citizen?

3, Player: And this question is related to number two. I can get my custom character in-game but I had to use the ValveRig. So my question is, how can I get my character in-game as a Player character if I were to use my own custom skeleton/rig ??

I would deeply appreciate any help. I've searched far and wide online and have tried so many different ways already but to no avail. Thanks.

- Shawn
 
weight map problem !

So I solved the three issues above, but for now I have a weight map issue. No matter what I try I can't get my weight maps to 'stick'. When I open the model up in HLMV then the weights are some sort of default weights. Is there a certain process for me to have my weight map to work properly? Any restrictions? (I'm only using 3 bone influence)

Here's the qc file I'm using... :

$modelname Humans\Group01\Male_05.mdl
$cdmaterials botTest02

//start eye/face data
//$eyeposition 0 0 70

// head controllers
$attachment "eyes" "ValveBiped.Bip01_Head1" -0.0454 -3.2682 67.3843 absolute
$attachment "mouth" "ValveBiped.Bip01_Head1" 0.80 -5.50 0.10 rotate 0 -80 -90
$attachment "chest" "ValveBiped.Bip01_Spine2" 5.00 4.00 0.00 rotate 0 90 90

$model botTest02 "botTest02.smd"{

$include "../../bodyrules_xsi.qci"
}
//end eye/face data

$surfaceprop "flesh"
$mostlyopaque

$include "../../standardhierarchy.qci"
$include "../../standardikchains.qci"
$alwayscollapse "Male_01"
$alwayscollapse "XSISceneRoot"
$proceduralbones "../../male.vrd"
$include "../commonbones.qci"

$includemodel humans/male_shared.mdl
$includemodel humans/male_ss.mdl
$includemodel humans/male_gestures.mdl
$includemodel humans/male_postures.mdl

$pushd "../"
$include "../hitbox.qci"
$include "../ragdoll.qci"
$popd

Thanks,

- Shawn
 
Back
Top