[TF2] prop_ragdoll keeps crashing my game even with a model set.
FIXED: The crash was because TeleportEntity was being called before DispatchSpawn and ActivateEntity.
If I spawn a prop_ragdoll using the console: ent_create prop_ragdoll model "models/player/spy.mdl" ...the game won't crash and the ragdoll is spawned. However, if I do it in Sourcemod, even ensuring it's model is set... it crashes. PHP Code:
As I cannot even debug if my game crashes straightaway after the problem, plus seeing how a plugin that spawned prop_ragdolls worked in another game, (and following that plugin's code still crashes in TF2) I have no idea what to do next. Why do I want server-sided ragdolls? Well, it was just a little experiment I wanted to conduct. |
Re: [TF2] prop_ragdoll keeps crashing my game even with a model set.
For TF2, use the entity tf_ragdoll.
|
Re: [TF2] prop_ragdoll keeps crashing my game even with a model set.
Quote:
Dangit, I should've made it more clear. I always manage to forget about info, info, and more info. |
Re: [TF2] prop_ragdoll keeps crashing my game even with a model set.
Have you tried not creating a "physics_prop_ragdoll" instead use the entity you are using with this command (ent_create prop_ragdoll model "models/player/spy.mdl")
PHP Code:
PHP Code:
|
Re: [TF2] prop_ragdoll keeps crashing my game even with a model set.
Quote:
I initially went with prop_ragdoll and didn't include that SetEdictFlags in my code, but they didn't work. Fast-forward to using those bits of code, and it still hasn't solved the problem. |
Re: [TF2] prop_ragdoll keeps crashing my game even with a model set.
Well, after the passing of the dreaded 2020, I finally found out why prop_ragdoll was crashing my game.
It was because TeleportEntity was being called before DispatchSpawn and ActivateEntity. So, uh... do yourselves a good favor and remember how to avoid this crash the next time you want to use prop_ragdoll. ¯\_(ツ)_/¯ |
All times are GMT -4. The time now is 18:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.