John

[Updated] ExileReborn - A complete survival package

893 posts in this topic

11 minutes ago, jus61 said:

TFAR it also needs

Are you capable of overwriting that your self ? If not I can make it an option?

Share this post


Link to post
Share on other sites
Advertisement

create a file called 

ExileClient_system_thread_initialize.sqf

Place it in the overwrites folder

Inside, that file put this

Spoiler

/**
 * ExileClient_system_thread_initialize
 *
 * Exile Mod
 * www.exilemod.com
 * © 2015 Exile Mod Team
 *
 * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. 
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
 */
 
scriptName 'ExileClient Main Thread';
ExileSystemSpawnThread = [];
ExileSystemThreadDelays = [];
ExileSystemMainTimer = time;
ExileSystemThreadSleep = 0.01;
ExileSystemThreadID = 10000;
[] spawn 
{
	waitUntil {!isNil "ExileClientLoadedIn"};
	"Main thread started" call ExileClient_util_log;
	while {true} do
	{
		if !(ExileSystemSpawnThread isEqualTo []) then
		{
			{
				if (ExileSystemMainTimer > (((_x select 1) + (_x select 0)) - ExileSystemThreadSleep)) then
				{
					(_x select 3) call (_x select 2);
					_x set [1, time];
					if !(_x select 5) then
					{
						[_x select 4] call ExileClient_system_thread_removeTask;
					};
				};
			} 
			forEach ExileSystemSpawnThread;
		};
		//onEachFrame {};
		ExileSystemMainTimer = time;
		uiSleep ExileSystemThreadSleep;
	};
};

 

Inside your config.cpp

Find this section

Spoiler

class CfgExileCustomCode 
{
	/*
		You can overwrite every single file of our code without touching it.
		To do that, add the function name you want to overwrite plus the 
		path to your custom file here. If you wonder how this works, have a
		look at our bootstrap/fn_preInit.sqf function.

		Simply add the following scheme here:

		<Function Name of Exile> = "<New File Name>";

		Example:

		ExileClient_util_fusRoDah = "myaddon\myfunction.sqf";
	*/
	ExileClient_object_player_stats_update = "overwrites\ExileClient_object_player_stats_update.sqf";	
	// Disable that stupid 5 waypoint bullshit..
	ExileClient_gui_map_event_onMouseButtonUp = "overwrites\ExileClient_gui_map_event_onMouseButtonUp.sqf";
	//disable PP effect in rad zone if u have a gask mask
	ExileClient_system_radiation_thread_update = "overwrites\ExileClient_system_radiation_thread_update.sqf";
	// Custom keys
	ExileClient_gui_hud_event_onKeyDown = "overwrites\ExileClient_gui_hud_event_onKeyDown.sqf";
	// Make it snow based off altitude
	ExileClient_system_snow_thread_update = "overwrites\ExileClient_system_snow_thread_update.sqf";
	// Bleed when hit
	ExileClient_object_player_event_onHandleDamage = "overwrites\ExileClient_object_player_event_onHandleDamage.sqf";
	// ExAdd
	ExileClient_gui_xm8_slide = "ExAdClient\XM8\CustomCode\ExileClient_gui_xm8_slide.sqf";
    ExileClient_gui_xm8_show = "ExAdClient\XM8\CustomCode\ExileClient_gui_xm8_show.sqf";  
    // fix temp
    ExileClient_object_player_stats_updateTemperature = "overwrites\ExileClient_object_player_stats_updateTemperature.sqf";
    // WRECK loot
    ExileClient_system_lootManager_thread_spawn = "overwrites\ExileClient_system_lootManager_thread_spawn.sqf";
    // Custom loadouts
    //ExileClient_object_player_network_createPlayerResponse = "overwrites\ExileClient_object_player_network_createPlayerResponse.sqf";
    // Make toasts last longer
    ExileClient_gui_toaster_addToast = "overwrites\ExileClient_gui_toaster_addToast.sqf"; 
    // Add to inventory event handler 
    ExileClient_object_player_event_onInventoryOpened = "overwrites\ExileClient_object_player_event_onInventoryOpened.sqf";
    // Change health scanner
    ExileClient_gui_xm8_slide_healthScanner_onOpen = "overwrites\ExileClient_gui_xm8_slide_healthScanner_onOpen.sqf";
    // Esseker spawn fix
    ExileServer_object_player_createBambi = "overwrites\server\ExileServer_object_player_createBambi.sqf";
    // manipulate garbage collection
    ExileServer_system_garbageCollector_unscheduled_deleteAllDead = "overwrites\server\ExileServer_system_garbageCollector_unscheduled_deleteAllDead.sqf";

};

 

Replace with this

Spoiler

class CfgExileCustomCode 
{
	/*
		You can overwrite every single file of our code without touching it.
		To do that, add the function name you want to overwrite plus the 
		path to your custom file here. If you wonder how this works, have a
		look at our bootstrap/fn_preInit.sqf function.

		Simply add the following scheme here:

		<Function Name of Exile> = "<New File Name>";

		Example:

		ExileClient_util_fusRoDah = "myaddon\myfunction.sqf";
	*/
	ExileClient_object_player_stats_update = "overwrites\ExileClient_object_player_stats_update.sqf";	
	// Disable that stupid 5 waypoint bullshit..
	ExileClient_gui_map_event_onMouseButtonUp = "overwrites\ExileClient_gui_map_event_onMouseButtonUp.sqf";
	//disable PP effect in rad zone if u have a gask mask
	ExileClient_system_radiation_thread_update = "overwrites\ExileClient_system_radiation_thread_update.sqf";
	// Custom keys
	ExileClient_gui_hud_event_onKeyDown = "overwrites\ExileClient_gui_hud_event_onKeyDown.sqf";
	// Make it snow based off altitude
	ExileClient_system_snow_thread_update = "overwrites\ExileClient_system_snow_thread_update.sqf";
	// Bleed when hit
	ExileClient_object_player_event_onHandleDamage = "overwrites\ExileClient_object_player_event_onHandleDamage.sqf";
	// ExAdd
	ExileClient_gui_xm8_slide = "ExAdClient\XM8\CustomCode\ExileClient_gui_xm8_slide.sqf";
    ExileClient_gui_xm8_show = "ExAdClient\XM8\CustomCode\ExileClient_gui_xm8_show.sqf";  
    // fix temp
    ExileClient_object_player_stats_updateTemperature = "overwrites\ExileClient_object_player_stats_updateTemperature.sqf";
    // WRECK loot
    ExileClient_system_lootManager_thread_spawn = "overwrites\ExileClient_system_lootManager_thread_spawn.sqf";
    // Custom loadouts
    //ExileClient_object_player_network_createPlayerResponse = "overwrites\ExileClient_object_player_network_createPlayerResponse.sqf";
    // Make toasts last longer
    ExileClient_gui_toaster_addToast = "overwrites\ExileClient_gui_toaster_addToast.sqf"; 
    // Add to inventory event handler 
    ExileClient_object_player_event_onInventoryOpened = "overwrites\ExileClient_object_player_event_onInventoryOpened.sqf";
    // Change health scanner
    ExileClient_gui_xm8_slide_healthScanner_onOpen = "overwrites\ExileClient_gui_xm8_slide_healthScanner_onOpen.sqf";
    ExileClient_system_thread_initialize = "overwrites\ExileClient_system_thread_initialize.sqf";
    // Esseker spawn fix
    ExileServer_object_player_createBambi = "overwrites\server\ExileServer_object_player_createBambi.sqf";
    // manipulate garbage collection
    ExileServer_system_garbageCollector_unscheduled_deleteAllDead = "overwrites\server\ExileServer_system_garbageCollector_unscheduled_deleteAllDead.sqf";

};

 

Done

  • Like 1

Share this post


Link to post
Share on other sites
1 hour ago, McSpuds said:

I have my finger on the trigger for a Tanoa Map with this on it.

I asked John If i could create a Cherno version so now I am working on that and will be happy to share once I get it done.  its about 30% done. I also made the mission file a little less cluttered as well.    easier to modify for different maps. 

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.