-
Content Count
61 -
Joined
-
Last visited
-
Medals
Everything posted by bombajack
-
Ok..i tried lots of combination where put code in initPlayerLocal.....still not working menu on roll mouse. Any idea why? :) Damnn... Here is my initPlayerLocal.sqf: //Executed locally when player joins mission (includes both mission start and JIP). See initialization order for details about when the script is exactly executed. //[player:Object, didJIP:Boolean] //FirePlace [] execVM "fire.sqf"; player addEventHandler ["Respawn", { deleteVehicle ((_this select 1) getVariable ['mycampfire',objNull]); [] execVM "fire.sqf"; }]; waitUntil { !isNil {player} }; waitUntil { player == player }; params ["_player","_jip"]; _name = name _player; if (_name == "headlessclient") exitwith {}; if (_name == "HCSlot") exitwith {}; #include "Code\Shared_Arrays.hpp" swing = false; titleText[format ["%1 ","-= " + missionName + " =-\n\nBY\n-=Bombajack=-"], "BLACK FADED" , 100]; sleep 1; //------------------------------------------------------------------------------------------------- _player addeventhandler ["HandleDamage",{ params ["_man","_hitSelection","_damage","_shooter","_projectile","_hitPartIndex","_instigator","_hitPoint"]; _my_grp = group _man; _his_grp = group _instigator; _newdamage = ((getAllHitPointsDamage _man) select 2); if (_my_grp == _his_grp) then { //_man setDamage [0, false]; _man setDamage 0; _lastdamage = _man getVariable ["MY_DAMAGE",[0,0,0,0,0,0,0,0,0,0,0,0]]; _z = 0; {_man setHitIndex [_z, _x];_z = _z + 1} foreach _lastdamage; _newdamage = ((getAllHitPointsDamage _man) select 2); }; _man setVariable ["MY_DAMAGE",_newdamage,false]; } ]; [_player] execVM "IniDBi\Player_Start.sqf"; keyDown_EHId = ["",0,false,false,false]; [] execVM "briefing.sqf"; waituntil {!isnull (finddisplay 46)}; //--------------------------------------------------------------- (findDisplay 46) displayAddEventHandler ["KeyDown",{ keyDown_EHId = _this; if (vehicle player == player) then { if ((_this select 1) == 59) then { if (((player distance cursorTarget) < 5) && (leader cursorTarget == player)) then {player action ["Gear", cursorTarget]}; }; }; }]; //----------------------------------------------- (findDisplay 46) displayAddEventHandler ["KeyUp", "keyDown_EHId = [(keyDown_EHId select 0),(keyDown_EHId select 1),false,false,false]"]; //----------------------------------------------- (findDisplay 46)displayAddEventHandler["MouseButtonDown",{ _anim = ["AwopPercMstpSgthWnonDnon_start","AwopPercMstpSgthWnonDnon_throw","AwopPercMstpSgthWnonDnon_end"]; if((animationState player in _anim) or (stance player == "PRONE") or (currentWeapon player != "")) exitWith {}; MouseDown_EHId = _this; if (!(dialog) && !(swing)) then { if (str(MouseDown_EHId) == "[Display #46,0,0.5,0.5,false,false,false]") then { _wep = if !(isnil {player getVariable "MELEE"}) then [{player getVariable "MELEE"},{""}]; _delay = 2.5; switch (_wep) do { case "zk_axe": { [player] spawn chopfAxe; }; case "zk_shovel": { [player] spawn chopSvl; }; case "zk_hammer": { [player] spawn chopHam; }; case "zk_knife": { [player] spawn stabKnf;_delay = 1; }; case "zk_wrench": { [player] spawn chopWrn; }; default { swing = false; }; }; _delay spawn {swing = true;sleep _this;swing = false;}; }; }; }]; //--------------------------------------------------------------------------- //[hud, info, radar, compass, direction, menu, group, cursors, squadRadar] showHUD [true,true,true,true,true,true,true,true,false]; //--------------------------------------------------------------------------- player addEventHandler ["InventoryOpened", { _islocked = 0; _tents = nearestObjects [player,["Land_TentA_F","NMIB_Plot_Workbench"], 4]; if (count _tents > 0) then { _uid = getPlayerUID player; _tent = (_tents select 0); _tent_uid = if !(isnil {_tent getVariable "OWNER"}) then [{_tent getVariable "OWNER"},{[]}]; if (_uid != _tent_uid) then {_islocked = 1}; if (_islocked == 1) then { {if ((_x select 0) == _tent_uid) exitwith {_islocked = 0}} foreach (player getvariable "FRIENDS"); }; }; if (locked (_this select 1) == 2) then { _islocked = 1; }; if (locked (_this select 1) == 3) then { _islocked = 0; }; if (_islocked == 1) then { _inv = (nearestObjects [player, ["GroundWeaponHolder","WeaponHolderSimulated","WeaponHolder"], 3]); if (count _inv > 0) then {deletevehicle (_inv select 0)}; _VEH = (_this select 1); _vehname = if (!isnil {(_VEH getVariable "WHOSVEH")}) then [{(_VEH getVariable "WHOSVEH")},{""}]; if ((name player) != _vehname) then { vehicleorders_PD = [_VEH,"alarm",[]]; if !(isserver) then {publicVariableServer "vehicleorders_PD";}; }; }; }]; //-------------------------------------------------------------------------------------------- [] execVM "Code\Missions_Arrays\No_Fuel.sqf"; //////////////////////////////////////////////////// ///////////////////////////////////////////////////// //////////////////////////////////////////////////////// //Color waitUntil {alive player}; [] execVM "GF_ColorCorrections\GF_ColorCorrections.sqf"; //Breath [] execVM "GF_Breath\GF_Breath.sqf"; #include "AL_strigoi\functions.hpp" /////////////////////////////////////////////////////////////////////////// //////////////////////// Blowout /////////////////////////////////////////////////////////////////////////// _bul = [] execVM "Addons\Blowout\module\blowout_client.sqf";
-
I use your code what you represent here..
-
So i try it today...fire cant be placed..still write "You need matches and wood..." but i have it in inventory...any idea whats wrong?
-
Switch from 3rd view to 1st view in combat
bombajack posted a topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
Hello. I need help with this code...need change (ExileClientPlayerIsInCombat) for arma III command for switch 3rd to 1st in combat mode (if you fire or if fire on you) MP compatible. Thank you. //////////////////////// if (!isDedicated) then { waitUntil {!isNull (findDisplay 46)}; if ((difficultyOption "thirdPersonView")==1) then { while {true} do { waitUntil {cameraView == "EXTERNAL" || cameraView == "GROUP"}; if (ExileClientPlayerIsInCombat) then { player switchCamera "INTERNAL"; }; sleep 2; }; }; }; -
Hello. Im using map Chernarus2035.There is too much garbage on roads and i need delete it. Is it possible with some script or in editor?I saw tutorial how delete object from map in editor but i need all same on map. Thank you.
-
And will be visible my fire for others players?
-
Hello. This is better called from init or initServer? [] execVM "fireplace.sqf"; player addEventHandler ["Respawn", { deleteVehicle ((_this select 1) getVariable ['mycampfire',objNull]); [] execVM "fireplace.sqf"; }];
-
[Release] Virtual Arsenal Shop System
bombajack replied to 7erra's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Working it perfect! Thank you -
Nice!Thx!Ill try tomorrow on server
-
Items are : zk_matches , zk_wood And yes,remove it from inv. Thx!
-
Hi...nice script. Have question. 1.Is possible implement some items what you need for place fire? Ex.: If you have matches and wood then you can place fire. 2.is it MP compatible? Thank you.
-
Server cant start-you cannot play/edit this mission
bombajack posted a topic in ARMA 3 - SERVERS & ADMINISTRATION
Hello. I used on my server 4 mods+1 server mod.I tried add Zombies And Demons mod,add some modul in editor and start server.But server have this error and cant read mission. Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted. ryanzombiesfunctions My start parameters are: -mod=@mod1;@mod2;mod3;mod4;@zombies -servermod=@inidb2 ... Can someone help me with this? -
Server cant start-you cannot play/edit this mission
bombajack replied to bombajack's topic in ARMA 3 - SERVERS & ADMINISTRATION
ofcourse :) -
Server cant start-you cannot play/edit this mission
bombajack replied to bombajack's topic in ARMA 3 - SERVERS & ADMINISTRATION
Win server...mods are:zk_items,zk_ibuild,Chernarus2035,CUP terrains core....servermod Is inidb2 -
[Release] Virtual Arsenal Shop System
bombajack replied to 7erra's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thank you.I will test and give feedback..? -
[Release] Virtual Arsenal Shop System
bombajack replied to 7erra's topic in ARMA 3 - MISSION EDITING & SCRIPTING
How? For example:i have money from mod named zk_money.I rename TER_money to ZK_money.If i find money in loot have it in inventory.Ok.But if i open VAS my cash in shop is 0. -
[Release] Virtual Arsenal Shop System
bombajack replied to 7erra's topic in ARMA 3 - MISSION EDITING & SCRIPTING
"TER_money" variable is item? What happened if i add to loot list? -
[Release] Virtual Arsenal Shop System
bombajack replied to 7erra's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Yes..Its not Ravage but yes,Its item from ZKitems mod.Classname named zk_money. -
[Release] Virtual Arsenal Shop System
bombajack replied to 7erra's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi, I change in config.cfg money variable from another mod,but if i find some money in loot,nothing happend in my Arsenal wallet. Any idea what i do Wrong? -
[RELEASE] HALs Store v1.5
bombajack replied to HallyG's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi all, How can i add coins (money) for loot?For buying in this system? Thank you. -
ZKs -=LOST=- MP Survival Mission (Now With Base Building)
bombajack replied to zonekiller's topic in ARMA 3 - USER MISSIONS
Hey Zonerkiller! I have question: how can i port LOST MP mission to Chernarus Redux?I tried copy all from editor,save it and copy all scripts to mission.But game stuck in loading..:/ Can you help how can i port..its hard? PS:I have database and all alright..(LOST Altis work fine) THX.- 377 replies
-
- survival
- multiplayer
-
(and 1 more)
Tagged with:
-
[RELEASE] STALKER-like anomalies
bombajack replied to diwako's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@diwako I have idea..:) how can i do randomly spawn anomaly around player?Defined radius and type of anomaly :) Is it possible? -
[RELEASE] STALKER-like anomalies
bombajack replied to diwako's topic in ARMA 3 - MISSION EDITING & SCRIPTING
THANKS diwako..im blind noob :D i seen class Functions same like class Cfgfunctions :D -
[RELEASE] STALKER-like anomalies
bombajack replied to diwako's topic in ARMA 3 - MISSION EDITING & SCRIPTING
OMG..i see it! :DD -
[RELEASE] STALKER-like anomalies
bombajack replied to diwako's topic in ARMA 3 - MISSION EDITING & SCRIPTING
..or does it have to be special class?