Talk:$collisiontext: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
 
Line 18: Line 18:
== Bodygroup and skin? ==
== Bodygroup and skin? ==
I find it strange that you wouldn't be able to use bodygroups and skins to reduce file repetition; need to test if you can just use the standard [[CBaseAnimating]] {{code|body}} and {{code|skin}} KVs or something similar, like how [[prop_data]] gibs support {{code|breakable_skin}}.<br/>— [[User:SirYodaJedi|SirYodaJedi]] ([[User_talk:SirYodaJedi|talk]]) 13:20, 11 March 2025 (PDT)
I find it strange that you wouldn't be able to use bodygroups and skins to reduce file repetition; need to test if you can just use the standard [[CBaseAnimating]] {{code|body}} and {{code|skin}} KVs or something similar, like how [[prop_data]] gibs support {{code|breakable_skin}}.<br/>— [[User:SirYodaJedi|SirYodaJedi]] ([[User_talk:SirYodaJedi|talk]]) 13:20, 11 March 2025 (PDT)
:Nope, [https://github.com/ValveSoftware/source-sdk-2013/blob/b2705ba55b3b802b86ef2b2dbf97939c9d4fb685/src/game/shared/props_shared.cpp#L533 the KVs listed on this page are the only keys]. That said, it looks like it's not hardcoded in the engine? It's in the game DLLs, so those probably can be added in a mod shipping it's own binaries.<br/>— [[User:SirYodaJedi|SirYodaJedi]] ([[User_talk:SirYodaJedi|talk]]) 12:53, 14 November 2025 (PST)

Latest revision as of 12:53, 14 November 2025

Health

I found that Health needs to go in $keyvalues. 0 makes it invulnerable, which I recommend as a value for custom gibs, 1-100 for breakables (depending on how many hits it should take to break).

  $keyvalues { "prop_data" { "base" "Wooden.Small" "health" "0" } }

--Rayne 10:52, 23 May 2008 (PDT)

To do: Is propdata required when using $collisiontext?

Answer: Propdata is NOT required when using $collisiontext.

--Tehrasha

Source 2013 MP ignores 'debris' flag?

Can somebody confirm it? I tried model with "debris 0" in HL2DM and 2013 base - gibs are not collide with player or prop and can be destroyed only with explosive/melee. In 2007 base gibs collide with everything except each other. --Gazyi

Bodygroup and skin?

I find it strange that you wouldn't be able to use bodygroups and skins to reduce file repetition; need to test if you can just use the standard CBaseAnimating body and skin KVs or something similar, like how prop_data gibs support breakable_skin.
SirYodaJedi (talk) 13:20, 11 March 2025 (PDT)

Nope, the KVs listed on this page are the only keys. That said, it looks like it's not hardcoded in the engine? It's in the game DLLs, so those probably can be added in a mod shipping it's own binaries.
SirYodaJedi (talk) 12:53, 14 November 2025 (PST)