• Announcements

    • Brentonator

      Forum Rules (Please Read)

      Hello everyone and welcome to the No More Room In Hell Forums! We greatly appreciate your interest and support. Please feel free to begin post and become a part of this community. But please make sure that you read and understand the following rules so things can stay as clean and as orderly as possible around here. These rules are expected to be follow by any and all members at all times. Disobeying these rules will result in disciplinary action by a moderator. #1. Off color remarks are acceptable but can be deemed inappropriate at the discretion of the moderators. #2. Flaming and disrespecting other members of this community or this mod is strictly prohibited. #3. Please do not post links relating to warez or illegal downloading. #4. No offensive content is to be posted (gore, dead babies, porn). #5. Please do not spam topics to increase your post count. #6. No excessively large signatures. Signatures that violate this will be modified. #7. Signatures are not to be used as a spamming tool. If your signature's sole purpose is to annoy or distract other members, it will be removed. #8. Please do your part to be as friendly, respectful, and helpful to anyone and everyone on this forum. #9. Your posts may be removed at any time at our sole discretion. #10. Remember the terms of your registration...a copy is posted below but may not represent the latest version of our terms of use. #11. No advertising other communities or products. Have fun.
Sign in to follow this  
Followers 0
Demo

What dictates if something is explosive?

7 posts in this topic

Shooting a gas can will make it explode by default, but obviously shooting something like a watermelon will not make it transform into a deadly fireball of destruction. So, how do I go about making a custom model a deadly explosive? Preferably with the kill radius of TNT.

Thanks.

Share this post


Link to post
Share on other sites

Yo, i decompiled the gascan001a.mdl for you. this is the QC, should help you out ($keyvalues part)

$modelname "props_junk\gascan001a.mdl"
$model "Body" "gascan001a_reference.smd"
$lod 20
{
replacemodel "gascan001a_reference" "lod1_gascan001a_reference"
}
$lod 30
{
replacemodel "gascan001a_reference" "lod2_gascan001a_reference"
}
$cdmaterials "models\props_junk\"
$hboxset "default"
$hbox 0 "static_prop" -4.044 -9.772 -14.883 4.044 9.772 14.883
// Model uses material "phys_objects02a.vmt"
$surfaceprop "metal"
$keyvalues { prop_data { "base" "Metal.Small" "dmg.bullets" "1.0" "dmg.club" "1.0" "dmg.explosive" "1.0" "health" "20" "explosive_damage" "25" "explosive_radius" "80" } physgun_interactions { "onbreak" "explode_fire" "onfirstimpact" "break" } fire_interactions { "flammable" "yes" } }
$illumposition -0.000 0.000 0.000
$sequence idle "idle" fps 30.00
$collisionmodel "phymodel.smd" {

$concave
$mass 10.0
$inertia 1.00
$damping 0.00
$rotdamping 0.00
}

Share this post


Link to post
Share on other sites

Ah, I didn't know it was part of the actual model, I assumed it was script-related or something. Once again grasn, you are my hero.

Share this post


Link to post
Share on other sites

Actually, it'd help if I figured out the mystery of it not having hitboxes first before seeing if it'll be explosive, huh? Bullets go right through it, any idea why?

Share this post


Link to post
Share on other sites

It prob needs collisions first for stuff to interact with it.

This.

$collisionmodel "phymodel.smd"

{

$concave

$mass 10.0

$inertia 1.00

$damping 0.00

$rotdamping 0.00

}

This part of the .qc is responsible for the collisions I believe. You may need to ask Grasn or someone else on the specifics of collision making though, I don't use 3ds Max :P

Share this post


Link to post
Share on other sites

Thanks for the reply guys, but grasn just told me via steam how to fix this, lol

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0