TuT im Anflug
Beiträge von BlueType
-
-
core/items/fn_drinkbeer.sqf erstellen mit folgendem Inhalt:
Spoiler anzeigen
/*
File: fn_drinkbeer.sqf
Author: midgetgrimm
*/
closeDialog 0;
hintSilent parseText format["Your BAC is now<br/> <t size='1.4'><t color='#FF0000'>%1</t></t>",[life_drink] call life_fnc_numberText];
sleep 4;
"chromAbberation" ppEffectEnable true; //Fehlerhaft?? Chrom
"radialBlur" ppEffectEnable true;
enableCamShake true;
player setVariable["inDrink",true,true];
for "_i" from 0 to 59 do
{
if(life_drink > 0.12) then {
"chromAberration" ppEffectAdjust[0.16,random 0.16, true];
"chromAberration" ppEffectCommit 1;
"radialBlur" ppEffectAdjust [random 0.05,random 0.05,0.3,0.3];
"radialBlur" ppEffectCommit 1;
addcamShake[random 4, 2, random 4];
sleep 1;
} else {
"chromAberration" ppEffectAdjust[0.05,random 0.05, true];
"chromAberration" ppEffectCommit 1;
"radialBlur" ppEffectAdjust [random 0.03,random 0.03,0.4,0.4];
"radialBlur" ppEffectCommit 1;
addcamShake[random 3, 1, random 3];
sleep 1;
};
};
if (life_drink > 0.22) then {
titleText [localize "STR_MISC_DrunkBlackOut","BLACK OUT"];
player playMoveNow "Incapacitated";
//titleText[localize "STR_MISC_DrunkBlackOut","BLACK IN"];
sleep 15;
removeUniform player;removeVest player;
player playMoveNow "AinjPpneMstpSnonWrf1Dnon_rolltoback";
sleep 10;
life_drink = 0;
titleText[localize "STR_MISC_DrunkBlackOut1","PLAIN"];
player playMoveNow "amovppnemstpsraswrf1dnon";
[[0,format[localize "STR_MISC_StPubIntox",profilName]],"life_fnc_broadcast",nil,false] spawn life_fnc_MP;
[[getPlayerUID player,profilName, "390"],"life_fnc_wantedAdd",false,false] spawn life_fnc_MP;
};
//Stop effects
player setVariable["inDrink",false,true];
"chromAberration" ppEffectAdjust [0,0,true];
"chromAberration" ppEffectCommit 5;
"radialBlur" ppEffectAdjust [0,0,0,0];
"radialBlur" ppEffectCommit 5;
sleep 6;
//Deaktivate ppEffects
//"chromAberration" ppEffectEnable false;
//"radialBlur" ppEffectEnable false;
resetCamShake;
if(life_drink != 0) then {life_drink = life_drink - 0.02;};
core/items/fn_drinkmoonshine.sqf erstellen mit folgendem Inhalt:
Spoiler anzeigen
/*
File: fn_drinkmoonshine.sqf
Author: midgetgrimm
*/
closeDialog 0;
profilName = name player;
hintSilent parseText format["Your BAC is now<br/> <t size='1.4'><t color='#FF0000'>%1</t></t>",[life_drink] call life_fnc_numberText];
sleep 4;
"chromAbberation" ppEffectEnable true; //Fehlerhaft?? Chrom
"radialBlur" ppEffectEnable true;
//"wetDistortion" ppEffectEnable true;
enableCamShake true;
player setVariable["inDrink",true,true];
for "_i" from 0 to 89 do
{
if(life_drink > 0.15) then {
"chromAberration" ppEffectAdjust [random 0.07,random 0.07, true];
"chromAberration" ppEffectCommit 1;
"radialBlur" ppEffectAdjust [random 0.04, 0.09,0.25, 0.29];
"radialBlur" ppEffectCommit 1;
addcamShake[random 4, 2, random 4];
sleep 1;
} else {
"chromAberration" ppEffectAdjust[0.03,random 0.03, true];
"chromAberration" ppEffectCommit 1;
"radialBlur" ppEffectAdjust [random 0.03,random 0.03,0.43,0.43];
"radialBlur" ppEffectCommit 1;
addcamShake[random 4, 2, random 4];
sleep 1;
};
};
if (life_drink > 0.22) then {
titleText [localize "STR_MISC_DrunkBlackOut","BLACK OUT"];
// player setPos (getMarkerPos "drunk_1"); // Teleport zum marker
player playMoveNow "Incapacitated";
//titleText[localize "STR_MISC_DrunkBlackOut","BLACK IN"];
sleep 15;
removeUniform player;
removeVest player;
removeBackpackGlobal player;
removeAllWeapons player;
player playMoveNow "AinjPpneMstpSnonWrf1Dnon_rolltoback";
sleep 10;
life_drink = 0;
titleText[localize "STR_MISC_DrunkBlackOut1","PLAIN"];
player playMoveNow "amovppnemstpsraswrf1dnon";
[[2,"STR_MISC_StPubIntox",true,[profileName]],"life_fnc_broadcast",true,false] call life_fnc_MP; //neu
// [[0,format[localize "STR_MISC_StPubIntox",profilName]],"life_fnc_broadcast",nil,false] spawn life_fnc_MP;
[[getPlayerUID player,profilName, "390"],"life_fnc_wantedAdd",false,false] spawn life_fnc_MP;
player switchmove "";
};
//Stop effects
player setVariable["inDrink",false,true];
"chromAberration" ppEffectAdjust [0,0,true];
"chromAberration" ppEffectCommit 5;
"radialBlur" ppEffectAdjust [0,0,0,0];
"radialBlur" ppEffectCommit 5;
sleep 6;
//Deaktivate ppEffects
"chromAberration" ppEffectEnable false;
"radialBlur" ppEffectEnable false;
resetCamShake;
if(life_drink != 0) then {life_drink = life_drink - 0.02;};
core/items/fn_drinkwhiskey.sqf erstellen mit folgendem Inhalt:
Spoiler anzeigen
/*
File: fn_drinkwhiskey.sqf
Author: midgetgrimm
*/
closeDialog 0;
hintSilent parseText format["Your BAC is now<br/> <t size='1.4'><t color='#FF0000'>%1</t></t>",[life_drink] call life_fnc_numberText];
sleep 4;
"chromAbberation" ppEffectEnable true; //Fehlerhaft?? Chrom
"radialBlur" ppEffectEnable true;
"colorCorrections" ppEffectEnable true;
enableCamShake true;
player setVariable["inDrink",true,true];
for "_i" from 0 to 89 do
{
if(life_drink > 0.12) then {
"chromAberration" ppEffectAdjust[0,random 0.15, false];
"chromAberration" ppEffectCommit 1;
"radialBlur" ppEffectAdjust [random 0.1,random 0.1,0.3,0.3];
"radialBlur" ppEffectCommit 1;
"colorCorrections" ppEffectAdjust[ 0.44, 0.76, 0.7, [0.1, -0.57, 0, 0.05], [1.8, 1.3, 0.3, 0.7],[0.2, 0.59, 0.11, 0]];
"colorCorrections" ppEffectCommit 1;
addcamShake[random 4, 2, random 4];
sleep 1;
} else {
"chromAberration" ppEffectAdjust[0.05,random 0.05, true];
"chromAberration" ppEffectCommit 1;
"radialBlur" ppEffectAdjust [random 0.01,random 0.01,0.5,0.5];
"radialBlur" ppEffectCommit 1;
addcamShake[random 4, 2, random 4];
sleep 1;
};
};
if (life_drink > 0.22) then {
titleText [localize "STR_MISC_DrunkBlackOut","BLACK OUT"];
player playMoveNow "Incapacitated";
titleText[localize "STR_MISC_DrunkBlackOut","BLACK IN"];
sleep 15;
removeUniform player;removeVest player;
player playMoveNow "AinjPpneMstpSnonWrf1Dnon_rolltoback";
sleep 10;
life_drink = 0;
titleText[localize "STR_MISC_DrunkBlackOut1","PLAIN"];
player playMoveNow "amovppnemstpsraswrf1dnon";
[[0,format[localize "STR_MISC_StPubIntox",profilName]],"life_fnc_broadcast",nil,false] spawn life_fnc_MP;
[[getPlayerUID player,profilName, "390"],"life_fnc_wantedAdd",false,false] spawn life_fnc_MP;
};
//Stop effects
player setVariable["inDrink",false,true];
"chromAberration" ppEffectAdjust [0,0,true];
"chromAberration" ppEffectCommit 5;
"colorCorrections" ppEffectAdjust[ 1, 1, 9, [0, 0, 0, 0],[1.8, 1.8, 0.3, 0.7],[0.2, 0.59, 0.11, 0]];
"colorCorrections" ppEffectCommit 5;
"radialBlur" ppEffectAdjust [0,0,0,0];
"radialBlur" ppEffectCommit 5;
sleep 6;
//Deaktivate ppEffects
"chromAberration" ppEffectEnable false;
"radialBlur" ppEffectEnable false;
"colorCorrections" ppEffectEnable false;
resetCamShake;
if(life_drink != 0) then {life_drink = life_drink - 0.02;};
Kann dies mal bitte jemand testen un Rückmeldung geben? Ich kanns grade nicht testen
-
Der Orginal Post ist von SBuserhy und ich Remake ihn nur für die Life Version 5.0!
Bevor ihr anfangt BACKUPS MACHEN!!
Brennerei NPC
Spoiler anzeigen
this allowDamage false; this enableSimulation false; this addAction [ ""Process Mash"", { [[[""cornmeal"",1],[""waterbottle"",1]],""license_civ_mashL"",50000,[[""mash"",1],[""AItem:>"",2]]] spawn life_fnc_dynprocess; } ]; this addAction[format[""%1 ($%2)"",localize (getText(missionConfigFile >> ""Licenses"" >> ""mashL"" >> ""displayName"")), [(getNumber(missionConfigFile >> ""Licenses"" >> ""mashL"" >> ""price""))] call life_fnc_numberText],life_fnc_buyLicense,""mashL"",0,false,false,"""",' !license_civ_mashL && playerSide == civilian '];this addAction [ ""Process Moonshine"", { [[[""mash"",1],[""yeast"",1]],""license_civ_MoonshineL"",50000,[[""Moonshine"",1],[""AItem:>"",2]]] spawn life_fnc_dynprocess; } ]; this addAction[format[""%1 ($%2)"",localize (getText(missionConfigFile >> ""Licenses"" >> ""MoonshineL"" >> ""displayName"")), [(getNumber(missionConfigFile >> ""Licenses"" >> ""MoonshineL"" >> ""price""))] call life_fnc_numberText],life_fnc_buyLicense,""MoonshineL"",0,false,false,"""",' !license_civ_MoonshineL && playerSide == civilian '];this addAction [ ""Process Whiskey"", { [[[""rye"",1],[""yeast"",1],[""waterbottle"",1]],""license_civ_WhiskeyL"",50000,[[""whiskey"",1],[""AItem:>"",3]]] spawn life_fnc_dynprocess; } ]; this addAction[format[""%1 ($%2)"",localize (getText(missionConfigFile >> ""Licenses"" >> ""WhiskeyL"" >> ""displayName"")), [(getNumber(missionConfigFile >> ""Licenses"" >> ""WhiskeyL"" >> ""price""))] call life_fnc_numberText],life_fnc_buyLicense,""WhiskeyL"",0,false,false,"""",' !license_civ_WhiskeyL && playerSide == civilian '];Brauerei NPC
Spoiler anzeigen
this allowDamage false; this enableSimulation false; this addAction [ ""Brew Beer"", { [[[""hops"",1],[""yeast"",1],[""waterbottle"",1]],""license_civ_liquor"",50000,[[""beerp"",1],[""AItem:>"",3]]] spawn life_fnc_dynprocess; } ]; this addAction[format[""%1 ($%2)"",localize (getText(missionConfigFile >> ""Licenses"" >> ""liquor"" >> ""displayName"")), [(getNumber(missionConfigFile >> ""Licenses"" >> ""liquor"" >> ""price""))] call life_fnc_numberText],life_fnc_buyLicense,""liquor"",0,false,false,"""",' !license_civ_liquor && playerSide == civilian ']; this addAction [ ""Mix Apple juice"", { [[[""apple"",1],[""waterbottle"",1]],""license_civ_liquor"",50000,[[""applej"",1],[""AItem:>"",2]]] spawn life_fnc_dynprocess; } ]; this addAction[format[""%1 ($%2)"",localize (getText(missionConfigFile >> ""Licenses"" >> ""liquor"" >> ""displayName"")), [(getNumber(missionConfigFile >> ""Licenses"" >> ""liquor"" >> ""price""))] call life_fnc_numberText],life_fnc_buyLicense,""liquor"",0,false,false,"""",' !license_civ_liquor && playerSide == civilian '];
Abfüller NPC
Spoiler anzeigen
this allowDamage false; this enableSimulation false; this addAction [ ""Bottle Beer"", { [[[""beerp"",1],[""bottles"",1]],""license_civ_bottler"",50000,[[""bottledBeer"",1],[""AItem:>"",2]]] spawn life_fnc_dynprocess; } ]; this addAction[format[""%1 ($%2)"",localize (getText(missionConfigFile >> ""Licenses"" >> ""bottler"" >> ""displayName"")), [(getNumber(missionConfigFile >> ""Licenses"" >> ""bottler"" >> ""price""))] call life_fnc_numberText],life_fnc_buyLicense,""bottler"",0,false,false,"""",' !license_civ_bottler && playerSide == civilian '];this addAction [ ""Bottle Whiskey"", { [[[""whiskey"",1],[""bottles"",1]],""license_civ_bottler"",50000,[[""bottledwhiskey"",1],[""AItem:>"",2]]] spawn life_fnc_dynprocess; } ]; this addAction[format[""%1 ($%2)"",localize (getText(missionConfigFile >> ""Licenses"" >> ""bottler"" >> ""displayName"")), [(getNumber(missionConfigFile >> ""Licenses"" >> ""bottler"" >> ""price""))] call life_fnc_numberText],life_fnc_buyLicense,""bottler"",0,false,false,"""",' !license_civ_bottler && playerSide == civilian '];this addAction [ ""Bottle Moonshine"", { [[[""moonshine"",1],[""bottles"",1]],""license_civ_bottler"",50000,[[""bottledshine"",1],[""AItem:>"",2]]] spawn life_fnc_dynprocess; } ]; this addAction[format[""%1 ($%2)"",localize (getText(missionConfigFile >> ""Licenses"" >> ""bottler"" >> ""displayName"")), [(getNumber(missionConfigFile >> ""Licenses"" >> ""bottler"" >> ""price""))] call life_fnc_numberText],life_fnc_buyLicense,""bottler"",0,false,false,"""",' !license_civ_bottler && playerSide == civilian '];this addAction [ ""Bottle Apple juice"", { [[[""applej"",1],[""bottles"",1]],""license_civ_bottler"",50000,[[""bottledapplej"",1],[""AItem:>"",2]]] spawn life_fnc_dynprocess; } ]; this addAction[format[""%1 ($%2)"",localize (getText(missionConfigFile >> ""Licenses"" >> ""bottler"" >> ""displayName"")), [(getNumber(missionConfigFile >> ""Licenses"" >> ""bottler"" >> ""price""))] call life_fnc_numberText],life_fnc_buyLicense,""bottler"",0,false,false,"""",' !license_civ_bottler && playerSide == civilian '];
Mr Moonshine
Spoiler anzeigen
this allowDamage false; this enableSimulation false; this addAction["Mr.Moonshine",life_fnc_virt_menu,"mrmoonshine"];
Kneipe/Bar
Spoiler anzeigen
this allowDamage false; this enableSimulation false; this addAction["Barkeeper",life_fnc_virt_menu,"alkbar"];
Nun Erstellt ihr noch 3 Marker mit den Folgenden Namen:
Spoiler anzeigen
yeast_1
rye_1
hops_1
Config_vItems.hpp (Bei den Items Einfügen)
Spoiler anzeigen
class bottledshine{
variable = "bottledshine";
displayName = "STR_Item_BottledShine";
weight = 2;
buyPrice = -1;
sellPrice = 15000;
illegal = true;
edible = 10;
icon = "";
};
class bottledwhiskey{
variable = "bottledwhiskey";
displayName = "STR_Item_BottledWhiskey";
weight = 2;
buyPrice = -1;
sellPrice = 7000;
illegal = false;
edible = 10;
icon = "";
};
class bottledBeer{
variable = "bottledBeer";
displayName = "STR_Item_BottledBeer";
weight = 2;
buyPrice = -1;
sellPrice = 5500;
illegal = false;
edible = 10;
icon = "";
};
class bottledapplej{
variable = "bottledapplej";
displayName = "STR_Item_bottledapplej";
weight = 2;
buyPrice = -1;
sellPrice = 2000;
illegal = false;
edible = 10;
icon = "";
};
class moonshine{
variable = "moonshine";
displayName = "STR_Item_Moonshine";
weight = 2;
buyPrice = -1;
sellPrice = -1;
illegal = true;
edible = -1;
icon = "";
};
class whiskey{
variable = "whiskey";
displayName = "STR_Item_Whiskey";
weight = 2;
buyPrice = 5000;
sellPrice = -1;
illegal = false;
edible = -1;
icon = "";
};
class beerp{
variable = "beerp";
displayName = "STR_Item_Beerp";
weight = 2;
buyPrice = 5000;
sellPrice = -1;
illegal = false;
edible = -1;
icon = "";
};
class mash{
variable = "mash";
displayName = "STR_Item_Mash";
weight = 4;
buyPrice = -1;
sellPrice = -1;
illegal = true;
edible = -1;
icon = "";
};
class rye{
variable = "rye";
displayName = "STR_Item_Rye";
weight = 2;
buyPrice = -1;
sellPrice = -1;
illegal = false;
edible = -1;
icon = "";
};
class hops{
variable = "hops";
displayName = "STR_Item_Hops";
weight = 2;
buyPrice = -1;
sellPrice = -1;
illegal = false;
edible = -1;
icon = "";
};
class yeast{
variable = "yeast";
displayName = "STR_Item_Yeast";
weight = 2;
buyPrice = -1;
sellPrice = -1;
illegal = false;
edible = -1;
icon = "";
};
class cornmeal{
variable = "cornmeal";
displayName = "STR_Item_Cornmeal";
weight = 2;
buyPrice = 500;
sellPrice = 200;
illegal = false;
edible = -1;
icon = "";
};
class bottles{
variable = "bottles";
displayName = "STR_Item_Bottles";
weight = 2;
buyPrice = 100;
sellPrice = 75;
illegal = false;
edible = -1;
icon = "";
};
class applej{
variable = "applej";
displayName = "STR_Item_applej";
weight = 2;
buyPrice = 100;
sellPrice = 75;
illegal = false;
edible = -1;
icon = "";
};
Config_vItems.hpp (Bei den Shops)
Spoiler anzeigen
class mrmoonshine {
name = "STR_Shops_MRMoonshine";
side = "civ";
conditions = "";
items[] = { "bottledshine" };
};
class alkbar {
name = "STR_Shops_alkbar";
side = "civ";
conditions = "";
items[] = { "bottledBeer", "bottledwhiskey", "bottledapplej" };
};
Config_Licenses.hpp
Spoiler anzeigen
class MoonshineL{
variable = "MoonshineL";
displayName = "STR_License_MoonshineL";
price = 50000;
illegal = true;
side = "civ";
};
class liquor{
variable = "liquor";
displayName = "STR_License_Liquor";
price = 100000;
illegal = false;
side = "civ";
};
class bottler{
variable = "bottler";
displayName = "STR_License_Bottler";
price = 100000;
illegal = false;
side = "civ";
};
class mashL{
variable = "mashL";
displayName = "STR_License_MashL";
price = 50000;
illegal = true;
side = "civ";
};
class whiskeyL{
variable = "whiskeyL";
displayName = "STR_License_whiskeyL";
price = 50000;
illegal = false;
side = "civ";
};
class applejL{
variable = "applejL";
displayName = "STR_License_applejL";
price = 50000;
illegal = false;
side = "civ";
};
Stringtable.xml
Code
Alles anzeigen<Key ID="STR_MISC_AlreadyDrinking"> <Original>You are already drinking some booze</Original> <German>Du trinkst bereits etwas!</German> </Key> <Key ID="STR_MISC_WestIndNoNo"> <Original>No drinking on duty</Original> <German>Du darfst im Dienst kein Alkohol trinken!</German> </Key> <Key ID="STR_MISC_DrunkBlackout"> <Original>No have passed out</Original> <German>Du hast einen Blackout!</German> </Key> <Key ID="STR_MISC_DrunkBlackout1"> <Original>What the hell happened to me?</Original> <German>Was zum Teufel ist mit mir passiert?!</German> </Key> <Key ID="STR_Item_Bottles"> <Original>Glass Bottles</Original> <German>Glasflasche</German> </Key> <Key ID="STR_Item_BottledShine"> <Original>Bottled Moonshine</Original> <German>abgefüllter Moonshine</German> </Key> <Key ID="STR_Item_BottledWhiskey"> <Original>Bottled Whiskey</Original> <German>abgefüllter Whiskey</German> </Key> <Key ID="STR_Item_BottledBeer"> <Original>Bottled Beer</Original> <German>abgefülltes Bier</German> </Key> <Key ID="STR_Item_BottledApplej"> <Original>Bottled Apple juice</Original> <German>abgefüllter Apfelsaft</German> </Key> <Key ID="STR_Item_Moonshine"> <Original>Moonshine</Original> <German>Moonshine</German> </Key> <Key ID="STR_Item_Whiskey"> <Original>Distilled Whiskey</Original> <German>Destillierter Whiskey</German> </Key> <Key ID="STR_Item_Beerp"> <Original>Fermented Beer</Original> <German>gebrautes Bier</German> </Key> <Key ID="STR_Item_Mash"> <Original>Mash</Original> <German>Mash</German> </Key> <Key ID="STR_Item_Rye"> <Original>Rye</Original> <German>Roggen</German> </Key> <Key ID="STR_Item_Hops"> <Original>Hops</Original> <German>Hopfen</German> </Key> <Key ID="STR_Item_Yeast"> <Original>Yeast</Original> <German>Hefe</German> </Key> <Key ID="STR_Item_Cornmeal"> <Original>Cornmeal Grain</Original> <German>Getreidemehl</German> </Key> <Key ID="STR_Item_Applej"> <Original>Apple juice</Original> <German>Apfelsaft</German> </Key> <Key ID="STR_License_MashL"> <Original>Mash License</Original> <German>Mash-Lizenz</German> </Key> <Key ID="STR_License_Liquor"> <Original>Liquor License</Original> <German>Alkohol-Lizenz</German> </Key> <Key ID="STR_License_Bottler"> <Original>Bottling License</Original> <German>Abfüller-Lizenz</German> </Key> <Key ID="STR_License_MoonshineL"> <Original>Moonshine License</Original> <German>Moonshine-Lizenz</German> </Key> <Key ID="STR_License_whiskeyL"> <Original>Whiskey License</Original> <German>Whiskey-Lizenz</German> </Key> <Key ID="STR_Shops_MRMoonshine"> <Original>MR. Moonshine</Original> <German>MR. Moonshine</German> </Key> <Key ID="STR_Shops_alkbar"> <Original>Pub</Original> <German>Bar</German> </Key> <Key ID="STR_pInAct_Breathalyzer"> <Original>Breathalyzer</Original> <German>Alkoholtest</German> </Key> <Key ID="STR_Crime_390"> <Original>Public Intoxication</Original> <German>Trinken in der Oeffentlichkeit</German> <French>Public Intoxication</French> <Italian>Public Intoxication</Italian> <Portuguese>Public Intoxication</Portuguese> </Key>
core/Configuration.sqf | bei Backend Variables einfügen
Spoiler anzeigen
life_drink = 0;
Config_Gather.hpp | In das "Packet" class Resources {}; mit rein
Spoiler anzeigen
class rye {
amount = 2;
zones[] = { "rye_1" };
item = "";
zoneSize = 30;
};
class yeast {
amount = 2;
zones[] = { "yeast_1" };
item = "";
zoneSize = 30;
};
class hops{
amount = 2;
zones[] = { "hops_1" };
item = "";
zoneSize = 30;
};
core/pmenu/fn_useItem.sqf
Spoiler anzeigen
case (_item in ["waterBottle","coffee","redgull"]): {
Wird zu
case (_item in ["waterBottle","coffee","redgull","bottledapplej"]): {
Spoiler anzeigen
case (_item isEqualTo "bottledwhiskey"): {
if(([false,_item,1] call life_fnc_handleInv)) then {
if(isNil "life_drink") then {
life_drink = 0;
};
life_drink = life_drink + 0.06;
[] spawn life_fnc_drinkwhiskey;
};
};
case (_item isEqualTo "bottledshine"): {
if(([false,_item,1] call life_fnc_handleInv)) then {
if(isNil "life_drink") then {
life_drink = 0;
};
life_drink = life_drink + 0.08;
[] spawn life_fnc_drinkmoonshine;
};
};
case (_item isEqualTo "bottledbeer"): {
if(([false,_item,1] call life_fnc_handleInv)) then {
if(isNil "life_drink") then {
life_drink = 0;
};
life_drink = life_drink + 0.02;
[] spawn life_fnc_drinkbeer;
};
};
Functions.hpp unter Class Actions
Spoiler anzeigen
class dynprocess {};
Functions.hpp unter Class Cop
Spoiler anzeigen
class breathalyzer {};Functions.hpp unter Class Items
Spoiler anzeigen
class drinkbeer {};
class drinkmoonshine {};
class drinkwhiskey {};core/fn_survival.sqf
sucht nach
//Setup the time-based variables.
_foodTime = time;
_waterTime = time;
_walkDis = 0;
und fügt folgendes darüber ein.
Spoiler anzeigen
[] spawn
{
while {true} do
{
waitUntil {(life_drink > 0)};
while{(life_drink > 0)} do {
if(life_drink > 0.08) then {
"radialBlur" ppEffectEnable true;
"radialBlur" ppEffectAdjust[0.08, 0,0.35,0.37];
"radialblur" ppEffectCommit 3;
sleep 240;
life_drink = life_drink - 0.02;
} else {
"radialBlur" ppEffectEnable true;
"radialBlur" ppEffectAdjust[0.05, 0,0.36,0.38];
"radialBlur" ppEffectCommit 1;
sleep 180;
life_drink = life_drink - 0.02;
};
};
"radialBlur" ppEffectAdjust [0,0,0,0];
"radialblur" ppEffectCommit 5;
"radialblur" ppEffectEnable false;
life_drink = 0;
};
};
core/action/fn_dynprocess.sqf erstellen mit folgendem Inhalt:
Spoiler anzeigen
#include "..\..\script_macros.hpp"
/*
BY OPTIX aka https://native-network.net/forum/thread/3…om/id/ryanthett
THIS HEADER HAS TO BE LEFT UNCHANGED UNDER ALL CIRCUMSTANCES!
CHANGING ANYTHING OF THE SCRIPT DOESN'T MAKE IT YOURS!
*/
private ["_currentPos","_itemsBenoetigtArray","_lizenzBenoetigt","_lizenzKaufkosten","_produkt","_lizenzBoolean","_weiter","_itemHatAnzahlArray","_itemMussAnzahlArray","_indexAktuell","_itemMaximal","_minWert","_indexAktuellEnde","_anzahlMaxVerarbeiten"];
// SONDERFÄLLE PRÜFEN
if (isServer) exitWith {};
if (vehicle player != player) then {hint "Du kannst nicht aus dem Fahrzeug verarbeiten!"};
if (life_is_processing) exitWith {hint "Du verarbeitest bereits etwas!"};
if(vehicle player != player) exitwith {hint format["Du befindest dich in einem Fahrzeug und kannst deshalb nichts verarbeiten!"]};
// AB JETZT VERARBEITET DER SPIELER
life_is_processing = true;
// DEKLARIEREN DER BENÖTIGEN VARIABELN UND AUFRUFEN DER ÜBERGEBENEN PARAMETER
_currentPos = position player;
_itemsBenoetigtArray = [_this,0,[],[[]]] call BIS_fnc_param;
_lizenzBenoetigt = [_this,1,"",[""]] call BIS_fnc_param;
_lizenzKaufkosten = [_this,2,0,[0]] call BIS_fnc_param;
_produkt = [_this,3,[],[[]]] call BIS_fnc_param;
_lizenzBoolean = false;
// LIZENZ PRÜFEN, WENN NICHT VORHANDEN KAUF VERSUCHEN
call compile format ["_lizenzBoolean = %1",_lizenzBenoetigt];
_nah = false;
if (!_lizenzBoolean) then {
if (CASH>=_lizenzKaufkosten) then {
CASH = CASH - _lizenzKaufkosten;
call compile format ["%1 = true",_lizenzBenoetigt];
hint format ["Du hast eine Lizenz fuer %1 Dollar gekauft und kannst nun verarbeiten!",_lizenzKaufkosten];
} else {
hint format ["Leider hast du nicht %1 Dollar dabei, um eine Lizenz zu erwerben!",_lizenzKaufkosten];
if (true) exitWith {life_is_processing = false;5 cutText ["","PLAIN"];_nah=true};
};
};
if (_nah) exitWith {life_is_processing = false;5 cutText ["","PLAIN"]};
// PRÜFEN, OB ITEMS VORHANDEN SIND
_nah = false;
{
_itemsBenoetigtAktuell = _x;
_itemName = _itemsBenoetigtAktuell select 0;
_itemAnzahlBenoetigt = _itemsBenoetigtAktuell select 1;
call compile format ["itemAnzahlHat = life_inv_%1",_itemName];
if (_itemAnzahlBenoetigt>itemAnzahlHat) then {_nah = true};
} forEach _itemsBenoetigtArray;
if (_nah) exitWith {life_is_processing = false;5 cutText ["","PLAIN"];hint "Du hast nicht genuegend Items dabei!"};
// PROGRESSBAR SCHALTEN
disableSerialization;
5 cutRsc ["life_progress","PLAIN"];
_ui = uiNameSpace getVariable "life_progress";
_progress = _ui displayCtrl 38201;
_pgText = _ui displayCtrl 38202;
_pgText ctrlSetText format["%2 (1%1)...","%","Verarbeite..."];
_progress progressSetPosition 0.01;
_cP = 0.01;
_nah=false;
while{true} do
{
sleep 0.3;
_cP = _cP + 0.01;
if (_cp<=1) then { _progress progressSetPosition _cP; };
_pgText ctrlSetText format["%3 (%1%2)...",round(_cP * 100),"%","Verarbeite..."];
if(_cP >= 1) exitWith {};
if(player distance _currentPos > 10) exitWith {hint "Du hast dich zu weit entfernt!";life_is_processing = false;5 cutText ["","PLAIN"];_nah=true};
};
if (_nah) exitWith {life_is_processing = false;5 cutText ["","PLAIN"]};
// VERARBEITUNGSANZAHL BERECHNEN -> MATHE FTW
_itemHatAnzahlArray = [];
{
_itemsBenoetigtAktuell = _x;
_itemName = _itemsBenoetigtAktuell select 0;
call compile format ["_itemHatAnzahlArray = _itemHatAnzahlArray + [life_inv_%1]",_itemName];
} forEach _itemsBenoetigtArray;
_itemMussAnzahlArray = [];
{
_itemsBenoetigtAktuell = _x;
_itemAnzahlBenoetigt = _itemsBenoetigtAktuell select 1;
call compile format ["_itemMussAnzahlArray = _itemMussAnzahlArray + [%1]",_itemAnzahlBenoetigt];
} forEach _itemsBenoetigtArray;
_indexAktuell = -1;
_itemMaximal = [];
{
_indexAktuell = _indexAktuell + 1;
_itemMaximal = _itemMaximal + [(floor ((_itemHatAnzahlArray select _indexAktuell)/(_itemMussAnzahlArray select _indexAktuell)))];
} forEach _itemHatAnzahlArray;
_minWert = _itemMaximal select 0;
_indexAktuellEnde = 0;
{
_indexAktuellEnde = _indexAktuellEnde + 1;
if (_x<_minWert) then {_minWert=_x};
} forEach _itemMaximal;
_anzahlMaxVerarbeiten = _minWert;
// ITEMS ENTZIEHEN
{
_itemsBenoetigtAktuell = _x;
[false,_itemsBenoetigtAktuell select 0,((_itemsBenoetigtAktuell select 1)*_anzahlMaxVerarbeiten)] call life_fnc_handleInv;
} forEach _itemsBenoetigtArray;
// ITEMS ADDEN
{
[true,_x select 0,((_x select 1)*_anzahlMaxVerarbeiten)] call life_fnc_handleInv;
} forEach _produkt;
//_toLog = format ["4|%1 (%2) hat %3 Mal %4 durch verarbeiten erhalten.", name player,getPlayerUID player,_anzahlMaxVerarbeiten,_produkt];
//[[_toLog],"Arma3Log"] call life_fnc_MP;
life_is_processing = false;
5 cutText ["","PLAIN"];
core/cop/fn_breathalyzer.sqf erstellen mit folgendem Inhalt:
Spoiler anzeigen
/*
File: fn_breathalyzer.sqf
Author: midgetgrimm
Description:
Allows Cops breathalyze Player
*/
private["_cop","_drinky"];
_cop = [_this,0,objNull,[objNull]] call BIS_fnc_param;
if(isNull _cop) exitWith {};
_drinky = life_drink;
if(_drinky > 0.07) then {
[[1,format["Alkoholtest: %1 \n\n Promille: %2 \n\n Das ist zuviel! ",name player,[_drinky] call life_fnc_numberText]],"life_fnc_broadcast",_cop,false] spawn life_fnc_MP;
};
else
{};
-
Ich hab das Tutorial bei unserem Server der die 5.0 hat eingefügt. #Funktioniert
Es ist nur ein bisschen Arbeit da man einiges beachten muss.
Sollte Intresse bestehen, das mehrere das nutzen möchten, kann ich es gerne in einem neuem Tutorial oder hier drunter erklären.
Ich habe heute Mittag mal Zeit... Ich hab da grade nur einmal rein geschaut und direkt gedacht "Uff kein Wunder das alle die über der 4.0 sind das nicht hin bekommen". Ich versuch nachher mal mein bestes und schreib ein bisschen dran rum und poste das dann
-
textures\tablet.paa
Anstatt
textures/tablet.paa
-
Auch "Arma Größen" benutzt?
-
Mal ne ganz dumme Frage.... Schießt du auch als Cop aufn Civ? Nur Cops können Standart tazern
-
°°°Endless Network°°°
°°°Wer sind wir?°°°
Wir sind eine Abzweigung von Endless Network Netzwerk mit der Besonderheit das wir uns auf Arma 3 Roleplay spezialisiert haben! Abgesehen davon wir bei uns demnächst noch die Möglichkeit eröffnen "Missonsserver" für Clans oder etc. von unserer Seite aus zu hosten. Dies wird aber auf einem eignen Ts³ Server statt finden da wir auf dem Roleplay Server uns komplett auf Roleplay fixieren möchten!
°°°Unser Motto°°°
Beiss nicht die Hand, die dich füttert!
Da wir ohne die Community ein Haufen nichts wären, agieren wir so gut wie möglich (98%) mit der Community. Ein gutes Beispiel dafür wären neue Fahrzeuge. Wir fragen die Community sehr oft bei Umfragen ab und haben auch immer ein offenes Ohr. Dazu kommt, dass ALLE "Hochrangigen" auf unserem Server kaum in ihren eignen Channeln sitzen. Wir möchten wissen wie es der Community bei uns gefällt und ob diese Fragen haben. Quasi sind die Ränge nur da, um bei wichtigen Situationen zeigen zu können, wer ein bisschen mehr zu sagen hat. Aber im Endeffekt sind wir alle wie der Rest der Community auch.
°°°Der Server°°°
Unser Server hat diese Leistungen:
Arbeitsspeicher: 64GB
Prozessor: Intel® Core™ i7 (4 Kerne; 8 Threads; 3 GHz)
Speicherplatz: 2 x 2000 GB Speicher SSD
Anbindung: 1000 Mbit/s-Port (Da muss ich selber zu sagen glaube ich stimmt manchmal nicht bei dem was ich am Speed beim Download habe
)
Rechenzentrum: Frankfurt (DE)
Das ganze was oben steht bedeutet im Großen und Ganzen das unser Server mit 10 Spielern auf 9% CPU verbraucht und 13% Arbeitsspeicher (Ohne Abzüge anderer Programme) flüssig und ohne Lags läuft. (Lags wenn sie auftreten sind nur bei dem Client... Habe Erfahrungen... Ich sage nur 4GB DDR3
aber mit vollen 30 FPS auf unserem Server )
°°°Wie kann man bei uns spielen?°°°
Bei uns spielen zu können ist das einfachste auf der Welt. In Grunde ist es nur einmal bei uns im Forum vorbei zu schauen, sich zu Registrieren und das Forum mit dem Teamspeak Client zu verknüpfen. Falls noch Fragen bestehen kann man sich unser FAQ durchlesen oder direkt im Teamspeak Support nachfragen.
°°°History of Endless Network°°°
Nachdem wir einen sehr holprigen Start auf Altis hatten sind wir recht schnell auf SeaSide County gewechselt. Dort waren wir dann seit letztem Jahr August bis zu Weihnachten (26.07.2018-25.12.2018) und dann wurde uns klar, dass wir auf die Modifizierte Version von Jackson County wechseln. Da sind wir jetzt auch schon Bugfrei angekommen seit dem 10.01.2019. Da wir bald einen Terrain Mapper bekommen werden wird die Stark Modifizierte Jackson County Map nochmals stärker modifiziert und komplett umgebaut. Nun haben wir sie auch schon teils modifiziert. Aber immerhin möchte ich sagen dürfen, wir sind einzigartig und das geht ja wohl nur mit einer komplett eigenen Map! (Bzw. einer stark modifizierten)
°°°Fraktionen & Firmen°°°
Unsere Fraktionen sind:
➥ JCPD (Jackson County Police Department)
➥ Dazu zählen auch FBI,State und S.W.A.T
➥ JCFD (Jackson County Fire Department)
➥ JCJD (Jackson County Justic Department)
Firmen die sonstige Sachen übernehmen:
➥ BlueIndustries Tow&Repair Services (Abschleppen und Reparieren da die Community keinen "ADAC" gewünscht hatte)
➥ BlueIndustries Autohaus (Unter Führung von Bluetype)
➥ BlueIndustries Tuning (Unter der Führung von einem Mitarbeiter)
➥ BlueIndustries Import&Export (Ist eigentlich nur um Anträge für Import und Export zu erstellen (Ingame wohlgemerkt))
➥ Griffins Transports (Taxi Firma)
Da der Name BlueIndustries sehr oft nun gefallen ist muss man dazu sagen... JA das Autohaus gehört Bluetype (Mittlerweile nicht mehr. Firmen haben ihren Namen jedoch behalten) aber alles andere sind alleinige Zusätze der Firma die unter einem Namen laufen (Nennt sich Tochterfirma mit dem gleichen Namen
).
°°°Team°°°»» Management ««
Serverleitung & Inhaber
➥ Bluetype
Projektleitung
➥ John OConner
Administration
➥ GermanfighterLP
Community Manager
➥ Franz Xaver
Social Media Manager
➥ Noda
Event Manager
➥ Zurzeit unbesetzt (Wird gemacht von Bluetype)
»» Development ««
➥ Bluetype
➥ Brian Griffin
➥ Kalle
➥ Wird aber auch noch Nachwuchs gesucht
°°°Features°°
- Crafting System
- ATM Hacksystem
- Bankraubsystem
- PKW sowie LKW Prüfung
- Tankstellenraubsystem
- Neue und bessere Taser Animationen
- Cop Ansagensystem
- Outlog und Intro
- Custom Hintsystem
- Dynamischer Markt
- Platzierbare Objekte (Bald auch für Zivs)
- Levelsystem
- Tuning System
- Sperrzonensystem
- Ace System erweitert mit einigen Interaktionen
- Ausweissystem
- Leitstellen System
- Aktensystem Ingame
- Handysystem
- Illegale Marker für Cops und Medics entfernt
- Anbausystem
- Straßenmeistereisystem
- Mobile Blitzer
- Abschleppsystem
- Nummertrackingsystem
- Steuersystem
- Privatbankensystem
- Eigens Feuerscript
- Eigenes Gesetzbuch und das ist nicht Standart
- Schließfachsystem
- Lotteriesystem
- Jammerscript
- Farmboost (Aber mit selber auserwählen Prozenten (Alles möglich von 100-99999999%)
- Fahrzeuge nur mit Schlüssel Startbar
- Und eine Menge an anderen Dingen die bald kommt (Dev Blog im Forum wird alles dokumentiert)
°°°Schlusswort°°°
Ich hoffe die Vorstellung hat euch Gefallen und man sieht den ein oder anderen von euch mal bei uns
. Abgesehen davon werde ich dann noch mal unsere Daten weitergeben:
Website und Ts³:
Social Media:
-
-
-
No such Ip.... Ja bitte einmal alles was du eingefügt hast wieder entfernen weil den Fehler findest du nie... Ich hatte bisher von den Teilen eventuell von 100 vielleicht 1 mal den Fehler gefunden
-
Verlink mal das Tutorial... Auf ne neue Version zu Updaten ist keine Kunst
-
Battleye ist keine Pflicht früher hatte ich das immer aus
Public Server liste find ich keinen Servet ohne Battleye
-
Log bitte (Client sowie Server)
-
Also, BattleEye ist aus, geht aber trotzdem nicht.
Es MUSS An sein....
-
auch das wird so nicht wirklich gut funktionieren... jedesmal wenn ein spieler joined ist die tresortür für ihn dann zu und für andere kann sie womöglich offen sein...
das muss serverseitig geregelt werden und nicht über die mission.sqm
Wenn du das über die Mission.sqm machst ist die Türe bei jedem zu... Und es wird dann auf die Bank ein Animate gesetzt und ich glaube Arma ist so schlau wenn ne Tür auf ist den Wert jedem Spieler zu überreichen... Ist zwar gut geimeint von dir aber auch guter Müll
. (Ist getestet worden und ich glaube wenn es 17 Testen und die Türe bei jedem auf ODER zu ist, ist das wohl von Stiftungswarentest getestet
)
-
Abgesehen von dem was hier jeder sagt... Hast du Battleye an? Sonst mag Arma das garnicht
-
Überprüfe nochmals die Datei in der die Autos ausgeparkt werden... Da kann sich ein Fehler in einer Zeile oder etc eingebaut haben...
-
Hat sich dann. Ich danke script /Vincent/dev/null für seine Aufmerksamkeit und auch noch nen paar anderen aber habe dann jetzt eine bleibe Gefunden
-