Garry's Mod

Garry's Mod

59 个评价
Automated & (More) Stable r_flushlod
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 特效
插件标签: 建筑, 快乐
文件大小
发表于
2.102 KB
8 月 24 日 上午 7:55
1 项改动说明 ( 查看 )

订阅以下载
Automated & (More) Stable r_flushlod

在 Coffee Man 的 1 个合集中
Coffee Man's Gameplay-Enhancing Addons
71 件物品
描述
r_flushlod is a console command used to reload models. It's particularly useful when you encounter model checksum errors. These errors happen when you play in a map with baked in content in it's BSP, and then you load into another map which uses the same content but loaded from another source, leading to invisible models and error spams in console, as the loaded checksum is different.

This addon tries to rectify this model issue as best as Source allows, and while stable enough, it's not 100% crash-free guaranteed. It takes effect automatically everytime you load in a map.

If you don't know why you wanna use this addon, you don't need this addon.





Specifics:
  • r_flushlod is extremely unstable and will often crash your game if used when:

    -Looking at a lot of models.
    -Playing in the 64bit branch.
    -Playing with gmod_mcore_test 1.


  • r_flushlod is way more stable if used when:

    -Being out of bounds and looking at nothing so no models are rendered.
    -Playing in the default 32bit branch.
    -Playing with gmod_mcore_test 0.


  • For the best stability, refer to the 3 points above. This addon will be way more prone to crashing in the 64bit branch.


  • This addon fixes the invisible models issue by doing the following when the player first initially spawns in a map:

    -After 0.05 seconds, it spawns a camera facing down and 10000 units below the player's position and it changes the player view to that camera.
    -After 0.1 seconds, it runs the r_flushlod command.
    -After 0.2 seconds, it sets the view back to the player and removes the camera.


  • The camera transition happens so fast, chances are most players will not notice it at all.


  • Mainly tested in the 32bit version of Garry's Mod with gmod_mcore_test 0, and after some lengthy testing in multiple maps, no crashes occurred, and the invisible models issue is fixed. However, due to the unpredictable nature of r_flushlod and Source Engine being held together by half of an expired gum, quarter of an expired duct tape and 2.3 prayers, the crash chance is always not 0.


  • If you play in the 64bit branch (which also enables gmod_mcore_test 1 by default), I don't recommend you to use this addon, as the crash chance is way higher.


Limitations:
  • This addon has only been tested for Single Player. There may be unnoticed bugs during multiplayer matches.




Credits: