Jump to content

Fragile

Member
  • Posts

    3
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Fragile reacted to vbawol in Get rid of it   
    I will be adding a ammo management option to help with repacking mags. I will also add a config var for this so it will simply act like it did before.
  2. Like
    Fragile reacted to Suppe in [Release] HS Blackmarket 1.6 | 'New' Trader System | Special Trader | Blackmarket   
    /*
        HS Blackmarket
        by Halv & Suppe
    */

    The HS Blackmarket is a 'new' Trader-system for A3 Epoch, it was created in collaboration with Halv, Halv wrote the main part of the script, he is the true genius.

    Features:
    - Trader with Custom Dialog (Menu)
    - Trader with unlimited supply
    - You control how many Trader will spawn
    - Trader will spawn random over the Map
    - Trader will spawn in 5 different "Camps"
    - With persistent Vehicles or not persistent Vehicles
    - Easily edit/add Prices, Items, Vehicles, Weapons
    - Easily Blacklist Items, Vehicles, Weapons
    - Easily control about Vehicleammo
    - Vehicleammo count over restart (10 bullets left for the restart = 10 bullets left after restart)
    - Static and Random Traders
    - Work with stock Epoch AH and infistar
    - Work without emod !
    - Work on every Map
     
    Pictures:



     
    Download:
    https://github.com/GBR-Suppe/a3_epoch_HSBlackmarket
     
     
    Install:
    - Copy the "trader" Folder and the Stringtable.xml in your epoch.Mission

    - Add to your init:
      [] execVM "trader\init.sqf"; [] execVM "trader\resetvehicleammo.sqf";   [] execVM "trader\HALV_takegive_crypto_init.sqf";  - Add to your description.ext  ( on the very top and if you use Halv's spawn script as well, you need only 1x the Halv_defines.hpp)
      #include "trader\Halv_defines.hpp" #include "trader\tradedialog.hpp"   #include "trader\HSPricing.hpp" - (optional) Open epoch.Mission/trader/init.sqf to configurate the HS Blackmarket
     
    - (optional) Open epoch.Mission/trader/settings.sqf and resetvehicleammo.sqf to configurate the Vehicleammo

    - (optional) Open epoch.Mission/trader/HSPricing.hpp to configurate prices, or to add Items, Vehicles, Weapons and so on

    - (optional) Remove 1 Epoch Trader for every Blackmarket Trader you added (remove Epoch Trader: \Arma 3\@epochhive\epochconfig.hpp  ,search for NPCSlotsLimit)
     
    - (optional) To get all messages of the traders (like the vehicleworldlimit check) you need:
     
    Edit your BE Filter:



     
    For infistar Server:



     
     
      for Halv                              for Suppe
     
    Copyright © 2015 Halvhjearne & Suppe

    This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your    option) any later version.

    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

    You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
  3. Like
    Fragile reacted to FragZ in [TUTORIAL] Harvestable hemp, smoking weed, pot farms.   
    Hello guys! This is my first complete tutorial.

    Today I will show you how to install the Hemp farms scripts and the smoking script.

    First, you will need to install maca's right clickable system, which can be found here:   http://www.epochservers.com/viewtopic.php?f=14&t=13&sid=4d68d5283b8d5635f8323b5ed02979bf

    Then, open up extra_rc.hpp and copy this code in it:
     
    class ExtraRc { class ItemKnife { class farmhemp { text = "Harvest the weed"; script = "execVM 'scripts\hemp.sqf'"; }; }; class ItemKiloHemp { class smokeweed { text = "Smoke the shit"; script = "execVM 'scripts\smokeshit.sqf'"; }; }; }; Edit the text and paths to fit your needs.


    Now create a new text document and paste this in it:

     
    /* put together for DayZ Epoch Credits to Shogun338 from Insurrection gaming modified for separate "gather weed" script */ private ["_gearmenu","_playerPos","_nearWeed","_weed","_objectID","_objectUID"]; _playerPos = getPosATL player; _hempqty = {_x == "ItemKiloHemp"} count magazines player; _nearWeed = count nearestObjects [_playerPos, ["fiberplant"], 4] > 0; _weed = nearestObject [player, "fiberplant"]; if !(_nearWeed) exitWith { cutText [format["You need to be near the weed plants in order to gather."], "PLAIN DOWN"]; }; if (_hempqty > 2) exitWith { cutText [format["WARNING: %1, You have maximum amount of weed in your inventory! You could get arrested by the police ;)", name player], "PLAIN DOWN"]; }; if (dayz_combat == 1) then { cutText [format["You are in Combat and Cannot Gather the Weed."], "PLAIN DOWN"]; } else { disableSerialization; _gearmenu = FindDisplay 106; _gearmenu CloseDisplay 106; player playActionNow "Medic"; r_interrupt = false; sleep 6; _objectID = _weed getVariable["ObjectID","0"]; _objectUID = _weed getVariable["ObjectUID","0"]; deleteVehicle _weed; [_objectID,_objectUID] call server_deleteObj; _weed setDamage 1; player addMagazine "ItemKiloHemp"; sleep 2; cutText [format["You've Gathered Some Weed! Smoke that shit or sell it at Black market dealer!!"], "PLAIN DOWN"]; }; Save it as hemp.sqf and put it in your scritps folder in the mission pbo.


    Next up, create a new text document and paste this in it (NOTE ALL CREDITS TO INFISTAR FROM DAYZANTIHACK.COM):
     
    /* by: http://infiSTAR.de Credits to infistar for the actual script Edited by FragZ */ //Add this part after *while {true} do {* to add a smoke effect /*Flare = "SmokeShellGreen" createVehicle position player;         if (vehicle player != player) then { Flare attachTo [vehicle player,[0,0,0.]];}         else {Flare attachTo [player,[0,0,0.]];} */ [] spawn { hint "You took drugs YOLOLOLO"; player removeMagazine 'ItemKiloHemp'; Remove_Drug_effects = { { ppEffectDestroy _x; } forEach (_this select 0); ppEffectDestroy nonapsi_ef; ppEffectDestroy wetdist1; ppEffectDestroy ppe; ppEffectDestroy ppe2; ppEffectDestroy ppe3; setaperture 0; "dynamicBlur" ppEffectAdjust [0]; "dynamicBlur" ppEffectCommit 16; "colorCorrections" ppEffectAdjust [1, 1, 0, [1, 1, 1, 0.0], [1, 1, 1, 1], [1, 1, 1, 0.0]]; "colorCorrections" ppEffectCommit 0; }; _time = time; _effects = []; while {true} do { nonapsi_ef = ppEffectCreate ["colorCorrections", 1555]; _effects = _effects + [nonapsi_ef]; nonapsi_ef ppEffectEnable true; nonapsi_ef ppEffectAdjust [1.0, 1.0, -0.03, [0.0, 0.0, 0.0, 0.0], [3.0, 5.0, 9.0, 5.0],[0.4,0.0,0.0, 0.7]]; nonapsi_ef ppEffectCommit 1; sleep random(1); wetdist1 = ppEffectCreate ["wetDistortion", 2006]; _effects = _effects + [wetdist1]; wetdist1 ppEffectAdjust [0, 8, 0.8,8,8, 0.2, 1, 0, 0, 0.08, 0.08, 0, 0, 0, 0.77]; wetdist1 ppEffectEnable true; wetdist1 ppEffectCommit 0; ppe = ppEffectCreate ["colorCorrections", 1555]; _effects = _effects + [ppe]; ppe ppEffectAdjust [1, 1, 0, [1.5,6,2.5,0.5], [5,3.5,5,-0.5], [-3,5,-5,-0.5]]; ppe ppEffectCommit 1; ppe ppEffectEnable true; ppe2 = ppEffectCreate ["chromAberration", 1555]; _effects = _effects + [ppe2]; ppe2 ppEffectAdjust [0.01,0.01,true]; ppe2 ppEffectCommit 1; ppe2 ppEffectEnable true; ppe3 = ppEffectCreate ["radialBlur", 1555]; _effects = _effects + [ppe3]; ppe3 ppEffectEnable true; ppe3 ppEffectAdjust [0.02,0.02,0.15,0.15]; ppe3 ppEffectCommit 1; sleep random(1); wetdist1 = ppEffectCreate ["wetDistortion", 2006]; _effects = _effects + [wetdist1]; wetdist1 ppEffectAdjust [1, 1.16, 0.32, 2.56, 0.8, 0.64, 2.64, 0, 0, 1.08, 0.08, 0, 0, 0, 1.77]; wetdist1 ppEffectEnable true; wetdist1 ppEffectCommit 0; sleep random(1); nonapsi_ef = ppEffectCreate ["colorCorrections", 1555]; _effects = _effects + [nonapsi_ef]; nonapsi_ef ppEffectEnable true; nonapsi_ef ppEffectAdjust [1.0, 1.0, -0.02, [9.5, 1.5, 2.5, 0.2], [2.0, 7.0, 6.0, 2.0],[0.4,0.0,0.0, 0.7]]; nonapsi_ef ppEffectCommit 1; sleep random(1); if (_time + 60 < time) exitWith {[_effects] call Remove_Drug_effects;}; }; }; Save it as smokeshit.sqf and put it in the scripts folder of your mission.pbo
     
    NOTE: THIS SCRIPT LOOKS LIKE  A LSD TRIP. Go to the OPTIONAL part of the tutorial for a mellow version.
     
     
    Finally, open the arma 2 oa map editor and place down whatever buildings you want the weed to be into. Place any type of bushes or barrels or rocks in the editor where you want the weed to be (in my example I used "MAP_b_betulaHumilis". Save the mission.sqf and go to your DOCUMENTS/Arma 2 Other Profiles/Yourprofilename/mission.sqf and open it.



    Change every  MAP_b_betulaHumilis (or any object you placed)
    _vehicle_5 = objNull; if (true) then { _this = createVehicle ["MAP_b_betulaHumilis", [4048.9565, 7805.9746], [], 0, "CAN_COLLIDE"]; _vehicle_5 = _this; _this setPos [4048.9565, 7805.9746]; }; to
     
    _vehicle_5 = objNull; if (true) then { _this = createVehicle ["fiberplant", [4050.6616, 7809.3203], [], 0, "CAN_COLLIDE"]; _vehicle_5 = _this; _this setPos [4050.6616, 7809.3203]; }; Do the usual changes for a building file and save it as weedfarm.sqf  then go to your server.pbo and put it in buildings folder.
     
    You can also use this script made by HALV to spawn random fields each restart.
    http://pastebin.com/juMsuJ1r


    Finally, call it in the init/system_functions.sqf at the bottom just like so:
     
    execVM "\z\addons\dayz_server\buildings\weedfarm.sqf"; OPTIONNAL:

    -If you want people to be able to sell it you can add ItemKiloHemp in the traders DATA from your sql table so you can make them be sold.
    Don't forgot to add it to Traders items as well
    - Add this right above while {true} do in smokeshit.sqf  :)
    player playMoveNow "ActsPercMstpSnonWpstDnon_sceneBardak01"; This will add an animation to the player.
    -For a little bit less exagerated smokeshit.sqf script, use this one made by ZeroK00L:
     
    /* by: ZeroK00L */ [] spawn { hint "You roll a fatty and smoke it! Damn! That shit is the chronic!"; player removeMagazine 'ItemKiloHemp'; Remove_Drug_effects = { { ppEffectDestroy _x; } forEach (_this select 0); ppEffectDestroy ppe2; ppEffectDestroy ppe3; setaperture 0; }; _time = time; _effects = []; player playMoveNow "ActsPercMstpSnonWpstDnon_sceneBardak01"; while {true} do { ppe2 = ppEffectCreate ["chromAberration", 1555]; _effects = _effects + [ppe2]; ppe2 ppEffectAdjust [random 0.25,random 0.25,true]; ppe2 ppEffectCommit 1; ppe2 ppEffectEnable true; ppe3 = ppEffectCreate ["radialBlur", 1555]; _effects = _effects + [ppe3]; ppe3 ppEffectEnable true; ppe3 ppEffectAdjust [random 0.02,random 0.02,0.15,0.15]; ppe3 ppEffectCommit 1; sleep random(1); if (_time + 60 < time) exitWith {[_effects] call Remove_Drug_effects;}; }; }; If you have any questions you can ask me.

    I DO NOT TAKE CREDITS FOR THE HARVESTING SCRIPT. Credits to original authors.
  4. Like
    Fragile reacted to vbawol in 0.3.3 bug? NV batteries now go to negative values   
    Got this fixed for the next update, will likely do a small client side update here in the next day or so to wrap up this fix and any others I can fix before then.
  5. Like
    Fragile reacted to computermancer in Earplugs Script   
    Hey guys, I updated the files on github with a working version.
     
    It doesn't have keypress option though, just auto-insert/remove.
     
    I should have time this week to get a highly-config version  B)
  6. Like
    Fragile reacted to computermancer in Earplugs Script   
    cmEARPLUGS SCRIPT ver 2.0
     
    B) WHAT IT DOES:
    Earplugs script for Arma 3 Epoch (EPAH safe)   - This script allows you to put in "earplugs". - Config.sqf will let you configure almost every possible aspect of the script. - You can now insert and remove the earplugs by pressing a key of your choice.  - Current available keys are : F4, F5, INSERT, NUMPADMULTIPLY, NUMPADDIVIDE - You can toggle the hotkey in case you use EPAH and wont be ablt to use hotkeys. - Auto-insert and remove earplugs when getting in and out of vehicles. - Inserting earplugs reduces volume down to about 25 percent. - Removing earplugs restores volume to 100 percent.   -Thanks to mgm on epochmod.com for helping with keypress config technique.  
    Here is a link to the github files.
    https://github.com/computermancer/cmEarplugs
     
    B) INSTRUCTIONS:
    1. Copy the cmEarplugs folder to your mission folder (altis.Epoch)
    2. If you have init.sqf, copy the code in this init.sqf to yours.
    2a. If you do not have an init.sqf, copy this one over to your mission folder.
    3. Copy onPlayerKilled.sqf and onPlayerRespawn.sqf to your mission folder.
    4. Config your personal settings in the config.sqf file in the cmEarplgus folder.
    5. Edit your battleye filters.

    Edit the following in your battleye filters.
     
      ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// scripts.txt (at the end of the line add the following) /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////                                         (BIS_fnc_)  First Line:  !"bis_fnc_initVehicle" !"BIS_fnc_setVehicleMass_fsm" !"BIS_fnc_arsenal_type"                         (displayAddEventHandler        )  Line 53 (54 on notepad++) :               !"EP_LOOP"  (displayAddEventHandler        )  Line 53 (54 on notepad++)                 !"cmKeyPress"  (              exec                             )  Line 22 (23 on notepad++) :               !"clock.sqf"  (    removeAllActions                 )   Line 31 (32 on notepad++) :              !"onplayerkilled.sqf"  (displayRemoveEventHandler)   Line 59 (60 on notepad++) :               !"cmKeyPress"  (removeAllEventHandlers)           Line 59 (60 on notepad++) :               !"cmKeyPress"   ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// PublicVariable.txt (at the end of the line add the following) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// First Line:                                            !"cmEarplugs_hotkeyDIKCodeNumber" First Line:                                            !"PLAYER_REJECT_NotReady1" ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// B) WHAT TO KNOW:   If you use Epoch Anti Hack, the script will work except for the keypress option. EPAH seems to disable keydown eventhandlers. But auto insert and menu inside vehicle work fine. If you disable EPAH, you can use the keypress toggle as well.
  7. Like
    Fragile reacted to Zupa in Notepad++ Script Checker   
    Nevermind i'll just stay with sublime 2 sqf  :) does the work, not waisting too much time on the plugin then i guess.
     
    It has a project structure to, 
     

  8. Like
    Fragile reacted to nightmare in new useful server start parameter   
    -loadMissionToMemory Server will load mission into memory on first client downloading it. Then it keeps it pre-processed pre-cached in memory for next clients, saving some server CPU cycles, -autoInit Automatically initialize mission just like first client does. Note: Server config file (server.cfg) must contain Persistent=1; , if it's 0 autoInit skips. -serverMod=<string> Loads the specified sub-folders for different server-side (not broadcasted to clients) mods. Separated by semi-colons. Absolute path and multiple stacked folders are possible. In Linux multiple folders arguments need the following separation syntax: -mod=mod1\;mod2\;mod3.
×
×
  • Create New...