Jump to content
giallustio

=BTC= Logistic [A3] - BETA

Recommended Posts

Great spot holo89!

I think the best way it's some thing like:

speed _veh <= 2 && speed _veh >= -2

Share this post


Link to post
Share on other sites

This is a bit off Topic but who had the Idea of having negatie speed? :o

Share this post


Link to post
Share on other sites
I'm trying to get some stuff not liftable but the script doesnt seem to recognize it.

I have tried:

in the objects init line.

this setvariable ["BTC_cannot_lift",1,true];

test1 setvariable ["BTC_cannot_lift",1,true]; // with test1 being the Varname.

obj setvariable ["BTC_cannot_lift",1,true]; // just to make sure :)

I've also tried putting it in the init.sqf with (ofc) no succes either.

am i doing something wrong or does the script not support this option yet?

fixed.

How did you fix it? I'm still unable to make things unliftable.

Share this post


Link to post
Share on other sites

Nice work Giallustio,

Do you know if i can change the speed for the fast-rope ... ?

For my team, it's just little to fast ... ;)

Thank's

Share this post


Link to post
Share on other sites

Do vehicles carry momentum now when dropped with a player inside of them? Also has the weird shaking been fixed when a player inside a vehicle that is being carried and the helicopter is going fast?

Share this post


Link to post
Share on other sites

Could you correct the download link for 0.13 please? Seems to be broken :(

Update: found the link in a earlier post but the link in first post is broken.

Share this post


Link to post
Share on other sites

hi , and thank you very much for this script .

It is possible to get only a script for drag some object ?

Share this post


Link to post
Share on other sites
It is possible to get only a script for drag some object ?

Hi,

BTC_active_lift      = 1;
BTC_active_fast_rope = 1;
BTC_active_cargo     = 1;

change Life and fast rope to 0 in the =BTC=_logistic_init.sqf file.

As for the not load to vehicle - not 100% on that part myself.

My own request. I know Giallustio was planning a read me at some stage. but I have managed to get some 'other items' to be transportable.

My question would be what to update to make a specific item loadable without being able to load all items in a class group ie. make just "Land_HBarrier_1_F" without the whole group of "HBarrier_base_F" being able to be loaded.

What exactly is BTC_def_rc vs. BTC_main_rc?

Share this post


Link to post
Share on other sites

Hi Giallustio!

I'm trying to edit your script to allow the ability to paradrop vehicles from a certain height, now I noticed while flicking through the =BTC=_logistic_init.sqf that there was a line saying BTC_l_paradrop =. I then went on to find out that this allows the MH-9 (for me I've set it to the UH80 Camo) to parachute objects that have been unloaded from a altitude greater than 20m. I was wondering if it is possible to do the same but with vehicles, I'm sort of a noob when it comes to other people's scripts because usually my scripts are stupid :).

Not sure if these are what I should be looking at but I think I somehow got to mix BTC_l_paradrop with BTC_detach_cargo.

Also I was wondering with this line in =BTC=_logistic_init.sqf where BTC_l_paradrop is that I can put more than one chopper but I'm not sure how it should be set out.

Share this post


Link to post
Share on other sites

Hi,

really nice Script, thank you for that.

2 Questions. We using 0.12 and if a Vehicle is lifted and empty it is respawning after the given Time(in simple Respawn Script). This happen in 0.13 RC2 ?

Where i can get the 0.13 ? Link are broken :(. Can ysomeone please reup the 0.13 RC2 ?

thx in advance !

greetings Thunder

Share this post


Link to post
Share on other sites

Hi Thunder,

you'll need to use some "player proximity" code in you vehicle.sqf. also stuff in cargo when respawning is lost with the original script.

you can take the vehicle.sqf I made and tailor it for your needs.

https://bitbucket.org/holo89/arma3serverallgadgets

look in the root of the source, it's right there.

regards,

Holo

Share this post


Link to post
Share on other sites

tvm for quick answer. i tried your vehicle.sqf but no chance. All vehicles respaning after given Time in init Line.

Thunder

P.S. the init Line is the same like before right ?

---------- Post added at 15:22 ---------- Previous post was at 14:07 ----------

ok solved :yay: , my fault. used the old init line. tvm !

other Question. I found in Source a Dir called scripts/groupsMenu. So this is useable ? And how and where i must call it ?

thx in advance

greetings Thunder

Edited by [J4F]Thunder666

Share this post


Link to post
Share on other sites

I think it's an artefact from an old version of Fock group management.

instead, use the one in script/groupMenu. quite simple and works well too.

edit1: oupss, tought you were speaking of the one in the root...

you just need to call in your init.sqf the initGroup from the player like this... (line 48 of my init.sqf)

[player] execVM "scripts\groupsMenu\initGroups.sqf";

Edited by holo89
oupss

Share this post


Link to post
Share on other sites

yes I have already did it. thx again. find it very useful, but miss the opportunity to let his Squad Show / Hide.

Greeting Thunder

Share this post


Link to post
Share on other sites
Great spot holo89!

I think the best way it's some thing like:

speed _veh <= 2 && speed _veh >= -2

I know there was talks about the speed of a vehicle even when sitting still, have you implemented any changes that account for the -+ speeds of a UH 80? I have added the suggested changes "speed _veh <= 2 && speed _veh >= -2" and it works but I was just wondering if it has been added to a new version

Thanks

Edited by Hajimoto
expanded on original question

Share this post


Link to post
Share on other sites

error on dl page

alterVista

Page not found (error 404)

The page http://www.giallustio.altervista.org/downloads=BTC=_logistic_013_rc2.zip was not found on this server.

This can be due to:

•The page no longer exists.

•The link you have followed is not valid.

•The page has been moved.

Pay attetion to UPPER and LOWER cases

http://site.altervista.org/Page.html is different from http://site.altervista.org/page.html

Share this post


Link to post
Share on other sites

Any news on an update for this as of today while trying to load an ammo box into the ghosthawk (VAS) i get this error.

Error in expression <t_rc + ([_x] call BTC_get_rc);} foreach _cargo;
_tot_rc
};#line 3 "C:\Users\Gary>
 Error position: <_cargo;
_tot_rc
};#line 3 "C:\Users\Gary>
 Error Undefined variable in expression: _cargo
File C:\Users\Gary\Documents\Arma 3 - Other Profiles\-1PARA-DaSkunk\mpmissions\1PARAOpsV0%2e1.Stratis\=BTC=_logistic\=BTC=_cargo_system\=BTC=_functions.sqf, line 230

Using 0.12

Edited by DaSkunk
adding version number

Share this post


Link to post
Share on other sites
Any news on an update for this as of today while trying to load an ammo box into the ghosthawk (VAS) i get this error.

Error in expression <t_rc + ([_x] call BTC_get_rc);} foreach _cargo;
_tot_rc
};#line 3 "C:\Users\Gary>
 Error position: <_cargo;
_tot_rc
};#line 3 "C:\Users\Gary>
 Error Undefined variable in expression: _cargo
File C:\Users\Gary\Documents\Arma 3 - Other Profiles\-1PARA-DaSkunk\mpmissions\1PARAOpsV0%2e1.Stratis\=BTC=_logistic\=BTC=_cargo_system\=BTC=_functions.sqf, line 230

Using 0.12

meanwhile you can take a look at what I've done on my server

https://bitbucket.org/holo89/arma3serverallgadgets

look at that btc cargo function file around line 230, I added a if ( isNil ...

Share this post


Link to post
Share on other sites

I can't update the script because i'm away from home, but I'm working on it and i have some cool features to share! ;)

Share this post


Link to post
Share on other sites

\=BTC=_logistic\=BTC=_cargo_system\=BTC=_Load.sqf

line 26: _veh setVehicleInit _text_action;ProcessInitCommands;

These two commands were disabled.

"For security reasons, the command was disabled in Arma 3. Use BIS_fnc_MP for remote execution."

Also wouldn't it be better to determine lift/cargo capacity based on this value => [0,0,0] distance ( boudingBoxReal _veh ) ?

That way it will work even with addons.

Amazing scripts btw \O/

Share this post


Link to post
Share on other sites

Hi guys

I've been having trouble getting the ghosthawk to lift a Tracked APC with this script. I am using the ghosthawks with camo.

With my basic understanding of script I think I have set it right but it still doesn't want to know.

Has anybody else solved this?

I've shown the entire script below:

/*
Created by =BTC= Giallustio
Version: 0.12
Date: 20/03/2013
Visit us at: http://www.blacktemplars.altervista.org/
*/
BTC_active_lift      = 1;
BTC_active_fast_rope = 1;
BTC_active_cargo     = 1;
//Common
BTC_dir_action = "=BTC=_logistic\=BTC=_addAction.sqf";
if (BTC_active_lift == 1) then
{
//Lift //"B_Helipilot_F"
BTC_lift_pilot    = []; 
BTC_lift          = 1;
BTC_lifted        = 0;
BTC_lift_min_h    = 7;
BTC_lift_max_h    = 12;
BTC_lift_radius   = 3;
BTC_def_hud       = 1;
BTC_def_pip       = 1;
BTC_l_def_veh_pip = ["B_Heli_Light_01_F","O_Heli_Light_02_F","B_Heli_Transport_01_F","I_Heli_Transport_02_F","B_Heli_Transport_01_camo_F"];
BTC_l_pip_cond    = false;
BTC_cargo_lifted  = objNull;
BTC_Hud_Cond      = false;
BTC_HUD_x         = (SafeZoneW+2*SafeZoneX) + 0.045;
BTC_HUD_y         = (SafeZoneH+2*SafeZoneY) + 0.045;
_lift = [] execVM "=BTC=_logistic\=BTC=_lift\=BTC=_lift_init.sqf";
};
if (BTC_active_fast_rope == 1) then
{
//Fast roping
BTC_fast_rope_h = 35;
BTC_fast_rope_h_min = 5;
BTC_roping_chopper = ["B_Heli_Light_01_F","O_Heli_Light_02_F","B_Heli_Transport_01_F","I_Heli_Transport_02_F","B_Heli_Transport_01_camo_F"];
_rope = [] execVM "=BTC=_logistic\=BTC=_fast_roping\=BTC=_fast_roping_init.sqf";
};
if (BTC_active_cargo == 1) then
{
//Cargo System
_cargo = [] execVM "=BTC=_logistic\=BTC=_cargo_system\=BTC=_cargo_system_init.sqf";
BTC_def_vehicles     = ["Tank","Wheeled_APC","Truck","Car","Helicopter","Tracked_APC"];
BTC_def_cargo        = ["Motorcycle","ReammoBox","ReammoBox_F","Strategic"];
BTC_def_drag         = ["ReammoBox","ReammoBox_F","Strategic"];
BTC_cargo_selected   = objNull;
//{if (format ["%1", _x getVariable "BTC_Cannot_Drag"] != "1") then {_name = getText (configFile >> "cfgVehicles" >> typeof _x >> "displayName");_x addAction [("<t color=""#ED2744"">" + "Drag " + (_name) + "</t>"),"=BTC=_Logistic\=BTC=_Cargo_System\=BTC=_Drag.sqf", "", 7, true, true];};} foreach (nearestObjects [player, BTC_Draggable, 50000]);
};
//[] spawn {while {true} do {sleep 1;hintSilent format ["%1 - %2", typeOf vehicle player,nearestObjects [player, BTC_def_vehicles, 5]];};};
//Functions
BTC_get_liftable_array =
{
_chopper = _this select 0;
_array   = [];
switch (typeOf _chopper) do
{
	//MH9
	case "B_Heli_Light_01_F"     : {_array = ["Motorcycle","ReammoBox","ReammoBox_F","Quadbike_01_base_F","Strategic"];};
                           //MH9 armed
	case "B_Heli_Light_01_armed_F"     : {_array = ["Motorcycle","ReammoBox","ReammoBox_F","Quadbike_01_base_F","Strategic"];};
	//PO-30
	case "O_Heli_Light_02_F"     : {_array = ["Motorcycle","ReammoBox","ReammoBox_F","Strategic","StaticWeapon","Car"];};
	//UH80
	case "B_Heli_Transport_01_F" : {_array = ["Motorcycle","ReammoBox","ReammoBox_F","Strategic","StaticWeapon","Car","Truck","Wheeled_APC","Tracked_APC","Air"];};
                           //UH80 camo
	case "B_Heli_Transport_01_camo_F" : {_array = ["Motorcycle","ReammoBox","ReammoBox_F","Strategic","StaticWeapon","Car","Truck","Wheeled_APC","Tracked_APC","Air"];};
                           //Attack Heli
	case "B_Heli_Attack_01_F" : {_array = ["Motorcycle","ReammoBox","ReammoBox_F","Strategic","StaticWeapon","Car","Air"];};
	//CH49
	case "I_Heli_Transport_02_F" : {_array = ["Motorcycle","ReammoBox","ReammoBox_F","Strategic","StaticWeapon","Car","Truck","Wheeled_APC","Tracked_APC","Air"];};




B_Heli_Light_01_armed_F

};    
_array
};
BTC_l_paradrop =
{
_veh          = _this select 0;
_dropped      = _this select 1;
_chute_type   = _this select 2;
private ["_chute"];
_dropped_type = typeOf _dropped;
if (typeOf _veh == "B_Heli_Light_01_F") then {_chute = createVehicle [_chute_type, [((position _veh) select 0) - 5,((position _veh) select 1) - 10,((position _veh) select 2)- 4], [], 0, "FLY"];} else {_chute = createVehicle [_chute_type, [((position _veh) select 0) - 5,((position _veh) select 1) - 3,((position _veh) select 2)- 4], [], 0, "FLY"];};
_smoke        = "SmokeshellGreen" createVehicle position _veh;
   _smoke attachto [_dropped,[0,0,0]]; 
_dropped attachTo [_chute,[0,0,0]];
_heigh = 0;
while {((getPos _chute) select 2) > 0.3} do {sleep 1;_heigh = (getPos _chute) select 2;};
detach _dropped;
//if (_dropped_type isKindOf "ReammoBox") then {_dropped setPos [getpos _dropped select 0, getpos _dropped select 1, _heigh];};
};
BTC_l_obj_fall =
{
_obj    = _this select 0;
_height = (getPos _obj) select 2;
_fall   = 0.09;
while {((getPos _obj) select 2) > 0.1} do 
{

	_fall = (_fall * 1.1);
	_obj setPos [getPos _obj select 0, getPos _obj select 1, _height];
	_height = _height - _fall;
	//hint format ["%1 - %2", (getPos _obj) select 2,_height];
	sleep 0.01;
};
//if (((getPos _obj) select 2) < 0.3) then {_obj setPos [getPos _obj select 0, getPos _obj select 1, 0.2];};
};

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×