Jump to content

Donnovan

Member
  • Posts

    840
  • Joined

  • Last visited

  • Days Won

    12

Posts posted by Donnovan

  1. NEW ON TAKELONG V1a:

    Bidirectional Humanity: Fixed bandit (or on the bandit way) players getting positive humanity from AI kill.

     

    INSTALATION: TAKELONG V1a

    Unzip this file into your mission folder: https://www.dropbox.com/s/g2lk585g0ewnetr/arma2_epoch_andre_convoy_takelong_v1a.7z?dl=0

    Look at init(example).sqf to see how to run Andre Convoy, and reproduce it in your init.sqf.
    No BE filters tweak needed.
     
     

    INFISTAR USERS:
    If your infiStar have this option:

    /*  EXPERIMENTAL CU FIX   */ _CUF = true; /* true or false */ /* *experimental* - will transfer serverside units (including mission AI) to clientside */

    You need to turn it off setting _CUF to false, or AI will not work.

     

    PS: Thanks to Tang0.

  2. theduke,

     

    To set the vehicles invulnerable until all crew is dead, use this setting:

    donn_aiCarVulnerable = false; //false or 0 is INVUNERABLE true or 1 is VULNERABLE

    Set it to true.

     

    Tang0,

     

    Its possible to spawn again and again, with no end and pick a random convoy, but require some code. Btw, with 45 minutes spawn interval, you can spawn just a few convoys in a 4 hours restart.

  3. CASCA ANDRE CONVOYS - TAKELONG V1:
    V1 ON 16 of August of 2015
     
    NEW ON TAKELONG V1:

     

    New Skill Settings:

    _generalSkill = 0.6; //All skills, except ain skill, for all AI
    _driverManAin = 0.8; //Ain of the driver, from 0 to 1
    _cargoMansAin = 0.5; //Ain of the cargo ocupants, from 0 to 1
    _turretMansAin = 0.3; //Ain ot the turret operators, from 0 to 1

     

    New Icon settings:

    _showMapIcons = true; //Show spawn, convoy and AI icons on map?
    _showMapIconsOnlyWhenNotInWar = true; //Hide convoy icons when they enter in war, so the fight is not spoted.
    _showCrewNumber = true; //Show crew number on the vehicle icon on map? (runner bombers don't count as vehicle crew)
     
    Special reward in coins (Zupa coins) or gold (normal Epoch):
    _useCoinsReward = false; //Special kill (main char kill or combo kill) reward in gold or coins? Use false to gold / true to coins.
    _coinsRewards = [650,4000,650]; //Special Reward Array: _xxxxxRewards = [kill reward,son of general kill reward,extra for each combo kill];
    _goldRewards = [["ItemSilverBar",0],["ItemGoldBar10oz",1],["ItemGoldBar",1]]; //Special Reward Array: _xxxxxRewards = [kill reward,son of general kill reward,extra for each combo kill];
     
    Combo kill is when you kill more 2 AI in the space of 15 seconds. The level of the combo increase if you keep killing in less than 15 seconds (Combo Level 1, Combo Level 2, Combo Leve 3, and so on).
    While the combo kill reward in coins goes direct to the player wallet, in gold, it goes in the AI dead body.
     
    Humanity Gain Settings:
    donn_humanityGainForKill = 65; //How much humnity to gain for each AI kill?
     
    //Bellow this value you is in the Bandit Way so donn_humanityGainForKill will subtract to your humanity
    //Above this value you is in the Hero Way so donn_humanityGainForKill will add to your humanity
    donn_humanityZeroScale = 2500;
     
    Other Settings:
    _donn_delete_body_time = 2400; //Time in seconds to delete a dead AI body
    donn_aiCarVulnerable = false; //false or 0 is INVUNERABLE true or 1 is VULNERABLE
  4. This configurable SQL code do that:

     

    1 - Find all the plots

    2 - Check all objects in the radius of each plot

    3 - Count if there is any up to date object in the plot radius (a vault opened recently, a vehicle used recently, a wall/floor constructed recently, etc...)

    4 - If there is no objects in the plot that have been used recently, the plot and its objects are considered dead

    5 - Delete the dead plots and all its ojects.

     

    OBS 1: To make the del happens, you need to uncomment the last line.

    OBS 2: A backup of the deleted objects is made in each run.

     

    TABLES CREATED ON THE PROCESS:

    PLOT_FUNCTIONAL

    PLOT_NOT_FUNCTIONAL

    PLOT_NOT_FUNCTIONAL_OBJECTS

    PLOT_NOT_FUNCTIONAL_BACKUP

     

    FUNCTIONS CREATED ON THE PROCESS:

    TwoPointsDistance

     

    NICE CONSIDERATIONS:

    This SQL in mainly for the ones who want to do base cleanup manually and have the automatic clean up and base mantain turned off.

    -- ----------------------------------
    -- KONFIG: PLOT RADIUS IN METERS ----
    -- ----------------------------------
    SET @plotRad = 60;
    
    -- ------------------------------------------
    -- KONFIG: MAXIMUM OLD ALLOWED IN DAYS ------
    -- ------------------------------------------
    SET @maxOld = 20;
    
    -- -------------------------------------------------------------------------------
    -- KONFIG: MINIMUM AMOUNT OF UP TO DATE OBJECTS TO CONSIDER THE PLOT ACTIVE ------
    -- -------------------------------------------------------------------------------
    SET @minObj = 1;
    
    -- -------------------------------------
    -- FUNCTION: DISTANCE OBJECT X PLOT ----
    -- -------------------------------------
    DROP FUNCTION IF EXISTS `TwoPointsDistance`;
    DELIMITER ;;
    CREATE FUNCTION `TwoPointsDistance`(`x1` DOUBLE,`y1` DOUBLE,`x2` DOUBLE,`y2` DOUBLE) RETURNS DOUBLE
    BEGIN
        DECLARE plotDistance DOUBLE;
        SET plotDistance = POWER(POWER(`x2`-`x1`,2)+POWER(`y2`-`y1`,2),1/2);
        RETURN plotDistance;
    END
    ;;
    DELIMITER ;
    
    -- ------------------
    -- SQL: QUERYES -----
    -- ------------------
    DROP TABLE IF EXISTS `PLOT_FUNCTIONAL`;
    
    CREATE TABLE `PLOT_FUNCTIONAL` AS
    	SELECT `PlotID`, SUM(1) AS `Qtd`
    	FROM (SELECT `ObjectID` AS `PlotID`, `Worldspace` AS `PlotWS` FROM `Object_DATA` WHERE `Classname` = 'Plastic_Pole_EP1_DZ') AS `Plots`, `Object_DATA`
    	WHERE
    		TwoPointsDistance(
    			SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(`Worldspace`,'[',-1),',',2),',',+1)*1,
                SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(`Worldspace`,'[',-1),',',2),',',-1)*1,
                SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(`PlotWS`,'[',-1),',',2),',',+1)*1,
    			SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(`PlotWS`,'[',-1),',',2),',',-1)*1
    		) < @plotRad
    		AND
    		`LastUpdated` > DATE_SUB(CURRENT_TIMESTAMP,INTERVAL @maxOld DAY)
    	GROUP BY `PlotID`
    ;
    
    DROP TABLE IF EXISTS `PLOT_NOT_FUNCTIONAL`;
    
    CREATE TABLE `PLOT_NOT_FUNCTIONAL` AS
    	SELECT `ObjectID` AS `PlotID`, `Worldspace` AS `PlotWS` FROM `Object_DATA` WHERE `Classname` = 'Plastic_Pole_EP1_DZ' AND `ObjectID` NOT IN (SELECT `PlotID` FROM `PLOT_FUNCTIONAL` WHERE `Qtd` >= @minObj);
    ;
    
    DROP TABLE IF EXISTS `PLOT_NOT_FUNCTIONAL_OBJECTS`;
    
    CREATE TABLE `PLOT_NOT_FUNCTIONAL_OBJECTS` AS
    	SELECT `Object_DATA`.*
    	FROM `PLOT_NOT_FUNCTIONAL`, `Object_DATA`
    	WHERE
    		TwoPointsDistance(
    			SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(`Worldspace`,'[',-1),',',2),',',+1)*1,
                SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(`Worldspace`,'[',-1),',',2),',',-1)*1,
                SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(`PlotWS`,'[',-1),',',2),',',+1)*1,
    			SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(`PlotWS`,'[',-1),',',2),',',-1)*1
    		) < @plotRad
    	ORDER BY `LastUpdated` DESC
    ;
    
    -- ------------------
    -- SHOW RESULTS -----
    -- ------------------
    SELECT * FROM `PLOT_NOT_FUNCTIONAL_OBJECTS`;
    
    -- ----------------------------
    -- MAKE BACKUP BEFORE DEL -----
    -- ----------------------------
    DROP TABLE IF EXISTS `PLOT_NOT_FUNCTIONAL_BACKUP`;
    CREATE TABLE `PLOT_NOT_FUNCTIONAL_BACKUP` AS SELECT * FROM `PLOT_NOT_FUNCTIONAL_OBJECTS`;
    
    -- --------------------------------------------
    -- DELETE OBJECTS ON NON FUNCTIONAL PLOTS -----
    -- --------------------------------------------
    -- DELETE FROM `Object_DATA` WHERE `ObjectID`IN (SELECT `ObjectID` FROM `PLOT_NOT_FUNCTIONAL_OBJECTS`);
    
  5. Caveman,

     

    Try to make it like that:

     

    execVM "andre_convoy\andre_convoy.sqf";

    if (!isDedicated) then {

        //Conduct map operations
        0 fadeSound 0;
        waitUntil {!isNil "dayz_loadScreenMsg"};
        dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
        
        //Run the player monitor
        _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
        _playerMonitor =     [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";

  6. So installed the missions and went into game and nothing. I went back and looked and also had someone else check my work and they could not see anything wrong. Tried it again and still nothing. took out your missions and put back the org ones and they work.  No errors in the RPT.  I do have 2.2.0,   going to bed will check in morning 

    Thug, people on my server are sayng there is no mission. I have saw some missions, but i believe they dont end properly so new missions dont come.

    Was you able to solve it? I'm using the versions from 07/JUL/2015 and will try the new version (16/JUL/2015) today.

  7. Very nice custom content.

     

    I'm having very low fps on the área. Without the Secret Airfield i have 100+ fps and with the Secret Air Field fps lower to 20-30.

     

    A lower in fps is expected, sure, but this lowering was too big.

     

    Anyone having that too?

     

    What i tried:

    1) Remove lots of buildings.

    2) Remove all the grass cutters (grass set to off).

     

    Fps was a litle better, but still a big hit.

     

    What i have not tried:

    1) Remove roads.

  8. If this is not of your interest. Sorry. I believe you can ignore. Thankyou.

     

    DDOS HELI GUARD

     

    WHAT THIS DO

    Park your heli if all the crew is sudenly disconected.

     

    WHERE THE HELI IS PARKED?

    If the heli is above a open camp, it will be parked on this camp.

     

    AND IF THE HELI IS ABOVE A CITY OR FOREST?

    So the heli will be parked on the nearest open area.

     

    IF JUST THE PILOT LOST CONNECTION THE HELI WILL BE PARKED?

    No. 

     

    INSTALATION

    1 - Download the script on this link: https://www.dropbox.com/s/8tseh7u8ct6gy49/andre_ddos_heli_guard.sqf?dl=0

    2 - Put the script on the root of your mission folder.

    3 - Open the file init.sqf.

    4 - Put this line at the end of your init.sqf: execVM "andre_ddos_heli_guard.sqf";

     

    BE FILTERS

    On publicvariable.txt add this at the end of the line that begins with 5 "" (usually first or second line):

    !="donn_heli_monitor"

     

    MAKE A TEST
    1 - Fly on a Heli as a pilot.
    2 - Press Alt + F4 to close the Arma 2 OA client.
    3 - Re-join the server.
    4 - Look for your Heli.
    It will be parked.
  9. NEXT UPDATE (SOON)

     

    CAR MENU:

    REFUEL FOR 5 COINS

    TOTAL REPAIR BUDGETING

    REPAIR ALL

    REPAIR MOTOR

    REPAIR WHEELS

    REPAIR BODY

     

    HELI MENU:

    REFUEL FOR 5 COINS

    TOTAL REPAIR BUDGETING

    REPAIR ALL

    REPAIR MOTOR

    REPAIR V AND H ROTORS

    REPAIR BODY

     

    PRICES:

    Based on part cost ($500 for a car part, $1000 for a heli part), amount of damage and number of damaged parts.

     

    CAR PRICE INCREASE:

    Price increases if car armor is above 30.

     

    HELI PRICE INCREASE:

    Price increases if heli size is above 10 m.

×
×
  • Create New...