Compiling a prop static: Difference between revisions
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
For this, the BaseProp_example present in the Bloodlines SDK at Vampire The Masquerade - Bloodlines\SDKContent\ModelSrc will be used | For this, the BaseProp_example present in the Bloodlines SDK at Vampire The Masquerade - Bloodlines\SDKContent\ModelSrc will be used | ||
[[File:BaseProp example.png|frameless| | [[File:BaseProp example.png|frameless|center]] | ||
*1. | |||
It contains: | |||
The base mesh Chair_Basic_REF.smd | |||
The LOD mesh Chair_Basic_REF_lod1.smd | |||
The physic Chair_Basic_physics.smd | |||
The animation in the folder Chair_Basic_anims | |||
The qc Chair_Basic.qc | |||
*1. You can edit the qc by opening in a text editor, you will have those lines: | |||
[[$modelname]] "scenery/furniture/Chair_Basic/Chair_Basic.mdl" | |||
[[$BodyGroup]] "Body" | |||
{ | |||
studio "Chair_Basic_REF" | |||
} | |||
[[$LOD]] 25 | |||
{ | |||
replacemodel "Chair_Basic_REF.smd" "Chair_Basic_REF_lod1.smd" | |||
} | |||
[[$StaticProp]] | |||
[[$IllumPosition]] 0 0 0 | |||
[[$EyePosition]] 0.5 -0.5 0.5 | |||
[[$CDMaterials]] "models\scenery\furniture\couch_basic\" | |||
[[$CBox]] 0 0 0 0 0 0 | |||
[[$BBox]] -30.441 -42.366 -27.903 30.512 42.366 27.503 | |||
[[$Sequence]] "only_sequence" { | |||
"chair_basic_anims\only_sequence.smd" | |||
activity "ACT_IDLE" 1 | |||
fps 30 | |||
} | |||
[[$CollisionModel]] "chair_basic_physics.smd" | |||
{ | |||
$mass 20 | |||
$inertia 1 | |||
$damping 0 | |||
$rotdamping 0 | |||
$rootbone " " | |||
} | |||
*2. | *2. |
Revision as of 05:36, 12 February 2025


Compiling a prop static
For this, the BaseProp_example present in the Bloodlines SDK at Vampire The Masquerade - Bloodlines\SDKContent\ModelSrc will be used
It contains: The base mesh Chair_Basic_REF.smd The LOD mesh Chair_Basic_REF_lod1.smd The physic Chair_Basic_physics.smd The animation in the folder Chair_Basic_anims The qc Chair_Basic.qc
- 1. You can edit the qc by opening in a text editor, you will have those lines:
$modelname "scenery/furniture/Chair_Basic/Chair_Basic.mdl"
$BodyGroup "Body" { studio "Chair_Basic_REF" }
$LOD 25 { replacemodel "Chair_Basic_REF.smd" "Chair_Basic_REF_lod1.smd" }
$IllumPosition 0 0 0
$EyePosition 0.5 -0.5 0.5
$CDMaterials "models\scenery\furniture\couch_basic\"
$CBox 0 0 0 0 0 0
$BBox -30.441 -42.366 -27.903 30.512 42.366 27.503
$Sequence "only_sequence" { "chair_basic_anims\only_sequence.smd" activity "ACT_IDLE" 1 fps 30 }
$CollisionModel "chair_basic_physics.smd" { $mass 20 $inertia 1 $damping 0 $rotdamping 0 $rootbone " " }
- 2.