Forum Jump :

Author Message


Posts: 176
Rank:


Level: Member

Country: pl
Location:
Occupation:
Age:
In-game name:

 
#16 Posted at 2016-04-03 15:35        
     
I`m just downloading N`Ziwasogo and dependecies. I will give you reply after tests. Stay sharp :)


Author Message


Posts: 31
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#17 Posted at 2016-04-03 21:51        
     
Thanks, look forward to hearing how it works for you!


Advertisement


Author Message


Posts: 176
Rank:


Level: Member

Country: pl
Location:
Occupation:
Age:
In-game name:

 
#18 Posted at 2016-04-03 22:16        
     
Ok, i have made some hotfixes, but i will be gratefull if You can test it and give me feedback on other maps. I tested it ONLY on Nziwasogo.

There are two different names on SAME DOOR on this map :/ Also in standard Arma3 maps and JBAD building 1 means OPEN and 0 mean closed doors. But on this map 1 mean CLOSED.

Anyway, in breach-config.cpp i have added new param: closeFix. On maps where you have those issues please set it to 1:
closeFix = 1;

Download: Google Drive (TEST VERSION)

Also, please notice that my script dont close doors. Its only lock already closed. On Nziwasogo most of doors are open by default.


Author Message


Posts: 31
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#19 Posted at 2016-04-04 18:45        
     
Thanks. I'll try this out and let you know.

Yeah, I realize most of the doors start open. I've got a door closing script that works, but I don't want to test it with your locking script until I'm sure it works. Thanks again, I'll let you know how it goes!


Author Message


Posts: 176
Rank:


Level: Member

Country: pl
Location:
Occupation:
Age:
In-game name:

 
#20 Posted at 2016-04-05 08:49        
     
Can You share this closing script?


Author Message


Posts: 31
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#21 Posted at 2016-04-05 13:12        
     
Sure. I'll be able to snag it tomorrow or the day after, and test yours with it.


Author Message


Posts: 31
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#22 Posted at 2016-04-06 21:27        
     
So update:
I tried it on N'Ziwasogo, and it doesn't lock the doors. The ability to breach doors works, so I can shoot open the doors, etc, but they don't lock. I would bet it has to do with what you said earlier, about the door open/closed values being inverted.

I did some quick testing, and it appears that it's not calling SAF_fnc_breachLockDoor, so maybe it's possible that the new lines of code in fn_breachGetTargetDoors, specifically:
			} foreach [_selectionName_def,_selectionName_jbad,_selectionName_dvere];
			if (_break) then {breakTo "mainScope";};
			diag_log format ["GetTargetDoors"];
			if (_target in saf_mission_setting_breach_Buildings && _dS1 == -1 && _dS2 == -1 && _dS3 == -1) then {	
			diag_log format ["GetTargetDoors2"];
				[_target,_selectionName_def,_selectionName_jbad,_selectionName_dvere,_dS1,_dS2,_ds3] call SAF_fnc_breachLockDoor;
			} else {

I added the diag_log's to see where it was going wrong, and the rpt file never showed "GetTargetDoors2". I'll play with it some more to see what the issue is, but if you've got any ideas, I'm happy to try them out.

Added 2 minutes later:

Also, here's the code I'm using to close the doors, although right now I'm only trying doors that are closed by default, and not using this script.
_houses = [1000,1000] nearObjects ["house", 1000000];
_zeroes = ["dvere","dvere1l","dvere1r","dvere2l","dvere2r","dvere_spodni_r","dvere_spodni_l","dvere_vrchni","vrata1","vrata2","vratal1","vratar1","vratal2","vratar2","vratal3","vratar3"];
_ones = ["door","door_1_1","door_1_2","door_2_1","door_2_2","dvere1","dvere2","dvere3","dvere4","dvere5","dvere6","dvere7","dvere8","dvere9","dvere10","dvere11","dvere12","dvere13","dvere14","doorl","doorr","door_01","door01_a","door_02","door02_a","door_03","door_04","door_05","door_06","door_1a","door_1","door_2"];
_twos = ["door_1_rot","door_3_rot","door_2_rot","door_4_rot","door_5_rot","door_6_rot","door_7_rot"];
{
 _y = _x;
 {_y animate [format ["%1", _x], 0]} foreach _zeroes;
 {_y animate [format ["%1", _x], 1]} foreach _ones;
 {_y animate [format ["%1", _x], 1]} foreach _twos;
 sleep 0.0001;
} foreach _houses

I will probably update it if we get this working to be compatible with your new "Fix" config line. Right now I made that a seperate script file and I execVM in the init.sqf


Author Message


Posts: 10
Rank:


Level: Member

Country: us
Location: New York
Occupation:
Age:
In-game name:

 
#23 Posted at 2016-04-06 22:35        
     
Making a mission in Santa Catalina Island that uses those cool american urban buildings, I noticed the script doesn't work with those doors, maybe you can test it to see if you can still lock the doors and do breaching with explosive.


Author Message


Posts: 176
Rank:


Level: Member

Country: pl
Location:
Occupation:
Age:
In-game name:

 
#24 Posted at 2016-04-07 07:48        
     
Yakavetta[31stMEU] thanks for grate feedback. I will do more test, give me few days. Also - if we can manage it to work - can i use Your scrip and integrate it? The issue can be that Your script is running from init.sqf AFTER my script (that is running as postInit function). If You agree i could add new param to settings. Something like closeAllDoors = 1;

phantom3013 please watch this thread. If we get this working together with Yakavetta[31stMEU], it could be working for You also.


Author Message


Posts: 31
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#25 Posted at 2016-04-07 11:18        
     
Of course, I found most of that on the BI forums and modified it to work on this map.


Author Message


Posts: 176
Rank:


Level: Member

Country: pl
Location:
Occupation:
Age:
In-game name:

 
#26 Posted at 2016-04-07 20:36        
     
Here You are. Tested on Nziwasogo.
Two new parameters:
customDoorNames[]={}; //< use to define custom door names if script dont work

and for each zone:
closeDoors = 1; //<1- close all doors in zone, 0- do nothing

Example on Nzivasogo included in ZIP.
As before, please give me your feedback.
GOOGLE DRIVE (TEST VERSION 1.2A)


Author Message


Posts: 31
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#27 Posted at 2016-04-07 23:45        
     
Sushi,

It works as intended. Thanks. If I may ask, I'm trying to make your script so it only locks the front doors. While the easy way would be to just edit the script, I wanted to add:
LockFrontDoorsOnly = 1; //1<-Will only work on the front doors, will ignore almost all internal doors
and in the fn_GetTargetDoors, I was going to modify it to this:

			if (saf_mission_setting_breach_LockFrontDoorsOnly  > 0) then {
			if (_target in saf_mission_setting_breach_Buildings && _dS1 == -1 && _dS2 == -1 && _dS3 == -1  && 
				(_selectionName_def == "door_1_rot" || _selectionName_def == "door_3_rot" || _selectionName_def == "door_2_rot") && 
				(_selectionName_jbad == "door_1" || _selectionName_jbad == "door_3" || _selectionName_jbad == "door_2") &&
				(_selectionName_dvere == "dvere1" || _selectionName_dvere == "dvere2" || _selectionName_dvere == "dvere3")) then {	
				diag_log _selectionName_def;
				diag_log _selectionName_dvere;
				diag_log _selectionName_jbad;
				diag_log format ["LockFrontDoorOnly"];
				[_target,_selectionName_def,_selectionName_jbad,_selectionName_dvere,_dS1,_dS2,_ds3] call SAF_fnc_breachLockDoor;
			} else {

				if (_target in saf_mission_setting_breach_Buildings) then {
					[_target,_selectionName_def,_selectionName_jbad,_selectionName_dvere] call SAF_fnc_breachManageLockedDoor;
				};
			};
			} else {
			if (saf_mission_setting_breach_LockFrontDoorsOnly  < 1 ) then {
				if (_target in saf_mission_setting_breach_Buildings && _dS1 == -1 && _dS2 == -1 && _dS3 == -1 ) then {	
				diag_log _selectionName_def;
				diag_log _selectionName_dvere;
				diag_log _selectionName_jbad;
				diag_log format ["LockAllDoors"];
				[_target,_selectionName_def,_selectionName_jbad,_selectionName_dvere,_dS1,_dS2,_ds3] call SAF_fnc_breachLockDoor;
			} else {

				if (_target in saf_mission_setting_breach_Buildings) then {
					[_target,_selectionName_def,_selectionName_jbad,_selectionName_dvere] call SAF_fnc_breachManageLockedDoor;
				};
			};
			};
			};

Yet for some reason, when I launch with closefrontdoorsonly = 1, it still locks all doors, and the diag_log shows "LockAllDoors." I'm clearly doing something wrong, and I would love some input. Thanks!


Author Message


Posts: 176
Rank:


Level: Member

Country: pl
Location:
Occupation:
Age:
In-game name:

 
#28 Posted at 2016-04-08 00:00        
     
Grate! Im releasing it as next version. Many thanks for help and feedback. Grate work mate :)

And about front doors:
Add param LockFrontDoorsOnly to general BREACH class, not to child zone class, and then in fn_breachGetSettings.sqf add:
SAF_MISSION_SET(breach_LockFrontDoorsOnly) = [SAF_MISSION_SETTINGS(Plugins,BREACH),"LockFrontDoorsOnly",0] call BIS_fnc_returnConfigEntry;

EDIT:
New version released First post update.

This post was edited by bp.sushi (2016-04-08 00:18, 617 days ago)


Author Message


Posts: 31
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#29 Posted at 2016-04-08 00:57        
     
Ah, that's what I did. I added it to the child zone class. Thanks! Great job on this!


Author Message


Posts: 10
Rank:


Level: Member

Country: us
Location: New York
Occupation:
Age:
In-game name:

 
#30 Posted at 2016-04-08 04:51        
     
Oh awesome, I'm glad you will be making updates. It's a great script and I plan on making a massive FBI mission hopefully I can use your script if it can work for all the doors in Santa Catalina. I'll check the forum daily, just let me know if it's been fully tested on that map. Good luck, and good work!

This post was edited by phantom3013 (2016-04-08 07:41, 617 days ago)