Sign in to follow this  
Followers 0
Gerardw123

Any way to change the safzone messages?

4 posts in this topic

I'd like the change the "Entering Safezone" pop up message to say something else. Any way to do that?

Share this post


Link to post
Share on other sites

I'm not sure about changing the message in the corner. But if you have your ExileClient_object_player_event_onEnterSafezone over written for something like r3f you can simply go to your mission pbo open ExileClient_object_player_event_onEnterSafezone.sqf look for 

Spoiler

if (alive player) then
{
	player allowDamage false;
	player removeAllEventHandlers "HandleDamage";
};

 

change it to

Spoiler

if (alive player) then
{
	player allowDamage false;
	player removeAllEventHandlers "HandleDamage";
	hint "You have entered a safezone. \nVehicles left in trader unlock upon restart. \nCamping is not bannable, but frowned upon. \nBe careful with your vehicles \nbecause stealing is allowed."; //Edit to your liking \n forces a new line
};

 

If you don't have it overwritten get your hands on the original ExileClient_object_player_event_onEnterSafezone.sqf (I don't have one handy)  

make the edit from above and save it to the root of the mission pbo. Then open your config.cpp in your mission pbo and find class CfgExileCustomCode  and add

ExileClient_object_player_event_onEnterSafezone = "ExileClient_object_player_event_onEnterSafezone.sqf";

into the array.  Repack your mission pbo and enjoy.

 

EDIT: Here is a vanilla copy of ExileClient_object_player_event_onEnterSafezone.sqf with the changes already made. Just Edit the message to your liking.

Spoiler

/**
 * ExileClient_object_player_event_onEnterSafezone
 *
 * 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/.
 */
 
private["_vehicle","_attachedObjects","_position"];
if (ExilePlayerInSafezone) exitWith { false };
ExilePlayerInSafezone = true;
if (alive player) then
{
	player allowDamage false;
	player removeAllEventHandlers "HandleDamage";
	hint "You have entered a safezone. \nVehicles left in trader unlock upon restart. \nCamping is not bannable, but frowned upon. \nBe careful with your vehicles \nbecause stealing is allowed."; //Edit to your liking \n forces a new line
};
_vehicle = vehicle player;
if !(_vehicle isEqualTo player) then 
{
	if (local _vehicle) then 
	{
		_vehicle allowDamage false;
	};
	_attachedObjects = attachedObjects _vehicle;
	if !(_attachedObjects isEqualTo []) then 
	{
		_position = getPosATL _vehicle;
		{
			if ((typeOf _x) in ["DemoCharge_Remote_Mag", "SatchelCharge_Remote_Mag"]) then 
			{
				detach _x;
				_x setPosATL [(_position select 0) + random 2, (_position select 1) + random 2, 0.05];
				_x setDir (random 360);
			};
		}
		forEach _attachedObjects;
	};
	ExileClientSafeZoneVehicle = _vehicle;
	ExileClientSafeZoneVehicleFiredEventHandler = _vehicle addEventHandler ["Fired", {_this call ExileClient_object_player_event_onFiredSafeZoneVehicle}];
};
ExileClientSafeZoneESPEventHandler = addMissionEventHandler ["Draw3D", {20 call ExileClient_gui_safezone_safeESP}];
["SafezoneEnter"] call ExileClient_gui_notification_event_addNotification;
ExileClientSafeZoneUpdateThreadHandle = [1, ExileClient_object_player_thread_safeZone, [], true] call ExileClient_system_thread_addtask;
true

 

 

Edited by oSoDirty

Share this post


Link to post
Share on other sites
Advertisement
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
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.