Added NPC door opening animations

This commit is contained in:
Blixibon 2021-10-29 10:30:15 -05:00
parent 402b4f5a92
commit 178115523e
7 changed files with 5211 additions and 164 deletions

74
modelsrc/NPCDoorAnims.qci Normal file
View File

@ -0,0 +1,74 @@
// ================================================================
//
//
//
// ================================================================
$weightlist weapongesture_open_door {
"ValveBiped.Bip01_Pelvis" 0.1 "ValveBiped.Bip01_Spine2" 1.0 "ValveBiped.Bip01_L_Thigh" 0.0 "ValveBiped.Bip01_R_Thigh" 0.0
"ValveBiped.Bip01_R_Clavicle" 0.5 "ValveBiped.Bip01_R_Hand" 0 // Don't influence right hand
}
$definemacro makedooropengesture gesturename filename InFrame OutFrame LastFrame \\
$sequence $gesturename$spine $filename$ fps 30 weightlist weapongesture_noarms hidden worldspace \\
$sequence $gesturename$arms $filename$ fps 30 weightlist weapongesture_open_door hidden \\
$sequence $gesturename$ { \\
$filename$ noanimation numframes $LastFrame$ \\
blendlayer $gesturename$arms 0 $InFrame$ $outFrame$ $LastFrame$ spline \\
blendlayer $gesturename$spine 0 $InFrame$ $outFrame$ $LastFrame$ spline \\
iklock rfoot 1 0 iklock lfoot 1 0 \\
} \\
$continue $gesturename$
// ----------------------------------------------------------------
$makedooropengesture g_open_door_lever_back "combine_soldier_anims_anims/custom/g_open_door_left.smd" 8 20 35
$append g_open_door_lever_back {
activity "ACT_GESTURE_DOOR_LEVER_OPEN_BACK" 1
fps 25
{ event 2060 11 "" }
}
$append g_open_door_lever_backarms {
ikrule "lhand" attachment "lever_back" contact 9 radius 20 range 4 11 16 24
}
// ----------------------------------------------------------------
// TODO: Unique anim
$makedooropengesture g_open_door_lever_front "combine_soldier_anims_anims/custom/g_open_door_right.smd" 8 20 35
$append g_open_door_lever_front {
activity "ACT_GESTURE_DOOR_LEVER_OPEN_FRONT" 1
fps 25
{ event 2060 11 "" }
}
$append g_open_door_lever_frontarms {
ikrule "lhand" attachment "lever_front" contact 9 radius 20 range 4 11 16 24
}
// ----------------------------------------------------------------
// TODO: Unique anim
$makedooropengesture g_open_door_pushbar_back "combine_soldier_anims_anims/custom/g_open_door_left.smd" 8 20 35
$append g_open_door_pushbar_back {
activity "ACT_GESTURE_DOOR_PUSHBAR_OPEN_BACK" 1
fps 25
{ event 2060 11 "" }
}
$append g_open_door_pushbar_backarms {
ikrule "lhand" attachment "pushbar_back" contact 9 radius 20 range 4 11 16 24
}
// ----------------------------------------------------------------
// TODO: Unique anim
$makedooropengesture g_open_door_pushbar_front "combine_soldier_anims_anims/custom/g_open_door_pushbar.smd" 8 20 35
$append g_open_door_pushbar_front {
activity "ACT_GESTURE_DOOR_PUSHBAR_OPEN_FRONT" 1
fps 25
{ event 2060 11 "" }
}
$append g_open_door_pushbar_frontarms {
ikrule "lhand" attachment "pushbar_front" contact 9 radius 20 range 4 11 16 24
}
// ----------------------------------------------------------------

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,38 +1,7 @@
// Created by Crowbar 0.56
$modelname "props_c17/door01_left.mdl"
$bodygroup "Body"
{
studio "door01_left_door_reference.smd"
}
$bodygroup "handle01"
{
blank
studio "door01_left_handle01_reference.smd"
studio "door01_left_handle02_reference.smd"
studio "door01_left_handle03_reference.smd"
studio "door01_left_handle04_reference.smd"
}
$lod 15
{
replacemodel "door01_left_door_reference.smd" "door01_left_door_reference_lod1.smd"
replacemodel "door01_left_handle01_reference.smd" "door01_left_handle01_reference_lod1.smd"
replacemodel "door01_left_handle02_reference.smd" "door01_left_handle02_reference_lod1.smd"
replacemodel "door01_left_handle03_reference.smd" "door01_left_handle03_reference_lod1.smd"
replacemodel "door01_left_handle04_reference.smd" "door01_left_handle04_reference_lod1.smd"
nofacial
}
$surfaceprop "metal"
$contents "solid"
$illumposition 23 0 0
$cdmaterials "models\props_c17\"
$cdmaterials "models\props_combine\"
$include "door01_left_shared.qci"
$texturegroup "skinfamilies"
{
@ -52,57 +21,6 @@ $texturegroup "skinfamilies"
{ "door01a_skin14" }
}
$cbox 0 0 0 0 0 0
$bbox -5.996 -1.25 -54.25 5.996 47.25 54.25
$definebone "door" "" 0 0 0 0 0 89.999983 0 0 0 0 0 0
$definebone "handle" "door" 43.810005 -10.390667 1.997513 0 0 0 0 0 0 0 0 0
$definebone "handle02" "door" 43.810005 -10.390667 1.997513 0 0 0 0 0 0 0 0 0
$weightlist "weights_openbar" {
"door" 0
"handle" 0
"handle02" 1
}
$sequence "idle" {
"door01_left_anims\idle.smd"
activity "ACT_IDLE" 1
}
$sequence "locked" {
"door01_left_anims\locked.smd"
activity "ACT_DOOR_LOCKED" 1
}
$sequence "openbar" {
"door01_left_anims\openbar.smd"
hidden
weightlist "weights_openbar"
}
$sequence "open" {
"door01_left_anims\open.smd"
activity "ACT_DOOR_OPEN" 1
{ event 1 8 "" }
addlayer "openbar"
}
// Use the original model's physics
//$collisionmodel "door01_left_physics.smd"
//{
// $mass 50
// $inertia 1
// $damping 0
// $rotdamping 0
// $rootbone " "
// $concave
// $maxconvexpieces 1
//
//}
$keyvalues
{
prop_data
@ -228,26 +146,45 @@ $keyvalues
{
"locked" "DoorSound.Null"
"unlocked" "DoorSound.Null"
"activity_front" "ACT_GESTURE_DOOR_LEVER_OPEN_FRONT"
"activity_back" "ACT_GESTURE_DOOR_LEVER_OPEN_BACK"
}
"hardware1"
{
"locked" "DoorHandles.Locked1"
"unlocked" "DoorHandles.Unlocked1"
"activity_front" "ACT_GESTURE_DOOR_LEVER_OPEN_FRONT"
"activity_back" "ACT_GESTURE_DOOR_LEVER_OPEN_BACK"
}
"hardware2"
{
"locked" "DoorHandles.Locked2"
"unlocked" "DoorHandles.Unlocked2"
"activity_front" "ACT_GESTURE_DOOR_PUSHBAR_OPEN_FRONT"
"activity_back" "ACT_GESTURE_DOOR_PUSHBAR_OPEN_BACK"
}
// Mapbase -- Fixed keypad handle sounds
"hardware3"
{
"locked" "DoorHandles.Locked1"
"unlocked" "DoorHandles.Unlocked1"
"activity_front" "ACT_GESTURE_DOOR_LEVER_OPEN_FRONT"
"activity_back" "ACT_GESTURE_DOOR_LEVER_OPEN_BACK"
}
// Mapbase -- New Combine lock hardware
"hardware4"
{
"locked" "combine.door_lock"
"unlocked" "DoorHandles.Unlocked1"
"activity_front" "ACT_GESTURE_DOOR_LEVER_OPEN_FRONT"
"activity_back" "ACT_GESTURE_DOOR_LEVER_OPEN_BACK"
}
}
}

View File

@ -0,0 +1,90 @@
// Created by Crowbar 0.56
$bodygroup "Body"
{
studio "door01_left_door_reference.smd"
}
$bodygroup "handle01"
{
blank
studio "door01_left_handle01_reference.smd"
studio "door01_left_handle02_reference.smd"
studio "door01_left_handle03_reference.smd"
studio "door01_left_handle04_reference.smd" // Mapbase -- New Combine lock hardware
}
$lod 15
{
replacemodel "door01_left_door_reference.smd" "door01_left_door_reference_lod1.smd"
replacemodel "door01_left_handle01_reference.smd" "door01_left_handle01_reference_lod1.smd"
replacemodel "door01_left_handle02_reference.smd" "door01_left_handle02_reference_lod1.smd"
replacemodel "door01_left_handle03_reference.smd" "door01_left_handle03_reference_lod1.smd"
replacemodel "door01_left_handle04_reference.smd" "door01_left_handle04_reference_lod1.smd"
nofacial
}
$surfaceprop "metal"
$contents "solid"
$illumposition 23 0 0
$cdmaterials "models\props_c17\"
$cdmaterials "models\props_combine\"
$cbox 0 0 0 0 0 0
$bbox -5.996 -1.25 -54.25 5.996 47.25 54.25
$definebone "door" "" 0 0 0 0 0 89.999983 0 0 0 0 0 0
$definebone "handle" "door" 43.810005 -10.390667 1.997513 0 0 0 0 0 0 0 0 0
$definebone "handle02" "door" 43.810005 -10.390667 1.997513 0 0 0 0 0 0 0 0 0
// Mapbase -- New attachments
$attachment "lever_front" "handle" -3 -3.5 9 rotate 90 -180 0
$attachment "lever_back" "handle" -3 -3.5 -10 rotate -90 -180 0
$attachment "pushbar_back" "door" 43.75 -10 -6 rotate -90 -90 0
$attachment "pushbar_front" "handle02" -16 0.5 7 rotate 0 0 -90
$weightlist "weights_openbar" {
"door" 0
"handle" 0
"handle02" 1
}
$sequence "idle" {
"door01_left_anims\idle.smd"
activity "ACT_IDLE" 1
}
$sequence "locked" {
"door01_left_anims\locked.smd"
activity "ACT_DOOR_LOCKED" 1
}
$sequence "openbar" {
"door01_left_anims\openbar.smd"
hidden
weightlist "weights_openbar"
}
$sequence "open" {
"door01_left_anims\open.smd"
activity "ACT_DOOR_OPEN" 1
{ event 1 8 "" }
addlayer "openbar"
}
// Use the original model's physics
//$collisionmodel "door01_left_physics.smd"
//{
// $mass 50
// $inertia 1
// $damping 0
// $rotdamping 0
// $rootbone " "
// $concave
// $maxconvexpieces 1
//
//}

View File

@ -1,38 +1,7 @@
// Created by Crowbar 0.56
$modelname "props_c17/door01b_left.mdl"
$bodygroup "Body"
{
studio "door01_left_door_reference.smd"
}
$bodygroup "handle01"
{
blank
studio "door01_left_handle01_reference.smd"
studio "door01_left_handle02_reference.smd"
studio "door01_left_handle03_reference.smd"
studio "door01_left_handle04_reference.smd"
}
$lod 15
{
replacemodel "door01_left_door_reference.smd" "door01_left_door_reference_lod1.smd"
replacemodel "door01_left_handle01_reference.smd" "door01_left_handle01_reference_lod1.smd"
replacemodel "door01_left_handle02_reference.smd" "door01_left_handle02_reference_lod1.smd"
replacemodel "door01_left_handle03_reference.smd" "door01_left_handle03_reference_lod1.smd"
replacemodel "door01_left_handle04_reference.smd" "door01_left_handle04_reference_lod1.smd"
nofacial
}
$surfaceprop "metal"
$contents "solid"
$illumposition 23 0 0
$cdmaterials "models\props_c17\"
$cdmaterials "models\props_combine\"
$include "door01_left_shared.qci"
$texturegroup "skinfamilies"
{
@ -104,75 +73,45 @@ $keyvalues
{
"locked" "DoorSound.Null"
"unlocked" "DoorSound.Null"
"activity_front" "ACT_GESTURE_DOOR_LEVER_OPEN_FRONT"
"activity_back" "ACT_GESTURE_DOOR_LEVER_OPEN_BACK"
}
"hardware1"
{
"locked" "DoorHandles.Locked1"
"unlocked" "DoorHandles.Unlocked1"
"activity_front" "ACT_GESTURE_DOOR_LEVER_OPEN_FRONT"
"activity_back" "ACT_GESTURE_DOOR_LEVER_OPEN_BACK"
}
"hardware2"
{
"locked" "DoorHandles.Locked2"
"unlocked" "DoorHandles.Unlocked2"
"activity_front" "ACT_GESTURE_DOOR_PUSHBAR_OPEN_FRONT"
"activity_back" "ACT_GESTURE_DOOR_PUSHBAR_OPEN_BACK"
}
// Mapbase -- Fixed keypad handle sounds
"hardware3"
{
"locked" "DoorHandles.Locked1"
"unlocked" "DoorHandles.Unlocked1"
"activity_front" "ACT_GESTURE_DOOR_LEVER_OPEN_FRONT"
"activity_back" "ACT_GESTURE_DOOR_LEVER_OPEN_BACK"
}
// Mapbase -- New Combine lock hardware
"hardware4"
{
"locked" "combine.door_lock"
"unlocked" "DoorHandles.Unlocked1"
"activity_front" "ACT_GESTURE_DOOR_LEVER_OPEN_FRONT"
"activity_back" "ACT_GESTURE_DOOR_LEVER_OPEN_BACK"
}
}
}
$cbox 0 0 0 0 0 0
$bbox -5.996 -1.25 -54.25 5.996 47.25 54.25
$definebone "door" "" 0 0 0 0 0 89.999983 0 0 0 0 0 0
$definebone "handle" "door" 43.810005 -10.390667 1.997513 0 0 0 0 0 0 0 0 0
$definebone "handle02" "door" 43.810005 -10.390667 1.997513 0 0 0 0 0 0 0 0 0
$weightlist "weights_openbar" {
"door" 0
"handle" 0
"handle02" 1
}
$sequence "idle" {
"door01_left_anims\idle.smd"
activity "ACT_IDLE" 1
}
$sequence "locked" {
"door01_left_anims\locked.smd"
activity "ACT_DOOR_LOCKED" 1
}
$sequence "openbar" {
"door01_left_anims\openbar.smd"
hidden
weightlist "weights_openbar"
}
$sequence "open" {
"door01_left_anims\open.smd"
activity "ACT_DOOR_OPEN" 1
{ event 1 8 "" }
addlayer "openbar"
}
//$collisionmodel "door01_left_physics.smd"
//{
// $mass 50
// $inertia 1
// $damping 0
// $rotdamping 0
// $rootbone " "
// $concave
// $maxconvexpieces 1
//}