-
Posts
330 -
Joined
-
Last visited
-
Days Won
4
Content Type
Profiles
Forums
Articles
Posts posted by Asian Kid
-
-
Here you need to change the kill messages a lot
was it a debug monitor? -
You need to define what Graves_Light is though, since it can be the skin itself or the ai or whatever afaik.
how would I do that
-
Need this skin to have this action
Its an AI unit
Skin is Graves_Light added the unit through the server pbo_unit_224 = objNull; if (true) then { _this = createAgent ["Graves_Light", [7685.6807, 1445.8789, 0.42305249], [], 0, "CAN_COLLIDE"]; _unit_223 = _this; _this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0; "; _this setUnitAbility 0.60000002; _this allowDammage fals
what is wrong
_hascode = _cursorTarget isKindOf "Graves_Light"; if (_hascode && _canDo) then { if (s_player_code < 0) then { Cooldown = 0; s_player_code = player addAction ["Ask: Whats the code?", "bunker\ask.sqf",_cursorTarget, 1, true, true, "", ""]; } } else { player removeAction s_player_code; s_player_code = -1; };
-
- extract class playerStatusGUI from config.cpp (dayz_code.pbo) and make a .hpp file
- rename the classname
- edit in it, what you want...
- include the file in description.ext
- change the methode/function calls in ui_changeDisplay.sqf (dayz_code\compiles\..) & playermonitor.fsm (dayz_code\system\..) to fit with your new classname!
now you have all u need to add your border-definitions (border-graphics are not included in DZE! - try to get them from other dayz-mod's or make your own)
hint - class ControlsBackground & class Controls
to show your new classes u need to extend player_updateGui.sqf like that...
private["ctrlBlahBorder","_blahText"]; //declare your used variables
_ctrlBlahBorder = _display displayCtrl 1212; //<< your displayelement definied in your playerStatusGUI classes
_ctrlBlahBorder ctrlSetTextColor [1,1,1,1]; // border white no alphablending (RGBA)
_ctrlBlahBorder ctrlShow true; // put it on the screen
_blahText = "\z\addons\dayz_code\gui\status_blood_border_CA.paa";
_ctrlBlahBorderctrlSetText _blahText; //update/change with text/gfx
maybe it helps - cheers
btw. the class playerStatusGUI is a good place to add own graphics like serverlogo, weight-gfx etc. pp :)
can you send your sqf file with out the logo plz
-
OK seems all to work now very strange.
If you spawn a SUV it will not work until you relog
-
Part III
WAI part
Open your customSpawns.sqf and add this:
//Custom Spawns file/////////////////////////////// //Custom group spawns Eg/////////////////////////// ////////////////////////////////////////Camp Alpha////////////////////////////////////////////////////////////////////// [[7888.4951,1254.6591,-1.1920929e-006], //position 4, //Number Of units 1, //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array. "Random", //Primary gun set number. "Random" for random weapon set. 4, //Number of magazines "", //Backpack "" for random or classname here. "Bandit2_DZ", //Skin "" for random or classname here. "Random" //Gearset number. "Random" for random gear set. ] call spawn_group; [[8015.0356,1259.0009,-8.8214874e-006], //position 4, //Number Of units 1, //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array. "Random", //Primary gun set number. "Random" for random weapon set. 4, //Number of magazines "", //Backpack "" for random or classname here. "Bandit2_DZ", //Skin "" for random or classname here. "Random" //Gearset number. "Random" for random gear set. ] call spawn_group; [[8017.3359,1383.3506,3.695488e-005], //position 4, //Number Of units 1, //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array. "Random", //Primary gun set number. "Random" for random weapon set. 4, //Number of magazines "", //Backpack "" for random or classname here. "Bandit2_DZ", //Skin "" for random or classname here. "Random" //Gearset number. "Random" for random gear set. ] call spawn_group; [[7938.4253,1430.2399,5.531311e-005], //position 4, //Number Of units 1, //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array. "Random", //Primary gun set number. "Random" for random weapon set. 4, //Number of magazines "", //Backpack "" for random or classname here. "Bandit2_DZ", //Skin "" for random or classname here. "Random" //Gearset number. "Random" for random gear set. ] call spawn_group; [[7914.8315,1299.6361,-8.8214874e-006], //position 4, //Number Of units 1, //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array. "Random", //Primary gun set number. "Random" for random weapon set. 4, //Number of magazines "", //Backpack "" for random or classname here. "Bandit2_DZ", //Skin "" for random or classname here. "Random" //Gearset number. "Random" for random gear set. ] call spawn_group; [[7852.8882,1415.3303,-1.6450882e-005], //position 4, //Number Of units 1, //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array. "Random", //Primary gun set number. "Random" for random weapon set. 4, //Number of magazines "", //Backpack "" for random or classname here. "Bandit2_DZ", //Skin "" for random or classname here. "Random" //Gearset number. "Random" for random gear set. ] call spawn_group; [[7824.3975,1485.512,-0.00016903877], //position 4, //Number Of units 1, //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array. "Random", //Primary gun set number. "Random" for random weapon set. 4, //Number of magazines "", //Backpack "" for random or classname here. "Bandit2_DZ", //Skin "" for random or classname here. "Random" //Gearset number. "Random" for random gear set. ] call spawn_group; [[7690.0181,1434.6074,-1.6450882e-005], //position 4, //Number Of units 1, //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array. "Random", //Primary gun set number. "Random" for random weapon set. 4, //Number of magazines "", //Backpack "" for random or classname here. "Bandit2_DZ", //Skin "" for random or classname here. "Random" //Gearset number. "Random" for random gear set. ] call spawn_group; [[7695.4829,1488.0902,-4.8160553e-005], //position 4, //Number Of units 1, //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array. "Random", //Primary gun set number. "Random" for random weapon set. 4, //Number of magazines "", //Backpack "" for random or classname here. "Bandit2_DZ", //Skin "" for random or classname here. "Random" //Gearset number. "Random" for random gear set. ] call spawn_group; [[7737.313,1435.0281,-1.001358e-005], //position 4, //Number Of units 1, //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array. "Random", //Primary gun set number. "Random" for random weapon set. 4, //Number of magazines "", //Backpack "" for random or classname here. "Bandit2_DZ", //Skin "" for random or classname here. "Random" //Gearset number. "Random" for random gear set. ] call spawn_group; [[7818.6064,1380.5696,2.1696091e-005], //position 4, //Number Of units 1, //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array. "Random", //Primary gun set number. "Random" for random weapon set. 4, //Number of magazines "", //Backpack "" for random or classname here. "Bandit2_DZ", //Skin "" for random or classname here. "Random" //Gearset number. "Random" for random gear set. ] call spawn_group; [[7763.9448,1295.1041,-2.4080276e-005], //position 4, //Number Of units 1, //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array. "Random", //Primary gun set number. "Random" for random weapon set. 4, //Number of magazines "", //Backpack "" for random or classname here. "Bandit2_DZ", //Skin "" for random or classname here. "Random" //Gearset number. "Random" for random gear set. ] call spawn_group; [[7767.2031,1223.0396,-0.00019168854], //position 4, //Number Of units 1, //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array. "Random", //Primary gun set number. "Random" for random weapon set. 4, //Number of magazines "", //Backpack "" for random or classname here. "Bandit2_DZ", //Skin "" for random or classname here. "Random" //Gearset number. "Random" for random gear set. ] call spawn_group; [[7857.9019,1317.1772,2.1696091e-005], //position 4, //Number Of units 1, //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array. "Random", //Primary gun set number. "Random" for random weapon set. 4, //Number of magazines "", //Backpack "" for random or classname here. "Bandit2_DZ", //Skin "" for random or classname here. "Random" //Gearset number. "Random" for random gear set. ] call spawn_group; [[7921.5293,1271.0974,-1.6450882e-005], //position 4, //Number Of units 1, //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array. "Random", //Primary gun set number. "Random" for random weapon set. 4, //Number of magazines "", //Backpack "" for random or classname here. "Bandit2_DZ", //Skin "" for random or classname here. "Random" //Gearset number. "Random" for random gear set. ] call spawn_group; /////////////////////////////////////////////////CampAlpha//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////Hélicoptère/////////////////////////////////////////////////////////////////////// [[8066.813,1202.6678,8.3684921e-005], //Position to patrol [8066.813,1202.6678,8.3684921e-005], // Position to spawn chopper at 1000, //Radius of patrol 5, //Number of waypoints to give "UH1H_DZ", //Classname of vehicle (make sure it has driver and two gunners) 1 //Skill level of units ] spawn heli_patrol; [[7665.0947,1464.7588,-9.059906e-006], //Position to patrol [7665.0947,1464.7588,-9.059906e-006], // Position to spawn chopper at 1000, //Radius of patrol 5, //Number of waypoints to give "UH1H_DZ", //Classname of vehicle (make sure it has driver and two gunners) 1 //Skill level of units ] spawn heli_patrol; /////////////////////////////////////////////Hélicoptere///////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////Parachutiste/////////////////////////////////////////////////// [[7904.5166,1489.5884,5.5551529e-005], //Position that units will be dropped by [0,0,0], //Starting position of the heli 100, //Radius from drop position a player has to be to spawn chopper "UH1H_DZ", //Classname of chopper (Make sure it has 2 gunner seats!) 9, //Number of units to be para dropped 1, //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array. "Random", //Primary gun set number. "Random" for random weapon set. 4, //Number of magazines "", //Backpack "" for random or classname here. "Bandit2_DZ", //Skin "" for random or classname here. "Random", //Gearset number. "Random" for random gear set. True //True: Heli will stay at position and fight. False: Heli will leave if not under fire. ] spawn heli_para; [[7927.4556,1269.7035,6.4373016e-006], //Position that units will be dropped by [0,0,0], //Starting position of the heli 200, //Radius from drop position a player has to be to spawn chopper "UH1H_DZ", //Classname of chopper (Make sure it has 2 gunner seats!) 9, //Number of units to be para dropped 1, //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array. "Random", //Primary gun set number. "Random" for random weapon set. 4, //Number of magazines "", //Backpack "" for random or classname here. "Bandit2_DZ", //Skin "" for random or classname here. "Random", //Gearset number. "Random" for random gear set. True //True: Heli will stay at position and fight. False: Heli will leave if not under fire. ] spawn heli_para; [[7934.0581,1268.6753,-1.1920929e-006], //Position that units will be dropped by [0,0,0], //Starting position of the heli 300, //Radius from drop position a player has to be to spawn chopper "UH1H_DZ", //Classname of chopper (Make sure it has 2 gunner seats!) 9, //Number of units to be para dropped 1, //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array. "Random", //Primary gun set number. "Random" for random weapon set. 4, //Number of magazines "", //Backpack "" for random or classname here. "Bandit2_DZ", //Skin "" for random or classname here. "Random", //Gearset number. "Random" for random gear set. True //True: Heli will stay at position and fight. False: Heli will leave if not under fire. ] spawn heli_para; [[7792.8071,1423.6724,-2.9087067e-005], //Position that units will be dropped by [0,0,0], //Starting position of the heli 400, //Radius from drop position a player has to be to spawn chopper "UH1H_DZ", //Classname of chopper (Make sure it has 2 gunner seats!) 9, //Number of units to be para dropped 1, //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array. "Random", //Primary gun set number. "Random" for random weapon set. 4, //Number of magazines "", //Backpack "" for random or classname here. "Bandit2_DZ", //Skin "" for random or classname here. "Random", //Gearset number. "Random" for random gear set. True //True: Heli will stay at position and fight. False: Heli will leave if not under fire. ] spawn heli_para; /////////////////////////////////////////////////////Parachutiste///////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Save your file
Pack your server pbo and update your server.
Restart.
Let's rollll
PS:
Now you v got the Alpha Zeta bandit camp defended by:
4X12 AI patrol land
2X 2 AI UH1H patrol
4X 9 AI paratroop
The bunker with briefcase ready to go
And your trader ready to sell/buy
What AI system is this?
-
Anyone know how to add a mod to the server and have people download it in the mission.pbo?
-
Anyone have this working with 1.0.4.2?
works fine
-
Can you added so when a player is near the vehicle in the mission they have a choice of saving it or not?
-
How can I delete old heli pads without the player who made it?
-
-
Great ;) Have not tested it yet, but if i wanted to have it on every login and not on respawn only would it be enough to run it in the playermonitor section like this
_nul execVM "loginCamera.sqf";
And maybe as start condition not AnimalCheck but this : waitUntil {!isNil ("PVDZE_plr_LoginRecord")};
Would that work? :D
Did you try the new sqf?
with the camera I can't test is so let me know plz
want it to show every time do this
[] execVM "spawn.sqf";
-
Not sure if this will work it should tho
private [ "_Message","_Time","_Timec","_Ending","_TimeL","_camera","_distance","_Morning","_Afternoon"]; /* Start up menu made my Asian Kid plz credit me when needed Camera code based off lport3 *********** CONFIG START *********** (%1 is the players name don't change) */ _Message = format["Change me %1 ",format["%1", name player]];//Welcome message after the menu pops up _Ending = format["Change me %1 ",format["%1", name player]];//end message after god mode is off _Time = 20; //Time before the welcome message pop up, and the time it takes before god mode is off _TimeL = 6; //Time between the welcome message to the end message _Timec = 4; //Time before the info board show up after the camera is done or when the info board shows up after the player is spawned in servername = "Change me"; //You server name mess = true; //Show message when god mode is off //*********CAMERA CONNFIG********** Camera = True; //Want the camera to show? _distance = 40; //How far the camera starts off showCinemaBorder true; //Want black boarders NVGS = false; //Your server have night time? //CHANGE THE XX OR IT WILL NOT WORK!!!! //Time for the nvgs on the camera _Afternoon = 17; //what time you want nvgs to turn on (should be around 16 to 18) _Morning = 7; //What time you want nvgs off (Should be around 6 to 8 _Day = daytime; //Don't touch /* *********** CONFIG END *********** */ //God mode Start waitUntil {!isNil "dayz_animalCheck"}; player_zombieCheck = {}; player_fired = {}; fnc_usec_damageHandler = {}; thePlayer removeAllEventHandlers "handleDamage"; thePlayer addEventHandler ["handleDamage", {false}]; thePlayer allowDamage false; //CAMERA START if(Camera) then { //If NVGS is true if(NVGS) then { while { ( _Day < _Afternoon ) and ( _Day < _Morning ) } do { camUseNVG True; }; while { ( _Day > _Morning ) and ( _Day < _Afternoon ) } do { camUseNVG false; }; }; _camera = "camera" camCreate [(position player select 0)-2, position player select 1,(position player select 2)+_camDistance]; _camera cameraEffect ["internal","back"]; _camera camSetFOV 2.000; _camera camCommit 0; waitUntil {camCommitted _camera}; _camera camSetTarget vehicle player; _camera camSetRelPos [0,0,2]; _camera camCommit 8; waitUntil {camCommitted _camera}; _camera cameraEffect ["terminate","back"]; camDestroy _camera; }; //CAMERA END sleep _Timec; /* YOU CAN EDIT HERE Make sure to edit in the >xxxx< */ "Dayz Epoch" hintC parseText format [" <t size='1.25' shadow='1'align='left' color='#ff8800'>Welcome to %1</t><br/> <t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/> <t size='1.1' shadow='1'align='left' color='#FFFFFF'>xxxxxxxxxxxxxxxxxxxxxxxxxx</t><br/> <t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/> <t size='1.1' shadow='1'align='left' color='#FFFFFF'>xxxxxxxxxxxxxxxxxxxxxxxxxx</t><br/> <t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/> <t size='1.1' shadow='1'align='left' color='#FFFFFF'>xxxxxxxxxxxxxxxxxxxxxxxxxx</t><br/> <t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/> <t size='1.1' shadow='1'align='left' color='#FFFFFF'>xxxxxxxxxxxxxxxxxxxxxxxxxx</t><br/> <t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/> <t size='1.1' shadow='1'align='left' color='#FFFFFF'>xxxxxxxxxxxxxxxxxxxxxxxxxx</t><br/> <t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/> <t size='1.1' shadow='1'align='left' color='#FFFFFF'>xxxxxxxxxxxxxxxxxxxxxxxxxx</t><br/> <t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/> <t size='1.1' shadow='1'align='left' color='#FFFFFF'>xxxxxxxxxxxxxxxxxxxxxxxxxx</t><br/> <t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/> <t size='1.1' shadow='1'align='left' color='#FFFFFF'>www.dayzfallendead.tk/</t><br/>", (servername)]; sleep _Time; cutText [_Message, "PLAIN DOWN"]; if ( mess ) then { systemChat ( "God mode off" ); }; player_zombieCheck = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_zombieCheck.sqf"; player_fired = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_fired.sqf"; fnc_usec_damageHandler = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_damageHandler.sqf"; thePlayer addEventHandler ["handleDamage", {true}]; thePlayer removeAllEventHandlers "handleDamage"; thePlayer allowDamage true; sleep _TimeL; cutText [_Ending, "PLAIN DOWN"];
-
Don't mess with it
The music last how long it actually is
You guys want me to add a camera intro?
Can be turned off or on
-
Try the not working option
-
should be in here blowout_client.sqf
the timers are called sleep xx;
-
I ended up finding a server with this HUD and tried adding it to my test server with no luck.
Getting this error: ErrorMessage: File mpmissions\__cur_mp.Chernarus\addons\playerhud\dialog\hud.hpp, line 9: /RscTitles/WPHUD/controlsBackground.WPHUD_Vehicle: Undefined base class 'w_RscText'
Send me the files at
I see if i can get it to work
-
Everything is done
[Added] The end time to the donfig
[Fix] The player name not showing up
[Added] Tut on fixing the start up
-
Well no, Sublime says it isn't commented out :P http://gyazo.com/8c29179e4df75777958d4919e16a4bb5
Is my bad updating soon adding something new
-
In your spawn.sqf: */ and this line
this should mess all the scirpt no? it isn't commented out -
Updated the spawn.sqf
Everything should work now
-
-
Could you pls tell me where to adjust the time of the effects?
READ
ns_blow_delaymod = 0.74; //blowout delay
that is set to around 74 mins
-
How to add music
Add this
playsound "intromusic";
After//God mode Start
Looks like//God mode Start playsound "intromusic";
Now add this into the description.extunder
class RscProgressNotFreeze { idc = -1; type = 45; style = 0; x = 0.022059; y = 0.911772; w = 0.029412; h = 0.039216; texture = "#(argb,8,8,3)color(0,0,0,0)"; };
add thisclass CfgSounds { sounds[] = { intromusic }; class intromusic { name="intromusic"; sound[]={intromusic.ogg,0.9,1}; titles[] = {}; }; };
Sound must me called intromusic.ogg
Sound file must be an ogg
Check if corpse is AI/Bot?
in Scripting
Posted
How would I add an option to an AI?
like the trader menus but its only for a scroll action
Skin is Graves_Light
Action can only be used by activated by looking at him