Jump to content

Recommended Posts

11 hours ago, IT07 said:

config.cpp >> CfgVemfReloaded >> MI >> cal50delMode = 1; // 1 is delete, 2 is destroy

The fact of the matter, we have configured everything as it should!

Oh yeah and also, they disappear when you come on a mission, a distance of 290 metres, not after!

Link to comment
Share on other sites

  • 2 weeks later...

Hi IT07,

can you fix? I'm using 0.3.8

RPT log

Spoiler

23:05:53 Error in expression <';
_vars = _killer getVariable['VARS',[]+EPOCH_defaultVars_SEPXVar];
_curcrypt =>
23:05:53   Error position: <+EPOCH_defaultVars_SEPXVar];
_curcrypt =>
23:05:53   Error +: Type code, expected Number,Array,String,Not a Number
23:05:53 File Epoch_VEMF_Reloaded\functions\fn_aiKilled.sqf, line 58
23:05:53 Ragdoll - loading of ragdoll source "Soldier" started.
23:05:53 Ragdoll - loading of ragdoll source "Soldier" finished successfully.
23:05:55 Error in expression <';
_vars = _killer getVariable['VARS',[]+EPOCH_defaultVars_SEPXVar];
_curcrypt =>
23:05:55   Error position: <+EPOCH_defaultVars_SEPXVar];
_curcrypt =>
23:05:55   Error +: Type code, expected Number,Array,String,Not a Number
23:05:55 File Epoch_VEMF_Reloaded\functions\fn_aiKilled.sqf, line 58
23:05:58 Error in expression <';
_vars = _killer getVariable['VARS',[]+EPOCH_defaultVars_SEPXVar];
_curcrypt =>
23:05:58   Error position: <+EPOCH_defaultVars_SEPXVar];
_curcrypt =>
23:05:58   Error +: Type code, expected Number,Array,String,Not a Number
23:05:58 File Epoch_VEMF_Reloaded\functions\fn_aiKilled.sqf, line 58
23:06:00 Error in expression <';
_vars = _killer getVariable['VARS',[]+EPOCH_defaultVars_SEPXVar];
_curcrypt =>
23:06:00   Error position: <+EPOCH_defaultVars_SEPXVar];
_curcrypt =>
23:06:00   Error +: Type code, expected Number,Array,String,Not a Number
23:06:00 File Epoch_VEMF_Reloaded\functions\fn_aiKilled.sqf, line 58

thanks

Link to comment
Share on other sites

VEMF is not modified !  I'm using no mods or scripts

useCryptoReward = -1; // no problem

useCryptoReward = 1;// problem

Spoiler

10:39:12 Error in expression <';
_vars = _killer getVariable['VARS',[]+EPOCH_defaultVars_SEPXVar];
_curcrypt =>
10:39:12   Error position: <+EPOCH_defaultVars_SEPXVar];
_curcrypt =>
10:39:12   Error +: Type code, expected Number,Array,String,Not a Number
10:39:12 File Epoch_VEMF_Reloaded\functions\fn_aiKilled.sqf, line 58

 

Link to comment
Share on other sites

  • 1 month later...

fn_aiKilled.sqf (quickfix)

works fine!

Spoiler

/*
    VEMF AI Killed by Vampire, rewritten by IT07

    Description:
    removes launchers if desired and announces the kill if enabled in config.cpp

    Params:
    _this select 0: OBJECT - the killed AI
    _this select 1: OBJECT - killer

    Returns:
    nothing
*/

_target = [_this, 0, objNull, [objNull]] call BIS_fnc_param;
if not isNull _target then
{
    _target removeAllEventHandlers "MPKilled";
    _settings = [["keepLaunchers","keepAIbodies"]] call VEMFr_fnc_getSetting;
    _keepLaunchers = [_settings, 0, -1, [0]] call BIS_fnc_param;
    if (_keepLaunchers isEqualTo -1) then
    {
        _secWeapon = secondaryWeapon _target;
        if not(_secWeapon isEqualTo "") then
        {
            _target removeWeaponGlobal _secWeapon;
            _missiles = getArray (configFile >> "cfgWeapons" >> _secWeapon >> "magazines");
            {
                if (_x in _missiles) then
                {
                    _target removeMagazineGlobal _x;
                };
            } forEach (magazines _target);
        };
    };

    _killer = [_this, 1, objNull, [objNull]] call BIS_fnc_param;
    if not isNull _killer then
    {
        if (vehicle _killer isEqualTo _killer) then // No roadkills please
        {
            if ("useCryptoReward" call VEMFr_fnc_getSetting isEqualTo 1) then
            { // Give the player money for killing an AI
                _maxReward = "maxCryptoReward" call VEMFr_fnc_getSetting;
                _calcReward =
                {
                    private ["_reward","_dist","_maxReward"];
                    _reward = 0;
                    _dist = _this select 0;
                    _maxReward = _this select 1;
                    if (_dist < 50) exitWith { _reward = _maxReward - (_maxReward / 1.25); _reward };
                    if (_dist < 100) exitWith { _reward = _maxReward - (_maxReward / 1.5); _reward };
                    if (_dist > 800) exitWith { _reward = _maxReward - (_maxReward / 2); _reward };
                    if (_dist < 800) exitWith { _reward = _maxReward - (_maxReward / 4); _reward };
                };
                _bonus = round ([_target distance _killer, _maxReward] call _calcReward);
                _varIndex = EPOCH_customVars find 'Crypto';
                _vars = _killer getVariable['VARS', call EPOCH_defaultVars_SEPXVar];
                _curcrypt = _vars select _varIndex;
                _newcrypt = _curcrypt + _bonus;
                 _newcrypt remoteExec ['EPOCH_effectCrypto',(owner _killer)];
                _vars set[_varIndex,_newcrypt];
                _killer setVariable ["VARS", _vars];

            };
            if ("sayKilled" call VEMFr_fnc_getSetting isEqualTo 1) then // Send kill message if enabled
            {
                _dist = _target distance _killer;
                if (_dist > -1) then
                {
                    if (isPlayer _killer) then // Should prevent Error:NoUnit
                    {
                        _curWeapon = currentWeapon _killer;
                        _kMsg = format["[VEMF] %1: AI kill from %2m with %3", name _killer, round _dist, getText(configFile >> "CfgWeapons" >> _curWeapon >> "DisplayName")];
                        _sent = [_kMsg, "sys"] spawn VEMFr_fnc_broadCast;
                    };
                };
            };
        };
        if not (vehicle _killer isEqualTo _killer) then
        { // Send kill message if enabled
            if (("sayKilled" call VEMFr_fnc_getSetting) isEqualTo 1) then
            {
                if ((_target distance _killer) < 5) then
                {
                    if (isPlayer _killer) then // Should prevent Error:NoUnit
                    {
                        _kMsg = format["[VEMF] %1: AI road-kill with %2", name _killer, getText(configFile >> "CfgVehicles" >> typeOf(vehicle _killer) >> "DisplayName")];
                        _sent = [_kMsg, "sys"] spawn VEMFr_fnc_broadCast;
                    };
                };
            };
        };
    };

    if ((_settings select 1) isEqualTo -1) then // If killEffect enabled
    {
        playSound3D ["A3\Missions_F_Bootcamp\data\sounds\vr_shutdown.wss", _target, false, getPosASL _target, 2, 1, 60];
        for "_u" from 1 to 8 do
        {
            if not(isObjectHidden _target) then
            {
                _target hideObjectGlobal true;
            } else
            {
                _target hideObjectGlobal false;
            };
            uiSleep 0.15;
        };
        _target hideObjectGlobal true;
        removeAllWeapons _target;
        // Automatic cleanup yaaay
        deleteVehicle _target;
    };
};

 

Link to comment
Share on other sites

  • 2 weeks later...
On 31.5.2016 at 11:38 AM, Scorpi said:

@obermaig

is working?

Oh, sorry men :o !  

Yes that with reward was a great solution, many Thanks!

 

The our players are crasy about this mission - close hoses fight, bounties....

 and other player,  which only wait to the crate to steal :D

 

greeting

Igor

Link to comment
Share on other sites

Hey RVG :) yes i do

maybe the wrong way ?  epochehive\mpmission\epoch.Altis.pbo inside of this right?

thats what i do but no message, i see the icons on map where the mission beggin, but there is no message who say when it's there or when you are done

 

381731DSC0088.jpg

Link to comment
Share on other sites

Its what i did

Spoiler

 

class cfgFunctions
{
    #include "VEMFr_client\CfgFunctions.hpp"

};
class RscTitles
{
    #include "VEMFr_client\gui\hpp_mainVEMFrClient.hpp" 
    #include "addons\Status_Bar\statusBar.hpp"
};

 

Status bar working fine but not the VEMFr

Link to comment
Share on other sites

Spoiler

class cfgFunctions
{
    class A3
    {
        tag = "BIS";
        class functions {
            // BIS_fnc_returnVector
            class returnVector {
                file = "epoch_code\compile\bis_functions\returnVector.sqf";
            };
        };
    };
    class EPOCH
    {
        tag = "EPOCH";
        class functions {
            class returnConfigEntryV2 {
                file = "epoch_code\compile\functions\EPOCH_fn_returnConfigEntryV2.sqf";
            };
            class isAny {
                file = "epoch_code\compile\both\EPOCH_isAny.sqf";
            };
            class compiler {
                file = "epoch_code\compile\both\EPOCH_compiler.sqf";
            };
        };
        class Client
        {
            class init
            {
                file = "epoch_code\init\fn_init.sqf";
                preInit = 1;
            };
            class postinit
            {
                file = "epoch_code\init\fn_postinit.sqf";
                postInit = 1;
            };
        };
    };
    #include "VEMFr_client\CfgFunctions.hpp"
};

Like this correct ?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
×
×
  • Create New...