Author Topic: Console Command: Force Add-on Load?  (Read 3196 times)

There has been many a times in my server when I've forgotten to enable an add-on that is necessary for my L4D Build (Yes I could just shut down the server and re-pick [to lazy] or I could just be more careful [I've tried])

And I know there is a way to do so(Yes I also know that if a player does not have the add-on that was forced to load they will crash) I just want to know what it is. Please help

(Is this the right section for this anyways?)

There's a way to do it so they don't crash.

Try this:
e(Addon_name);transmitDataBlocks();
Do that all on the same line, then do this:

clientCmdMissionStartPhase3();
This will make so you can use the stuff.

Note: All new particle datablocks will not load textures properly.

Edit:
I also don't know what will happen if they didn't download the shape files and such.
« Last Edit: May 06, 2009, 09:46:59 PM by Chrono »

There's a way to do it so they don't crash.

Try this:
e(Addon_name);transmitDataBlocks();
Do that all on the same line, then do this:

clientCmdMissionStartPhase3();
This will make so you can use the stuff.

Note: All new particle datablocks will not load textures properly.

Edit:
I also don't know what will happen if they didn't download the shape files and such.

Thanks I'll try it.

for your edit: they will probably crash or be kicked

Code: [Select]
forceRequiredAddOn("Weapon_Gun");transmitDataBlocks();clientCmdMissionStartPhase3();
But really, just restart the server with the correct Add-Ons. It works better with mods with special scripting/dependancies, won't crash clients without necessary files and loads textures properly.