attachment feature / new model with clothes
Posted: August 29th, 2009, 8:32 pm
hi there,
this works only with the actual svn version and is experimental.
(textures are dummy textures).
its not really integrated into game modes (pickup stuff and wear it ...)
but useable in a modified way into certain game modes ...
[ 1. clean model 2. hair attachment 3. jacket and trouser ]
short docu:
--------------------------------------------------------------------------------
playermodel 7;
playerattach (getattachnum Hip) uh/attach/hair1 0
playerattach (getattachnum Head) uh/attach/trouser1 2
playerattach (getattachnum Belly) uh/attach/jacket1 2
playerdetach (getattachnum Hip)
playerdetach (getattachnum Head)
playerdetach (getattachnum Belly)
--------------------------------------------------------------------------------
getattachnum [ingame identifier] //returns tag number (see table below)
playerattach [tag number] [path to model] [animation rule] //animation rule (0=no animation, 1=everytime play idle animation, 2=run same animation as playermodel)
playerdetach [tag number] //remove attachment from player
--------------------------------------------------------------------------------
i added a new playermodel (based on Unihuman) to demonstrate the attachment feature.
it can be found in packages/models/uh/... you can also find also for this model in this folder.
the new models are not textured yet.
the feature works with all model they have following tag names are defined by now.
ingame identifier | tag name
------------------------------------------------------------
"Head" | "tag_head"
"Neck" | "tag_neck"
"LeftShoulder" | "tag_lshoulder"
"RightShoulder" | "tag_rshoulder"
"LeftArm" | "tag_larm"
"RightArm" | "tag_rarm"
"LeftForearm" | "tag_lforearm"
"RightForearm" | "tag_rforearm"
"LeftHand" | "tag_lhand"
"RightHand" | "tag_rhand"
"Belly" | "tag_belly"
"Hip" | "tag_hip"
"LeftThigh" | "tag_lthigh"
"RightThigh" | "tag_rthigh"
"LeftShin" | "tag_lshin"
"RightShin" | "tag_rshin"
"LeftFoot" | "tag_lfoot"
"RightFoot" | "tag_rfoot"
this works only with the actual svn version and is experimental.
(textures are dummy textures).
its not really integrated into game modes (pickup stuff and wear it ...)
but useable in a modified way into certain game modes ...
[ 1. clean model 2. hair attachment 3. jacket and trouser ]
short docu:
--------------------------------------------------------------------------------
playermodel 7;
playerattach (getattachnum Hip) uh/attach/hair1 0
playerattach (getattachnum Head) uh/attach/trouser1 2
playerattach (getattachnum Belly) uh/attach/jacket1 2
playerdetach (getattachnum Hip)
playerdetach (getattachnum Head)
playerdetach (getattachnum Belly)
--------------------------------------------------------------------------------
getattachnum [ingame identifier] //returns tag number (see table below)
playerattach [tag number] [path to model] [animation rule] //animation rule (0=no animation, 1=everytime play idle animation, 2=run same animation as playermodel)
playerdetach [tag number] //remove attachment from player
--------------------------------------------------------------------------------
i added a new playermodel (based on Unihuman) to demonstrate the attachment feature.
it can be found in packages/models/uh/... you can also find also for this model in this folder.
the new models are not textured yet.
the feature works with all model they have following tag names are defined by now.
ingame identifier | tag name
------------------------------------------------------------
"Head" | "tag_head"
"Neck" | "tag_neck"
"LeftShoulder" | "tag_lshoulder"
"RightShoulder" | "tag_rshoulder"
"LeftArm" | "tag_larm"
"RightArm" | "tag_rarm"
"LeftForearm" | "tag_lforearm"
"RightForearm" | "tag_rforearm"
"LeftHand" | "tag_lhand"
"RightHand" | "tag_rhand"
"Belly" | "tag_belly"
"Hip" | "tag_hip"
"LeftThigh" | "tag_lthigh"
"RightThigh" | "tag_rthigh"
"LeftShin" | "tag_lshin"
"RightShin" | "tag_rshin"
"LeftFoot" | "tag_lfoot"
"RightFoot" | "tag_rfoot"