ILLUXNNN

infiSTAR blocking customcode

13 posts in this topic

Posted (edited)

Hi there,

I changed the customcode for the ExileClient_object_player_event_onFired to this:

Spoiler

            {
                _marker = _x;
                if (typeName _marker isEqualTo "STRING") then
                {
                    {
                        _type = _x select 0;
                        _MinDist = _x select 1;
                        if (getMarkerType _marker isEqualTo _type) then
                        {
                            _markerPos = getMarkerPos _marker;
                            _distance = player distance _markerPos;
                            if (_distance < _MinDist) then
                            {
                                deleteVehicle _projectile;
                                ["ErrorTitleAndText", ["Explosive Removed", "You cannot place an explosive this close to the trader-zone!"]] call ExileClient_gui_toaster_addTemplateToast;
                            };
                        };
                    } forEach getArray (missionConfigFile >> "AntiSpuddies" >> "MarkersToBlockNear");
                };
            } forEach allMapMarkers;
        };

This basicly doesn't allow players to put mines near our traderzone. Everything works when I'm logged in as ADMIN, but normal players can place them just fine, so it has something to do with infistar.. Any suggestions?

Bare in mind that this is just a snippet of the code, I can post the full code too (it looks for our specific tradezone marker and creates a zone around it where people shouldn't be allowed to place down mines)

I put a visible circle with that said range and it works 100%, but ONLY when logged in as admin on infiSTAR.

Any suggestions?

Thanks in advance

Edited by ILLUXNNN

Share this post


Link to post
Share on other sites

Posted (edited)

/*
	if you have any addon/mod that modifies any of the named handlers below, you need to put that one to  "true"
	most mods don't do that - so keep it "false".
*/
useCustomFiredEventHandler = "false";
useCustomHandeDamageHandler = "false";

customfiredeventhandlers on true in the ahat config?

not sure if you would need it for an override,just an idea

Edited by B.A.D.

Share this post


Link to post
Share on other sites
Advertisement

Good catch! I've tried that but no succes. It has to be something infistar related... Even when I'm not logged in as an admin I can't put them down, but normal players can... :( The search continues...

Share this post


Link to post
Share on other sites

Hello ILLUXNNN,

Do this:

Create/Use a test server

Put an EXACT copy of the real server files on the test server

CONFIRM what you state is true

DISABLE InfiSTAR and re-confirm

 

If it works, without IS, then it is InfiSTAR.

If it still fails without IS, it is something else.

 

While I have not configured/used IS in a while, I do know that you must 'authorize' weapons that are 'extra' such as mines in the IS config sections, no config, no mine laying, or you can and then they disappear right away.

 

:)

 

1 person likes this

Share this post


Link to post
Share on other sites

Posted (edited)

@Z80CPU

Thanks for the reply.

I do have a test server, I disabled infistar and the script works 100%. What are my options? :(

I tested it litterally 30s ago.

 

97ba58403413b9710ce0be5696caa56a.jpg

Edited by ILLUXNNN

Share this post


Link to post
Share on other sites

Well, that is a good sign.  You have now pin-pointed to IS.

As I stated, I really cannot help you too much with IS.  I do know that in the past, there USED TO BE, a section where you defined 'outside weapons' such as those mines.  Where and is it even needed anymore?

I am sorry to say, I cannot answer that.

 

BUT, you now KNOW where the problem lies!

 

You're making progress!

 

:)

 

 

1 person likes this

Share this post


Link to post
Share on other sites

I know, I already did the steps you posted in your first post too. I'm not new at debugging :P
It's rather weird that infiSTAR allows this script to run on admins but not on regular players -_-

I send him a message, hopefully he has the answer to this. 

Share this post


Link to post
Share on other sites

I think this may actually affect campfires with v70 infiSTAR also (lit campfires have been killing my players as of late). 

Not certain yet. Going to do some further testing.

1 person likes this

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.