M6mal

how do you disable flag stealing

3 posts in this topic

yes search for the flag inside your config.cpp of your mission.pbo like so below

change from

Spoiler

    class Flag
    {
        targetType = 2;
        target = "Exile_Construction_Flag_Static";

        class Actions
        {
            class Manage : ExileAbstractAction
            {
                title = "Manage";
                condition = "true";
                action = "_this call ExileClient_gui_baseManagement_event_show";
            };
            class StealFlag: ExileAbstractAction
            {
                title = "Steal Flag";
                condition = "((ExileClientInteractionObject getvariable ['ExileFlagStolen',1]) isEqualTo 0)";
                action = "['StealFlag', _this select 0] call ExileClient_action_execute";
            };
            class RestoreFlag: ExileAbstractAction
            {
                title = "Restore Flag";
                condition = "((ExileClientInteractionObject getvariable ['ExileFlagStolen',0]) isEqualTo 1)";
                action = "['restoreFlagRequest', [netID ExileClientInteractionObject]] call ExileClient_system_network_send";
            };
        };
    };

and change to this

Spoiler

    class Flag
    {
        targetType = 2;
        target = "Exile_Construction_Flag_Static";

        class Actions
        {
            class Manage : ExileAbstractAction
            {
                title = "Manage";
                condition = "true";
                action = "_this call ExileClient_gui_baseManagement_event_show";
            };


            /*
            class StealFlag: ExileAbstractAction
            {
                title = "Steal Flag";
                condition = "((ExileClientInteractionObject getvariable ['ExileFlagStolen',1]) isEqualTo 0)";
                action = "['StealFlag', _this select 0] call ExileClient_action_execute";
            };
            */
            
            class RestoreFlag: ExileAbstractAction
            {
                title = "Restore Flag";
                condition = "((ExileClientInteractionObject getvariable ['ExileFlagStolen',0]) isEqualTo 1)";
                action = "['restoreFlagRequest', [netID ExileClientInteractionObject]] call ExileClient_system_network_send";
            };
        };
    };

 

 

1 person likes this

Share this post


Link to post
Share on other sites

i just tried this and it works, just commented it out

 

	class Flag
	{
		targetType = 2;
		target = "Exile_Construction_Flag_Static";

		class Actions
		{
			/*
			class Manage : ExileAbstractAction
			{
				title = "Manage";
				condition = "true";
				action = "_this call ExileClient_gui_baseManagement_event_show";
			};
			
			class StealFlag: ExileAbstractAction
			
			{
				title = "Steal Flag";
				condition = "((ExileClientInteractionObject getvariable ['ExileFlagStolen',1]) isEqualTo 0)";
				action = "['StealFlag', _this select 0] call ExileClient_action_execute";
			};
			*/

 

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.