Auto Refuel, Deploy-able Bikes

RichyM92

Well-Known Member
I think pheonix admin tools works, i tried it the other day without the debug. haven't got round to all the script restrictions kicks though. Get about 30-40 kicks, so I'll be working on them soon
 

Wxlls

New Member
When you have it sorted could you please show me how to do it, since I have limited knowledge about programming/scripting
Thanks again for helping me
 

AVendettaForYou

Well-Known Member
To do deployable bikes on overwatch grab your fn_selfactions.sqf and add this below the _canDo = (!r_drag_sqf and !r_player_unconscious and !_onLader);
Code:
if((speed player <= 1) && cursorTarget isKindOf "Old_bike_TK_CIV_EP1" && _canDo) then {
if (s_player_deploybike2 < 0) then {
        s_player_deploybike2 = player addaction[("<t color=""#007ab7"">" + ("Re-Pack Bike") +"</t>"),"spawnbike\bike2.sqf","",5,false,true,"", ""];
    };
} else {
    player removeAction s_player_deploybike2;
    s_player_deploybike2 = -1;
};
 
if((speed player <= 1) && _hasToolbox && _canDo) then {
    if (s_player_deploybike < 0) then {
        s_player_deploybike = player addaction[("<t color=""#007ab7"">" + ("Deploy Bike (will loose Toolbox)") +"</t>"),"spawnbike\bike.sqf","",5,false,true,"", ""];
    };
} else {
    player removeAction s_player_deploybike;
    s_player_deploybike = -1;
};
make sure to make a spawnbike folder inside the mission pbo and make a bike.sqf and a bike2.sqf here is the links to what you need to put in the .sqf's, as well as change the call in compiles for the fn_selfActions.sqf

bike.sqf
http://pastebin.com/1cacH7Nh

bike2.sqf
http://pastebin.com/fvL0Ty4M

Pack it up and test it out, you need a toolbox to build the bike though.

Credits: Code from Player 2 thank you.
 

Wxlls

New Member
I use xstreamgaming.net so i dont have a missions pbo and i dont have the option to pack

and where is my selfactions sqf located? I looked in my Dayz_Server.pbo and cant find it
 

Wxlls

New Member
Done, made a bike folder put them both in but it's not worked do you have Skype, maybe you could help me over that if you would.

My Skypename Is 'Jameswalll' and my picture is of 3 Lads I am from The UK also
 

RichyM92

Well-Known Member
your mission pbo for xstream is via FTP. E.g your IP/MPMissions/overwatch_1.chernarus

I will test this out and help you do it straight after.

you can get fn_selfactions.sqf from your Your IP/@DayZOverwatch_server/addons/dayz_server.pbo I recommend using PBO manager to extract it from your pbo folder.
 
Player 2 has this working perfectly on her servers, as well as custom starting loadouts (donor and randz) so maybe she may be able to help us.
 

RichyM92

Well-Known Member
To do deployable bikes on overwatch grab your fn_selfactions.sqf and add this below the _canDo = (!r_drag_sqf and !r_player_unconscious and !_onLader);
Code:
if((speed player <= 1) && cursorTarget isKindOf "Old_bike_TK_CIV_EP1" && _canDo) then {
if (s_player_deploybike2 < 0) then {
        s_player_deploybike2 = player addaction[("<t color=""#007ab7"">" + ("Re-Pack Bike") +"</t>"),"spawnbike\bike2.sqf","",5,false,true,"", ""];
    };
} else {
    player removeAction s_player_deploybike2;
    s_player_deploybike2 = -1;
};
 
if((speed player <= 1) && _hasToolbox && _canDo) then {
    if (s_player_deploybike < 0) then {
        s_player_deploybike = player addaction[("<t color=""#007ab7"">" + ("Deploy Bike (will loose Toolbox)") +"</t>"),"spawnbike\bike.sqf","",5,false,true,"", ""];
    };
} else {
    player removeAction s_player_deploybike;
    s_player_deploybike = -1;
};
make sure to make a spawnbike folder inside the mission pbo and make a bike.sqf and a bike2.sqf here is the links to what you need to put in the .sqf's, as well as change the call in compiles for the fn_selfActions.sqf

bike.sqf
http://pastebin.com/1cacH7Nh

bike2.sqf
http://pastebin.com/fvL0Ty4M

Pack it up and test it out, you need a toolbox to build the bike though.

Worked a treat! awesome.

how would i go about have the option to update the bicycle to motorbike using engine parts?
and adding the gyrocopter by having rotar + engine
 

Wxlls

New Member
I get it all except this bit 'as well as change the call in compiles for the fn_selfActions.sqf' Can someone explain?
 
I put the script according to above putting right underneath self blood bag script in fn_selfAction file, but just kills my character whenever I ride onto the bike....
 
Top