Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Projectile] Projectiles with a custom model don't precache gib models, and don't spawn gibs at all as a result #225

Closed
SilentFox3 opened this issue Jun 28, 2023 · 1 comment
Labels
fixed in patch This issue has been fixed in an upcoming version of the game.

Comments

@SilentFox3
Copy link

Certain projectiles - primarily Stickybombs and related - will shatter or fizzle into gibs in certain circumstances, such as when hitting them with hitscan, the shooter dying, or fizzling on det attempt... etc. TF2C's base-game projectiles generate non-teamcolorable gib models as normal in these cases - including the Mine Layer.

Oddly, however, custom gibs don't seem to precache normally. They aren't precached when the parent model pointing to them is loaded, nor when cough loaded as backend, unequippable weapon models. Because of this, custom models with custom gibs won't ever create custom gibs, even if all the filepaths are otherwise correct.

Notably, though, a custom model using existing gibs from another model, generates those gibs fine. Additionally, a custom model projectile is able to generate gibs of its own model, if that's set. So, custom models aren't inherently disallowed from creating gibs, it mainly seems to be some kind of cache issue.

I'd recommend looking at the Mine Layer in some detail - it uses the same method to set a custom projectile model, but it creates gibs perfectly fine.

@azzyr
Copy link

azzyr commented Jun 29, 2023

thanks, custom_projectile_model now precaches gibs in 2.1.2

@azzyr azzyr closed this as completed Jun 29, 2023
@azzyr azzyr added the fixed in patch This issue has been fixed in an upcoming version of the game. label Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed in patch This issue has been fixed in an upcoming version of the game.
Projects
None yet
Development

No branches or pull requests

2 participants