Jump to content
  • 0

Self blood bag not working


sunnypt

Question

Hi. im very new to this and i need some help if possible. So i installed single currency on my vanilla server, everthing seems to be working fine with that. 

The thing is when i tried to instal Krixes' self bloodbag script it just doesn't work for some reason i spawn in debug.

 

i used this guide  

 

Installation Instructions For existing custom dayz_mission.pbo and fn_selfActions.sqf:
Open your dayz_mission.pbo

Create a new folder called Scripts in your dayz_mission.pbo and add my player_selfBloodbag.sqf to the custom folder you just created!

open your fn_selfActions.sqf in YOUR dayz_mission.pbo and add this in....

Code (Text):
// ---------------------------------------Krixes Self Bloodbag Start------------------------------------
    _mags = magazines player;
 
    // Krixes Self Bloodbag
    if ("ItemBloodbag" in _mags) then {
        hasBagItem = true;
    } else { hasBagItem = false;};
    if((speed player <= 1) && hasBagItem && _canDo) then {
        if (s_player_selfBloodbag < 0) then {
            s_player_selfBloodbag = player addaction[("<t color="#c70000"">" + ("Self Bloodbag") +"</t>"),"Scripts\player_selfbloodbag.sqf","",5,false,true,"", "];
        };
    } else {
        player removeAction s_player_selfBloodbag;
        s_player_selfBloodbag = -1;
    };
// ---------------------------------------Krixes Self Bloodbag End------------------------------------
 
 

just after this part...........

Code (Text):
_canDo = (!r_drag_sqf and !r_player_unconscious and !_onLadder);

did everything like it says there and i spawn in debug for some reason. can someone help me with this?

 

 

 

EDIT: Fixed it, note to self, always edit sqf files with notepad++  :D please close this post :)

Link to comment
Share on other sites

15 answers to this question

Recommended Posts

  • 0

 

Who even use that shit xD

 

Self bloodbag is default in epoch...

 

just activate it with this:

DZE_SelfTransfuse           	= true;

 

Another thing good to know is that Krixes self blood bag gives you 10% chance of infection when self transfusing, so the ones looking foir cheap thrills in Dayz, may opt for it for extra realism.

Link to comment
Share on other sites

  • 0

Another thing good to know is that Krixes self blood bag gives you 10% chance of infection when self transfusing, so the ones looking foir cheap thrills in Dayz, may opt for it for extra realism.

DZE_SelfTransfuse = true;

DZE_selfTransfuse_Values = [6000, 10, 180];

 

Works too.  6000= Amount of blood given, 10= infection chance and 180= Cooldown before using another bloodbags

Link to comment
Share on other sites

  • 0

Is there any documentaion on DZE configs?

 

Otherwise i'll make on, because people dont seem to know which ones there are and what they do.

Not sure, i found that in that thread:

 

And from 1.0.5 changelogs:

http://epochmod.gamepedia.com/Changelogs

 

dayz_ and DZE_ config are here but not everything is in there:

http://epochmod.gamepedia.com/Init.sqf

 

And also from variables.sqf

if(isNil "DZE_SelfTransfuse") then {

DZE_SelfTransfuse = false;

};

if(isNil "dayz_maxAnimals") then {

dayz_maxAnimals = 5;

};

if(isNil "timezoneswitch") then {

timezoneswitch = 0;

};

if(isNil "dayz_maxLocalZombies") then {

dayz_maxLocalZombies = 15;

};

if(isNil "dayz_maxGlobalZombiesInit") then {

dayz_maxGlobalZombiesInit = 15;

};

if(isNil "dayz_maxGlobalZombiesIncrease") then {

dayz_maxGlobalZombiesIncrease = 5;

};

if(isNil "dayz_maxZeds") then {

dayz_maxZeds = 500;

};

if (isNil "DZE_PlayerZed") then {

DZE_PlayerZed = true;

};

if (isNil "DZE_GodModeBase") then {

DZE_GodModeBase = false;

};

if(isNil "DZEdebug") then {

DZEdebug = false;

};

if (isNil "DZE_Debug_Damage") then {

DZE_Debug_Damage = true;

};

if(isNil "DZE_TRADER_SPAWNMODE") then {

DZE_TRADER_SPAWNMODE = false;

};

if(isNil "dayz_tameDogs") then {

dayz_tameDogs = false;

};

if(isNil "dayz_sellDistance_vehicle") then {

dayz_sellDistance_vehicle = 10;

};

if(isNil "dayz_sellDistance_boat") then {

dayz_sellDistance_boat = 30;

};

if(isNil "dayz_sellDistance_air") then {

dayz_sellDistance_air = 40;

};

if(isNil "dayz_paraSpawn") then {

dayz_paraSpawn = false;

};

if(isNil "dayz_minpos") then {

dayz_minpos = -20000;

};

if(isNil "dayz_maxpos") then {

dayz_maxpos = 20000;

};

if(isNil "DZE_BuildingLimit") then {

DZE_BuildingLimit = 150;

};

if(isNil "DZE_HumanityTargetDistance") then {

DZE_HumanityTargetDistance = 25;

};

if(isNil "DZE_FriendlySaving") then {

DZE_FriendlySaving = true;

};

if(isNil "DZE_BuildOnRoads") then {

DZE_BuildOnRoads = false;

};

if(isNil "DZE_MissionLootTable") then {

DZE_MissionLootTable = false;

};

if(isNil "DZE_ConfigTrader") then {

DZE_ConfigTrader = false;

};

if(isNil "DZE_LootSpawnTimer") then {

DZE_LootSpawnTimer = 10;

};

if(isNil "DZE_HeliLift") then {

DZE_HeliLift = true;

};

if(isNil "DZE_DamageBeforeMaint") then {

DZE_DamageBeforeMaint = 0.09;

};

if(isNil "DZE_StaticConstructionCount") then {

DZE_StaticConstructionCount = 0;

};

if (isNil "DZE_selfTransfuse_Values") then {

DZE_selfTransfuse_Values = [12000, 15, 300];

};

// needed on server

if(isNil "DZE_PlotPole") then {

DZE_PlotPole = [30,45];

};

if(isNil "DZE_maintainRange") then {

DZE_maintainRange = ((DZE_PlotPole select 0)+20);

};

DZE_REPLACE_WEAPONS = [["Crossbow","ItemMatchbox","ItemHatchet"],["Crossbow_DZ","ItemMatchbox_DZE","ItemHatchet_DZE"]];

if(isNil "dayz_zedSpawnVehCount") then {

dayz_zedSpawnVehCount = dayz_maxLocalZombies / 2;

};

if(isNil "dayz_spawnAirCount") then {

dayz_spawnAirCount = 0;

};

if(isNil "dayz_zedsAttackVehicles") then {

dayz_zedsAttackVehicles = true;

};

Link to comment
Share on other sites

  • 0

Not sure, i found that in that thread:

 

And from 1.0.5 changelogs:

http://epochmod.gamepedia.com/Changelogs

 

dayz_ and DZE_ config are here but not everything is in there:

http://epochmod.gamepedia.com/Init.sqf

 

And also from variables.sqf

if(isNil "DZE_SelfTransfuse") then {

DZE_SelfTransfuse = false;

};

if(isNil "dayz_maxAnimals") then {

dayz_maxAnimals = 5;

};

if(isNil "timezoneswitch") then {

timezoneswitch = 0;

};

if(isNil "dayz_maxLocalZombies") then {

dayz_maxLocalZombies = 15;

};

if(isNil "dayz_maxGlobalZombiesInit") then {

dayz_maxGlobalZombiesInit = 15;

};

if(isNil "dayz_maxGlobalZombiesIncrease") then {

dayz_maxGlobalZombiesIncrease = 5;

};

if(isNil "dayz_maxZeds") then {

dayz_maxZeds = 500;

};

if (isNil "DZE_PlayerZed") then {

DZE_PlayerZed = true;

};

if (isNil "DZE_GodModeBase") then {

DZE_GodModeBase = false;

};

if(isNil "DZEdebug") then {

DZEdebug = false;

};

if (isNil "DZE_Debug_Damage") then {

DZE_Debug_Damage = true;

};

if(isNil "DZE_TRADER_SPAWNMODE") then {

DZE_TRADER_SPAWNMODE = false;

};

if(isNil "dayz_tameDogs") then {

dayz_tameDogs = false;

};

if(isNil "dayz_sellDistance_vehicle") then {

dayz_sellDistance_vehicle = 10;

};

if(isNil "dayz_sellDistance_boat") then {

dayz_sellDistance_boat = 30;

};

if(isNil "dayz_sellDistance_air") then {

dayz_sellDistance_air = 40;

};

if(isNil "dayz_paraSpawn") then {

dayz_paraSpawn = false;

};

if(isNil "dayz_minpos") then {

dayz_minpos = -20000;

};

if(isNil "dayz_maxpos") then {

dayz_maxpos = 20000;

};

if(isNil "DZE_BuildingLimit") then {

DZE_BuildingLimit = 150;

};

if(isNil "DZE_HumanityTargetDistance") then {

DZE_HumanityTargetDistance = 25;

};

if(isNil "DZE_FriendlySaving") then {

DZE_FriendlySaving = true;

};

if(isNil "DZE_BuildOnRoads") then {

DZE_BuildOnRoads = false;

};

if(isNil "DZE_MissionLootTable") then {

DZE_MissionLootTable = false;

};

if(isNil "DZE_ConfigTrader") then {

DZE_ConfigTrader = false;

};

if(isNil "DZE_LootSpawnTimer") then {

DZE_LootSpawnTimer = 10;

};

if(isNil "DZE_HeliLift") then {

DZE_HeliLift = true;

};

if(isNil "DZE_DamageBeforeMaint") then {

DZE_DamageBeforeMaint = 0.09;

};

if(isNil "DZE_StaticConstructionCount") then {

DZE_StaticConstructionCount = 0;

};

if (isNil "DZE_selfTransfuse_Values") then {

DZE_selfTransfuse_Values = [12000, 15, 300];

};

// needed on server

if(isNil "DZE_PlotPole") then {

DZE_PlotPole = [30,45];

};

if(isNil "DZE_maintainRange") then {

DZE_maintainRange = ((DZE_PlotPole select 0)+20);

};

DZE_REPLACE_WEAPONS = [["Crossbow","ItemMatchbox","ItemHatchet"],["Crossbow_DZ","ItemMatchbox_DZE","ItemHatchet_DZE"]];

if(isNil "dayz_zedSpawnVehCount") then {

dayz_zedSpawnVehCount = dayz_maxLocalZombies / 2;

};

if(isNil "dayz_spawnAirCount") then {

dayz_spawnAirCount = 0;

};

if(isNil "dayz_zedsAttackVehicles") then {

dayz_zedsAttackVehicles = true;

};

 

I'll start maknig a complete topic about it ^^

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...