Anybody has some interesting scripts? :-)

Anybody has some interesting scripts? :-)

« posted: Sep 05, 2014, 04:27 AM »
I am planing to add some additional feature to my server and make it more diverse, so could anybody recommend some useful and intriguing scripts to me? Thanks! ;D ;D

Re: Anybody has some interesting scripts? :-)

« Reply #1 posted: Oct 03, 2014, 07:08 AM »
well, add flashlights to npcs during night, that made the missions a lot more immersive,
and if you know anyone who are really good at scripting or if you are that, then you could get a script to open all car doors
theese guys have made a pretty good start

https://www.youtube.com/watch?v=ENPsaOT5IlYhttps://www.youtube.com/watch?v=ENPsaOT5IlY

Re: Anybody has some interesting scripts? :-)

« Reply #2 posted: Oct 31, 2014, 03:38 AM »
Added jsrs, blastcore, cba and bloodmist. Trying to get stakedown running. Merged epix load out menus (renamed) going to give load outs for in game cash, hopefully cash duping gets fixed. Got atms but now I regret it cause there's no chance off losing the cash. Now, after I get stakedown working I'm going to add bank robbery (damn script only messages blufor fucking life).

Re: Anybody has some interesting scripts? :-)

« Reply #3 posted: Nov 02, 2014, 05:31 AM »
可不可以加入virtual arsenal 让玩家不用在忙于搜集武器 ,很多人都是在买武器和找武器的途中被干死的
  • Offline AgentRev
  • Developer
  • Veteran
  • ******
  • Posts: 2600

Re: Anybody has some interesting scripts? :-)

« Reply #4 posted: Nov 02, 2014, 12:36 PM »
可不可以加入virtual arsenal 让玩家不用在忙于搜集武器 ,很多人都是在买武器和找武器的途中被干死的

The whole point of the game is to collect captured weapons... If you can just select whatever weapons you want, then A3Wasteland loses all its fun.

Re: Anybody has some interesting scripts? :-)

« Reply #5 posted: Nov 05, 2014, 03:16 AM »
some coward 's fun is to  hide nearby the vehicle and gun store  to end u life  it is unfair  give everybody access to all weapon let them fight face to face with all their combat skill  this is what we expect dude
  • Offline AgentRev
  • Developer
  • Veteran
  • ******
  • Posts: 2600

Re: Anybody has some interesting scripts? :-)

« Reply #6 posted: Nov 05, 2014, 03:18 AM »
No.

Re: Anybody has some interesting scripts? :-)

« Reply #7 posted: Nov 09, 2014, 01:11 AM »
Agreed with Agent :)
My scripts:
* Lock/unlock script for vehicles
* Repair military / cargo tower
* Moveable autoturrets
* Zeus side
* Custom gear

Re: Anybody has some interesting scripts? :-)

« Reply #8 posted: Nov 09, 2014, 04:35 AM »
Agreed with Agent :)
My scripts:
* Lock/unlock script for vehicles
* Repair military / cargo tower
* Moveable autoturrets
* Zeus side

Where can i find Lock/unlock script for vehicles?
Im running Altis with revs latest pbo no extdb

Re: Anybody has some interesting scripts? :-)

« Reply #9 posted: Nov 09, 2014, 10:58 AM »
Oh, yeah. And I forgot about custom gear :)

Here's the script. But you will have to add saving some variables to vehicles.

https://gist.github.com/IvanMMM/615a01088137c7c2b698

Patches if you need:
https://www.dropbox.com/s/zxvkus32ilesf9y/globalCompile.patch?dl=0
https://www.dropbox.com/s/onpk0bqq5rajmdv/playerActions.patch?dl=0

Re: Anybody has some interesting scripts? :-)

« Reply #10 posted: Nov 09, 2014, 03:51 PM »
Oh, yeah. And I forgot about custom gear :)

Here's the script. But you will have to add saving some variables to vehicles.

https://gist.github.com/IvanMMM/615a01088137c7c2b698

Patches if you need:
https://www.dropbox.com/s/zxvkus32ilesf9y/globalCompile.patch?dl=0
https://www.dropbox.com/s/onpk0bqq5rajmdv/playerActions.patch?dl=0
.

I'n not sure what this :

"And you have to add saving this variables to vehicle saving sqf:
R3F_Side, vehicleLocked, ownerUID.
Ask if you need help;"

Can you provide an example please.

Thanks,

Mike

Re: Anybody has some interesting scripts? :-)

« Reply #11 posted: Nov 09, 2014, 04:05 PM »
Sure.

Saving File oSave.sqf
To add saving "R3F_Side" you should add this line to vehicle saving part of the script:

   _variables pushBack ["R3F_Side", _veh getVariable ["R3F_Side",""]];

You should do other 2 variables by yourself :)

Loading File vLoad.sqf
Variables applied by this method (" _variables pushBack") are autorestored while loading vehicle from database. But only variables are restored, no actions preformed. So, you have to add action if game recognizes the value of locked state as "LOCKED". Add this to {} forEach _variables loop:

            {
               _var = _x select 0;
               _value = _x select 1;
               
               //Load locked state
               switch (_var) do
               {   
                  case "vehicleLocked": {_veh lock _value};
                  case "R3F_Side": { _value = _value call _strToSide };
               };
               _veh setVariable [_var, _value, true]
               
            } forEach _variables;


Re: Anybody has some interesting scripts? :-)

« Reply #12 posted: Nov 09, 2014, 04:39 PM »
Sure.

Saving File oSave.sqf
To add saving "R3F_Side" you should add this line to vehicle saving part of the script:

   _variables pushBack ["R3F_Side", _veh getVariable ["R3F_Side",""]];

You should do other 2 variables by yourself :)

Loading File vLoad.sqf
Variables applied by this method (" _variables pushBack") are autorestored while loading vehicle from database. But only variables are restored, no actions preformed. So, you have to add action if game recognizes the value of locked state as "LOCKED". Add this to {} forEach _variables loop:

            {
               _var = _x select 0;
               _value = _x select 1;
               
               //Load locked state
               switch (_var) do
               {   
                  case "vehicleLocked": {_veh lock _value};
                  case "R3F_Side": { _value = _value call _strToSide };
               };
               _veh setVariable [_var, _value, true]
               
            } forEach _variables;

Thanks I also get the following error client side:
Error in expression <[cursorTarget] call canVehicleLock>

any ideas?

Thanks again.

Mike

Re: Anybody has some interesting scripts? :-)

« Reply #13 posted: Nov 09, 2014, 06:52 PM »
Yeah, forgot some.

canVehicleLock = "client\functions\canVehicleLock.sqf" call mf_compile;
canVehicleUnlock = "client\functions\canVehicleUnlock.sqf" call mf_compile;

Add this to clientCompile.sqf

Re: Anybody has some interesting scripts? :-)

« Reply #14 posted: Nov 10, 2014, 08:41 AM »
Sure.

Saving File oSave.sqf
To add saving "R3F_Side" you should add this line to vehicle saving part of the script:

   _variables pushBack ["R3F_Side", _veh getVariable ["R3F_Side",""]];

You should do other 2 variables by yourself :)

Loading File vLoad.sqf
Variables applied by this method (" _variables pushBack") are autorestored while loading vehicle from database. But only variables are restored, no actions preformed. So, you have to add action if game recognizes the value of locked state as "LOCKED". Add this to {} forEach _variables loop:

            {
               _var = _x select 0;
               _value = _x select 1;
               
               //Load locked state
               switch (_var) do
               {   
                  case "vehicleLocked": {_veh lock _value};
                  case "R3F_Side": { _value = _value call _strToSide };
               };
               _veh setVariable [_var, _value, true]
               
            } forEach _variables;

Hey bolt sorry to bug ya but i have them all in except the osave.sqf part. i don't understand how there to be put in. Can ya possible be willing to show me how all the codes are supposed to be written?

Im willing to send you a pay pal donation if you can help me get this to work.