Jump to content

Scoo

Member
  • Posts

    32
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Scoo got a reaction from Korwiin in Earplugs for vehicles...   
    The basic script for earplugs i'm using doesn't require an "addaction", if you want to give a try:
     
    You only need earplugs.sqf (root of your mpmission folder):
    if(isNil "EarPlugsOn") then {EarPlugsOn = true;} else {EarPlugsOn = !EarPlugsOn}; ToggleEarPlugs = { if (soundVolume != 1) then { 1 fadeSound 1; cutText ['Ear plugs taken off', 'PLAIN']; } else { 1 fadeSound 0.2; cutText ['Ear plugs put on', 'PLAIN']; }; }; if(EarPlugsOn) then { Press_F3 = (findDisplay 46) displayAddEventHandler ["KeyDown","if ((_this select 1) == 61) then {call ToggleEarPlugs;};"]; }; if(!EarPlugsOn) then { (findDisplay 46) displayRemoveEventHandler ["KeyDown", Press_F3]; }; and initplayerlocal.sqf, in your mpsission root aswell:
    while {true} do { waitUntil {alive vehicle player}; Sleep 10; [] execVM "earplugs.sqf"; waitUntil {!alive player}; [] execVM "earplugs.sqf"; }; then don't forget to add filters to scripts.txt in your battleye folder:
     
    (add this at the end of line 53: displayAddEventHandler)
    !"Press_F3 = (findDisplay 46) displayAddEventHandler [\"KeyDown\",\"if ((_this select 1) == 61) then {call T" (add this at the end of line 59: displayRemoveEventHandler)
    !"(findDisplay 46) displayRemoveEventHandler [\"KeyDown\", Press_F3];"
  2. Like
    Scoo got a reaction from Caveman1 in Earplugs for vehicles...   
    The basic script for earplugs i'm using doesn't require an "addaction", if you want to give a try:
     
    You only need earplugs.sqf (root of your mpmission folder):
    if(isNil "EarPlugsOn") then {EarPlugsOn = true;} else {EarPlugsOn = !EarPlugsOn}; ToggleEarPlugs = { if (soundVolume != 1) then { 1 fadeSound 1; cutText ['Ear plugs taken off', 'PLAIN']; } else { 1 fadeSound 0.2; cutText ['Ear plugs put on', 'PLAIN']; }; }; if(EarPlugsOn) then { Press_F3 = (findDisplay 46) displayAddEventHandler ["KeyDown","if ((_this select 1) == 61) then {call ToggleEarPlugs;};"]; }; if(!EarPlugsOn) then { (findDisplay 46) displayRemoveEventHandler ["KeyDown", Press_F3]; }; and initplayerlocal.sqf, in your mpsission root aswell:
    while {true} do { waitUntil {alive vehicle player}; Sleep 10; [] execVM "earplugs.sqf"; waitUntil {!alive player}; [] execVM "earplugs.sqf"; }; then don't forget to add filters to scripts.txt in your battleye folder:
     
    (add this at the end of line 53: displayAddEventHandler)
    !"Press_F3 = (findDisplay 46) displayAddEventHandler [\"KeyDown\",\"if ((_this select 1) == 61) then {call T" (add this at the end of line 59: displayRemoveEventHandler)
    !"(findDisplay 46) displayRemoveEventHandler [\"KeyDown\", Press_F3];"
  3. Like
    Scoo got a reaction from clarkycal in Custom Loadouts for Admins and Regular Players   
    You have to add the right filter, here line 25 has to be changed in scripts.txt.
    Quite easy if you know what to do.
     

  4. Like
    Scoo got a reaction from second_coming in Earplugs for vehicles...   
    The basic script for earplugs i'm using doesn't require an "addaction", if you want to give a try:
     
    You only need earplugs.sqf (root of your mpmission folder):
    if(isNil "EarPlugsOn") then {EarPlugsOn = true;} else {EarPlugsOn = !EarPlugsOn}; ToggleEarPlugs = { if (soundVolume != 1) then { 1 fadeSound 1; cutText ['Ear plugs taken off', 'PLAIN']; } else { 1 fadeSound 0.2; cutText ['Ear plugs put on', 'PLAIN']; }; }; if(EarPlugsOn) then { Press_F3 = (findDisplay 46) displayAddEventHandler ["KeyDown","if ((_this select 1) == 61) then {call ToggleEarPlugs;};"]; }; if(!EarPlugsOn) then { (findDisplay 46) displayRemoveEventHandler ["KeyDown", Press_F3]; }; and initplayerlocal.sqf, in your mpsission root aswell:
    while {true} do { waitUntil {alive vehicle player}; Sleep 10; [] execVM "earplugs.sqf"; waitUntil {!alive player}; [] execVM "earplugs.sqf"; }; then don't forget to add filters to scripts.txt in your battleye folder:
     
    (add this at the end of line 53: displayAddEventHandler)
    !"Press_F3 = (findDisplay 46) displayAddEventHandler [\"KeyDown\",\"if ((_this select 1) == 61) then {call T" (add this at the end of line 59: displayRemoveEventHandler)
    !"(findDisplay 46) displayRemoveEventHandler [\"KeyDown\", Press_F3];"
  5. Like
    Scoo got a reaction from second_coming in Custom Loadouts for Admins and Regular Players   
    Right under
    waitUntil {_player != player}; I added
    waitUntil {!alive player}; player removeEventHandler ["Respawn", 0]; Not sure this is 100% correct but it should prevent loadout from spawning multiple times.
  6. Like
    Scoo got a reaction from phenomax in Earplugs for vehicles...   
    I had this problem with another script, (alive vehicle player) seems to trigger when player is still in loading.
    Try to change the "Sleep 8" to a bigger number, this could help...
     
     
     
    Sure you can, this isnt really mine. All is based on Angrygargamel's idea and I just made  this little piece of code in 5min after browsing bohemia's wiki and some example scripts aswell, nothing really brilliant.
  7. Like
    Scoo got a reaction from computermancer in Earplugs for vehicles...   
    I had this problem with another script, (alive vehicle player) seems to trigger when player is still in loading.
    Try to change the "Sleep 8" to a bigger number, this could help...
     
     
     
    Sure you can, this isnt really mine. All is based on Angrygargamel's idea and I just made  this little piece of code in 5min after browsing bohemia's wiki and some example scripts aswell, nothing really brilliant.
  8. Like
    Scoo got a reaction from SideShowFreak in Earplugs for vehicles...   
    I had this problem with another script, (alive vehicle player) seems to trigger when player is still in loading.
    Try to change the "Sleep 8" to a bigger number, this could help...
     
     
     
    Sure you can, this isnt really mine. All is based on Angrygargamel's idea and I just made  this little piece of code in 5min after browsing bohemia's wiki and some example scripts aswell, nothing really brilliant.
  9. Like
    Scoo got a reaction from computermancer in Earplugs for vehicles...   
    Heya, i got something working.
    First you have to create a new file in your mpmission root folder and name it initplayerlocal.sqf.
    while {true} do { waitUntil {alive vehicle player}; Sleep 8; [] execVM "custom\earplugs.sqf"; waitUntil {!alive player}; [] execVM "custom\earplugs.sqf"; }; then create earplugs.sqf in a custom folder or wherever you like:
    if(isNil "EarPlugsOn") then {EarPlugsOn = true;} else {EarPlugsOn = !EarPlugsOn}; ToggleEarPlugs = { if (soundVolume != 1) then { 1 fadeSound 1; cutText ['Ear plugs taken off', 'PLAIN']; } else { 1 fadeSound 0.2; cutText ['Ear plugs put on', 'PLAIN']; }; }; if(EarPlugsOn) then { Press_F3 = (findDisplay 46) displayAddEventHandler ["KeyDown","if ((_this select 1) == 61) then {call ToggleEarPlugs;};"]; }; if(!EarPlugsOn) then { (findDisplay 46) displayRemoveEventHandler ["KeyDown", Press_F3]; }; However there is a chance you have to set up battleye filters to get it to work.
  10. Like
    Scoo got a reaction from Ree in Earplugs for vehicles...   
    nope initplayerlocal.sqf is executed when any player joins, you dont have to call it.
  11. Like
    Scoo got a reaction from phenomax in Earplugs for vehicles...   
    nope initplayerlocal.sqf is executed when any player joins, you dont have to call it.
  12. Like
    Scoo got a reaction from teamcrisiz in Earplugs for vehicles...   
    Heya, i got something working.
    First you have to create a new file in your mpmission root folder and name it initplayerlocal.sqf.
    while {true} do { waitUntil {alive vehicle player}; Sleep 8; [] execVM "custom\earplugs.sqf"; waitUntil {!alive player}; [] execVM "custom\earplugs.sqf"; }; then create earplugs.sqf in a custom folder or wherever you like:
    if(isNil "EarPlugsOn") then {EarPlugsOn = true;} else {EarPlugsOn = !EarPlugsOn}; ToggleEarPlugs = { if (soundVolume != 1) then { 1 fadeSound 1; cutText ['Ear plugs taken off', 'PLAIN']; } else { 1 fadeSound 0.2; cutText ['Ear plugs put on', 'PLAIN']; }; }; if(EarPlugsOn) then { Press_F3 = (findDisplay 46) displayAddEventHandler ["KeyDown","if ((_this select 1) == 61) then {call ToggleEarPlugs;};"]; }; if(!EarPlugsOn) then { (findDisplay 46) displayRemoveEventHandler ["KeyDown", Press_F3]; }; However there is a chance you have to set up battleye filters to get it to work.
  13. Like
    Scoo reacted to OtterNas3 in [RELEASE] Vehicle Key Changer - For making Masterkey - V 1.4 (Updated 06/15/2014)   
    Just finished it and thought someone could like it...
    You have many, many (many, ...) Vehicles? You have many, many (many, ...) different Keys? Already need to attach a list with Key = Vehicle to your Monitor to keep track of em? Need 30 minutes to start driving because you dont have such a list? Frustrated? ALL OVER!
     
    This little script allows you and the Players on your Server to copy Vehicles, that you got the Key for, to another Key that's in your Inventory!
     
    Example:
    Car 1: Red Skoda - Red Key (1234)
    Car 2: Green Skoda - Green Key (4321)
     
    You need a Keymakers Kit!
    Put both keys in your Inventory, look at the Car 1 and select "Change Vehicle Key" from the action menu.
     
    You get a list with all Keys in your Inventory, to select from a menu. In this case the list would just be one: Green Key (4321)
    Not in the list is the Key for Car 1, so no Red Key (1234)
     
    Select the new Key you want to put the car on and: voila!
     
    You can throw away the unneeded Red Key (1234)
    The Old vehicle Key gets added to your Backpack
    Car 1 & Car 2 are both now on the Green Key (4321)
     
    You can allow players to "Claim" Vehicles that are dynamic spawned on the Map and does not yet need a Key.
    This is a option you can turn On/Off!
    You can set a price for claiming vehicles also.
     
    THIS DOES NOT HOWEVER INCLUDE MISSIONVEHICLES THAT ARE NOT SPAWNED CORRECTLY!
    IF YOU WANT TO BE ABLE TO CLAIM MISSIONVEHICLES, TELL THE MISSION DEVELOPER TO SETUP HIS SPAWNCODE FOR VEHICLES TO A CORRECT WAY!
     
    Changelog 1.4
    I changed some functions and implemented some small fixes mentioned by other users in this Thread.
    Specially for just bought vehicles and the "get not saved after driving" thing.
    This should also fix the duping for some of you, i never had it yet and cant reproduce. just made the call a bit different now.
     
     
    If it doesnt work as it should, gimme a shout.
     
    And for people that think this Mod is a total mess. Dont use it?
    It works on my Server for a loooooooooooooong time now without any errors!
     
     
     
    Demo Video
    http://www.youtube.com/watch?v=bEUmLrje_5o
     
     
    Like?
     
    DOWNLOAD:
    https://www.dropbox.com/s/mq0dvpzawtwmam8/VehicleKeyChanger_v1.4.zip
     
     Install Instructions:
    1. Download and unzip VehicleKeyChanger_v1.4.zip
    2. unpbo MPMissions\YOURMISSIONNAME.pbo
    3. copy the custom folder from the unziped VehicleKeyChanger_v1.4.zip to MPMissions\YOURMISSIONNAME\
    4. open MPMissions\YOURMISSIONNAME\init.sqf
     
    Find this block:
    if (!isDedicated) then { 0 fadeSound 0; waitUntil {!isNil "dayz_loadScreenMsg"}; dayz_loadScreenMsg = (localize "STR_AUTHENTICATING"); _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; }; And insert this line above the closing bracket };
    _nil = [] execVM "custom\VehicleKeyChanger\VehicleKeyChanger_init.sqf"; 5.
    Configuration:
    Edit custom\VehicleKeyChanger\VehicleKeyChanger_init.sqf
     
    Edit this block to your likings!

    ///////////////////////////////////////////////// ///////////////////////////////////////////////// // Edit these settings to fit your needs/likes // ///////////////////////////////////////////////// ///////////////////////////////////////////////// /// Claim Vehicles that does not yet need Key /// ///////// 0 = Not allowed | 1 = Allowed ///////// vkc_claiming = 0; ///////////////////////////////////////////////// //////// Claim Vehicles costs this Item ///////// /// Any Item can be used here, some examples: /// //// ItemTinBar, ItemSilverBar, ItemGoldBar, //// ////// ItemSilverBar10oz, ItemGoldBar10oz, ////// ///// ItemBriefcase20oz, ItemBriefcase100oz ///// //////// set to "0" to disable the costs //////// vkc_claimingPrice = "ItemGoldBar10oz"; ///////////////////////////////////////////////// ////////// Change Key costs this Item /////////// ////////////// see above examples /////////////// //////// set to "0" to disable the costs //////// vkc_Price = "ItemSilverBar"; ///////////////////////////////////////////////// /////// Need KeyKit to use this function //////// ////////// 0 = Not needed | 1 = Needed ////////// vkc_needKeykit = 1; ///////////////////////////////////////////////// ///////////////////////////////////////////////// /////////////// DONT EDIT BELOW ! /////////////// ///////////////////////////////////////////////// 5. repbo MPMissions\YOURMISSIONNAME\
    - upload it to your server -
     
    6. unpbo @DayZ_Epoch_Server\addons\dayz_server.pbo
     
    7 copy server_updateObject.sqf from your unziped VehicleKeyChanger_v1.4.zip to @DayZ_Epoch_Server\addons\dayz_server\compile\  and overwrite the existing one. (This just adds a function for this mod nothing else changed)
    If you already have a custom server_updateObjects.sqf you need to compare my file with yours and make the changes yourself!
     
    8. repbo @DayZ_Epoch_Server\addons\dayz_server\
    - upload it to your server -
     
    9 copy this file to your Servers BattlEye filters folder:
    publicvariableval.txt
     
    FYI: INFISTAR AdminCheat, ummm sorry meant AntiCheat, users!
    Cause he uses his own BE filter files should not copy paste this file over your existing one, else you will get kicked for all the cool nice admin functions that comes with your Infistar! You need to do the change yourself if you get kicked for anything regarding this script.
    I dont had and will not have a look at Infistar's BE files to sort things out!
     
    10. Restart your server
    11. Enjoy it and cleanup your vaults!
     
    12. DONT LOOSE YOUR MASTERKEY! :rolleyes:
     
     
    -- Additional Information ---
     
    For InfiStar AdminCheat (ummm sorry meant AntiCheat...) users:

     
     
    Have fun with it!
     
    - If you like it - Like it - So I can count Downloads - I like that
     
    #####################################
    #                      Support my work                      #
    #                                    &                                #
    #                                Donate                           #
    #####################################

×
×
  • Create New...