I'm working on a custom model with custom gibs, but I seem to have run into a bit of a wall. Let me explain what I'm trying to do.
I'm working on a fort-style map where the fort is under fire from flaming ballista arrows and catapults. The ballistas I have working no problem, but I am having a bit of an issue with the catapult ammunition.
The catapult shells/rocks are supposed to impact, explode, and send shrapnel flying in every direction. I actually was able to get this to work after a few days of toil.
The shells fly in, explode and send shrapnel flying everywhere, the only problem is that the shrapnel doesn't collide with the player.
Essentially I made it so when the shell model breaks on impact, shrapnel gibs spawn with the inherited speed and direction of the shell. They collide fine with the world, but I need them to collide with the players.
Here's the QC for the main shell:
- Code: Select all
$modelname "sd_defball"
$scale 1
$staticprop
$cdmaterials "models\woodfort"
$surfaceprop "metal"
$keyvalues
{
prop_data
{
health 1
}
}
$body "Body" "sd_defball_ref.SMD"
$sequence "Idle" "E:\Users\Sporkwhistle\Desktop\Defense Ball (MDL)\sd_defball_ref.SMD" fps 30 ACT_IDLE 1
$collisionmodel "E:\Users\Sporkwhistle\Desktop\Defense Ball (MDL)\sd_defball_phys.SMD"
{
$concave
$mass 600
}
$collisiontext
{
break
{
"model" "sd_defball_gib.mdl" "fadetime" "10" "burst" "25" "offset" "5 0 0 0"
}
break
{
"model" "sd_defball_gib.mdl" "fadetime" "10" "burst" "25" "offset" "4 4 0 0"
}
break
{
"model" "sd_defball_gib.mdl" "fadetime" "10" "burst" "25"
}
break
{
"model" "sd_defball_gib.mdl" "fadetime" "10" "burst" "25"
}
break
{
"model" "sd_defball_gib.mdl" "fadetime" "10" "burst" "25"
}
break
{
"model" "sd_defball_gib.mdl" "fadetime" "10" "burst" "25"
}
break
{
"model" "sd_defball_gib.mdl" "fadetime" "10" "burst" "25"
}
break
{
"model" "sd_defball_gib.mdl" "fadetime" "10" "burst" "25"
}
break
{
"model" "sd_defball_gib.mdl" "fadetime" "10" "burst" "25"
}
break
{
"model" "sd_defball_gib.mdl" "fadetime" "10" "burst" "25"
}
break
{
"model" "sd_defball_gib.mdl" "fadetime" "10" "burst" "25"
}
break
{
"model" "sd_defball_gib.mdl" "fadetime" "10" "burst" "25"
}
break
{
"model" "sd_defball_gib.mdl" "fadetime" "10" "burst" "25"
}
break
{
"model" "sd_defball_gib.mdl" "fadetime" "10" "burst" "25"
}
break
{
"model" "sd_defball_gib.mdl" "fadetime" "10" "burst" "25"
}
break
{
"model" "sd_defball_gib.mdl" "fadetime" "10" "burst" "25"
}
break
{
"model" "sd_defball_gib.mdl" "fadetime" "10" "burst" "25"
}
break
{
"model" "sd_defball_gib.mdl" "fadetime" "10" "burst" "25"
}
break
{
"model" "sd_defball_gib.mdl" "fadetime" "10" "burst" "25"
}
break
{
"model" "sd_defball_gib.mdl" "fadetime" "10" "burst" "25"
}
break
{
"model" "sd_defball_gib.mdl" "fadetime" "10" "burst" "25"
}
break
{
"model" "sd_defball_gib.mdl" "fadetime" "10" "burst" "25"
}
break
{
"model" "sd_defball_gib.mdl" "fadetime" "10" "burst" "25"
}
break
{
"model" "sd_defball_gib.mdl" "fadetime" "10" "burst" "25"
}
}
Here's the QC for the shrapnel:
- Code: Select all
$modelname "sd_defball_gib"
$scale 1
$staticprop
$cdmaterials "models\woodfort"
$surfaceprop "metal"
$keyvalues
{
prop_data
{
dmg.bullets 0
explosive_damage 50
explosive_radius 128
fire_interactions
{
explosive_resist yes
ignite halfhealth
flammable yes
}
}
}
$body "Body" "sd_defball_gib_ref.SMD"
$sequence "Idle" "E:\Users\Sporkwhistle\Desktop\Defense Ball (MDL)\sd_defball_gib_ref.SMD" fps 30 ACT_IDLE 1
$collisionmodel "E:\Users\Sporkwhistle\Desktop\Defense Ball (MDL)\sd_defball_gib_phys.SMD"
{
$concave
$mass 150
}
Is there any way to make the shrapnel collide with the player? Or is it hard-coded into source that gibs don't collide with the player? Also, is there any way to get exploding or flaming gibs working? I can't seem to pull it off.
Thanks!
EDIT: I was wondering if there was any way to get the ballista arrows to stick into the walls of the fort? Is there any keyvalue or setting available for this in source?