wassup my dude wont where his hat??

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

wassup my dude wont where his hat??

Post by small_sumo »

Here is my model.tik

TIKI
setup
{
//scale 0.52 // Set default scale to 16/30.5 since world
// is in 16 units per foot and model is in cm's
scale 0.52
path models/human/German_worker
skelmodel german_worker.skd
surface hand shader handsnew
surface shirt shader sg_elite_shirt
surface pants shader sg_elite_pants
path models/human/heads // Set new path for head model
skelmodel head4.skd // Set head model
surface head shader sg_elite_face
skelmodel hat.skd
surface hat shader sg_elite_hat

//$include models/human/heads/german_winter_heads.tik // (The winter guys look more rugged)



//************************************
//*** weapon equipment assignment - Justin modify the equipment skelmodels in here
path models/equipment/germangear

//*** no weapon assigned
case weapon "none"
{

skelmodel hat.skd
surface hat shader sg_elite_hat
//skelmodel german_holster.skd
//surface german_holster shader german_holster
}

//*** p-38 pistol
case weapon "walter p38"
{

skelmodel hat.skd
surface hat shader sg_elite_hat
skelmodel german_holster.skd
surface german_holster shader german_holster
}

//*** regular KAR 98
case weapon "mauser kar 98k"
{

skelmodel hat.skd
surface hat shader sg_elite_hat
skelmodel k98clips.skd
surface k98clips shader german_riflebelt
}


//*** end weapon equipment assignment
//************************************

path models/equipment/g_headgear


skelmodel hat.skd
surface hat shader sg_elite_hat



scale 0.52 // Set default scale to 16/30.5 since world is
// in 16 units per foot and model is in cm's
path models/human/protoanimations // Set path to set animations from

radius 20 // Defines size of shadow
}

init
{
server
{
classname Actor
setsize "-16 -16 0" "16 16 92"
german
health 100
weapon "walter p38"

// Make him mumble but not breathe steam
exec global/breathe.scr 0 1

// Set up the helmet for popping off (if he had one)
// <surface to turn off> <model to spawn> <speed to throw it at> <damage multiplier for helmet shots>
//sethelmet "models/gear/german_cap.tik" 150 4 "outside" "inside"
}
}

//
// include the base animations definition
//

$include models/human/wombat_new_generic_human.tik
$include models/human/animation/scripted/level_m1l2.tik
$include models/human/animation/dialogue/generic_dialogue_german.tik
//$include models/human/animation/helmet_flyoff/helmet_flyoff_german_cap.tik


/*QUAKED ai_sumo_german_elite(1.0 0.5 0.0) (-16 -16 0) (16 16 92)
*/
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

surface hat shader sg_elite_hat

Are you sure the surface name is correct? Did you make that hat model or does it come with the game?
Image
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post by small_sumo »

The german_africa_nco has this in his tik.

}

//*** regular KAR 98
case weapon "Mauser KAR 98K"
{
path models/gear/g_headgear

skelmodel hat.skd
surface hat shader dakhat

path models/gear/dak

skelmodel dakloadout.skd
surface dakloadout shader german_gear

skelmodel dakkarclip.skd
surface dakkarclip shader german_riflebelt

So I figured the surface has to be hat.......
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Add this line

path models/gear/g_headgear

above the skelmodel hat.skd line.

Remember to put the path back to the original value below!
Image
Post Reply