-
Content Count
81 -
Joined
-
Last visited
-
Medals
Everything posted by ramon_dexter
-
Oh boy, this is just sweet 🙂 Can't wait to test this, sign me up as a tester! 😄
-
How to draw cutRsc graphics UNDER game UI?
ramon_dexter replied to ramon_dexter's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello George, thanks for the quick reply. Will definitely check that! edit: Yeah, you mod works exactly like the mine. I know how to draw graphics with cutRsc. But I need to know if it's even possible to draw UNDER game UI. Not over it. -
How to draw cutRsc graphics UNDER game UI?
ramon_dexter posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
OK, the title says it all. How do I make the cutRsc draw under the game UI (like status display, GPS display, actionWheel menu, etc.)? I have made graphics to be used as helmer see-through visor or thing like that. I'm able to cast it with cutRsc, but it covers the ingame UI, which is inconvenient. My main question is how do I draw this graphics UNDER the game UI. Is this even possible? The code to show the helmer visor: while{ alive player } do { waitUntil { headGear player == "dx_H_powerHelmet" }; if( headGear player == "dx_H_powerHelmet" ) then { //show visor ("visorPowerHelm" call BIS_fnc_rscLayer) cutRsc ["visorPowerHelmet","PLAIN"]; waitUntil { !(headGear player == "dx_H_powerHelmet") }; //hide visor ("visorPowerHelm" call BIS_fnc_rscLayer) cutText["", "PLAIN", 0, false]; }; }; And definition of the graphics: class RscPicture { access = 0; idc = -1; type = 0; style = 48; colorBackground[] = {0,0,0,0}; colorText[] = {1,1,1,1}; font = "PuristaLight"; sizeEx = 1; lineSpacing = 0; text = ""; fixedWidth = 0; shadow = 0; }; class visorPowerHelmet { idd = -1; movingEnable = 0; duration = 10000; fadein = 0; fadeout = 0; name = "visorPowerHelmet"; controls[] = {"Picture"}; class Picture: RscPicture { x=safeZoneX; y=safeZoneY; w=safeZoneW; h=safeZoneH; idc = 1600; text = "textures\helm\dx_visor2.paa"; }; }; -
Disabling Freefall animation
ramon_dexter replied to Mr.Someone's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Well, line before setting players new position, enableSimulation false and line after the "teleportation", enableSimulation true should do the trick. -
manipulating contents of a container
ramon_dexter posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I have a inventory item, box of matches. It inherits CA_magazine. It has count=20;. How do i remove let's say 2 of the content? -
Hello everybody, I'm requesting or asking for help. Since my modelling knowledge is nearing zero, I really dont know how to set-up Blender so the exported model will work in arma 3. So, I'm asking for help with converting model to p3d. The model is free, downloaded from Free3D. Here is link to the model. Any help would be really appreciated. https://drive.google.com/file/d/1cTexsHJ3WTUFDo3HyI-RecCijEQzXndg/view?usp=sharing
-
how to combine two models in one object?
ramon_dexter replied to ramon_dexter's topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
Well, after lots of experimenting I could say it is not possible. The subItems[] models are not rendered/shown and as I found out, the only way is to make scripted handler to cover adding and removing the 'subitem'. For a Blackfoot, even the scripted approach would me much more complicated or even impossible at all. -
The all new: Ask a moderator about the forum & rules
ramon_dexter replied to Placebo's topic in OFFTOPIC
Great, thanks. -
The all new: Ask a moderator about the forum & rules
ramon_dexter replied to Placebo's topic in OFFTOPIC
Am I allowed to send messages to other users with this status? -
The all new: Ask a moderator about the forum & rules
ramon_dexter replied to Placebo's topic in OFFTOPIC
Ok, at least somebody replies to me. Thank you. So, is there any way what I should do to justify/vindicate myself? Sorry if I sound offensive or use incorrect words, but english is not my native language. -
The all new: Ask a moderator about the forum & rules
ramon_dexter replied to Placebo's topic in OFFTOPIC
Sometimes it takes more than 24 hours. Yeah, that's really just and rightful. Cool. I don't even mention that my threads are lost in the feed because mods forget to approve it... -
how to combine two models in one object?
ramon_dexter posted a topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
So, I want to make a CSAT Protector helmet use the CSAT low profile/compact NVG Goggles. Basically make a helmet with built-in NVG. Since these two models are stock binarized, I cannot modify them. I tried defining new integrated optics: class dx_integrated_xt5v_optics : Integrated_NVG_TI_0_F { model = "\A3\Weapons_F\Binocular\O_NVGoggles_grn_F.p3d"; class ItemInfo { modelOff = "\A3\Weapons_F\Binocular\O_NVGoggles_grn_F.p3d"; uniformModel = "\A3\Weapons_F\Binocular\O_NVGoggles_grn_F.p3d"; }; }; and adding the optics into helmet's subItems[]. But it looks like that the subitem's model is not shown at all, so I'm wondering on how to make this. Also, I don't want to use script approach (it is possible, but it has many quirks, which I want to avoid). So, is it possible to assemble two models into one object via config, or do I need to actually modify the .p3d files, or do I have to simply use the scripted approach? -
The all new: Ask a moderator about the forum & rules
ramon_dexter replied to Placebo's topic in OFFTOPIC
Perpetual punishment for a mistake? Cool, really cool. Warning would be more effective. -
The all new: Ask a moderator about the forum & rules
ramon_dexter replied to Placebo's topic in OFFTOPIC
Do I really have to post multiple posts just to have this approved? This is ridiculous. -
looting trash piles & bins
ramon_dexter replied to anton_st's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello Larrow, this script works as expected. But there is one thing I would like to modify - instead of addAction make it use BIS_fnc_HoldActionAdd (the ravage approach). How do I do that? Basically omit teh searching bar and replace it with the holdAction wheel. Would you show me how to do that? -
The all new: Ask a moderator about the forum & rules
ramon_dexter replied to Placebo's topic in OFFTOPIC
OK, did a mistake and received the "Your content will need to be approved by a moderator". I wanted to ask if this status will ever be removed, because it severly limits me. Am I allowed to send messages to other users with this status? -
[TUTORIAL] Contact Scripts
ramon_dexter replied to ffredyk's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Also, I'm hoping they will fix the half broken task system. I would love to make a mission using the contact assets. The radio stuff would be cool for a survival type mission, where player has to look for other survivora with the spcetrum device. But since the task system in contact is half broken and works only with editor modules, I cannot use it. I need to be able to create tasks from scripts, not from modules, because of indeedpete's dialog system. -
Strange behaviour of script
ramon_dexter replied to ramon_dexter's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Well, could you provide some example? I'm not sure if you mean an eventhandler, or check whether player respawned? Also, I tried disabling respawn on start through description.ext (respawnOnStart = -1;), and still the same. All scripts work, besides stamina one. -
Hi, I wanted to ask on strange behaviour of one of my scripts. So, I made some "Cybernetic implants" (TM) used to compensate various gameplay effects (like stamina, weapon sway and accuracy and damage). The implants itself are simple inv.items, inherited from items - radio, gps, compass and watch. Easy squeezy, I just wanted to be something more than items that will sit in players inventory, so I made them to replace them mentioned inv items. Functionality is being supplied by bunch of sqf scripts that govern the implants working. Also, easy, working. The scripts are built into a pbo, called by fn_preInitClient.sqf. The scripts itself work, all of the four functions. But, there is one thing bugged, and that is stamina. So, the code: //accuracy (sway) implant while{ alive player } do { waitUntil { "dx_implant_accuracy" in (assigneditems player) }; if( "dx_implant_accuracy" in (assigneditems player) ) then { player setCustomAimCoef 0.25; systemChat "[ Accuracy enhanced! ]"; waitUntil { !("dx_implant_accuracy" in (assigneditems player)) }; player setCustomAimCoef 0.95; } else { player setCustomAimCoef 0.95; }; }; //personal shield while{ alive player } do { waitUntil { "dx_implant_shield" in (assigneditems player) }; if( "dx_implant_shield" in (assigneditems player) ) then { player allowDamage false; systemChat "[ Shield activated! ]"; waitUntil { !("dx_implant_shield" in (assigneditems player)) }; player allowDamage true; systemChat "[ Shield deactivated! ]"; } else { player allowDamage true; systemChat "[ Shield deactivated! ]"; }; }; //stamina implant support script while{ alive player } do { waitUntil { "dx_implant_stamina" in (assigneditems player) }; if( "dx_implant_stamina" in (assigneditems player) ) then { player enableFatigue false; systemchat "[ Stamina compensated! ]"; waitUntil { !("dx_implant_stamina" in (assigneditems player)) }; player enableFatigue true; } else { player enableFatigue true; }; }; //strength implant while{ alive player } do { waitUntil { "dx_implant_strength" in (assigneditems player) }; if( "dx_implant_strength" in (assigneditems player) ) then { player setUnitRecoilCoefficient 0.35; systemChat "[ Recoil reduced! ]"; waitUntil { !("dx_implant_strength" in (assigneditems player)) }; player setUnitRecoilCoefficient 0.95; } else { player setUnitRecoilCoefficient 0.95; }; }; And these scripts are called by this: //init_all.sqf waitUntil {player == player}; waitUntil{!isNull player}; //implants support scripts //========================================================================= nul1 = [player] execVM "\dexterSRC\client_side\accuracy_implant.sqf"; nul2 = [player] execVM "\dexterSRC\client_side\shield_implant.sqf"; nul3 = [player] execVM "\dexterSRC\client_side\stamina_implant.sqf"; nul4 = [player] execVM "\dexterSRC\client_side\strength_implant.sqf"; //========================================================================= //fn_preInitClient.sqf execVM "\dexterSRC\bootstrap\init_all.sqf"; The items are defined as this: //----------------------------------------------------------------------------------------------------- //..IMPLANTS.. //----------------------------------------------------------------------------------------------------- class dx_implant_stamina : ItemGPS { scope = 2; displayName = "$STR_dx_implant_stamina"; descriptionShort = "$STR_descriptionShort_dx_implant_stamina"; model = "\A3\Structures_F_EPA\Items\Medical\BloodBag_F.p3d"; picture = "\dexterSRC\dx_images\moduleVoice_F.paa"; class ItemInfo { mass = 0.1; }; }; class dx_implant_strength : ItemRadio { scope = 2; displayName = "$STR_dx_implant_strength"; descriptionShort = "$STR_descriptionShort_dx_implant_strength"; model = "\A3\Structures_F_EPA\Items\Medical\BloodBag_F.p3d"; picture = "\dexterSRC\dx_images\chipExcavator_F.paa"; class ItemInfo { mass = 0.1; }; }; class dx_implant_accuracy : ItemCompass { scope = 2; displayName = "$STR_dx_implant_accuracy"; descriptionShort = "$STR_descriptionShort_dx_implant_accuracy"; model = "\A3\Structures_F_EPA\Items\Medical\BloodBag_F.p3d"; picture = "\dexterSRC\dx_images\chipFiltration_F.paa"; class ItemInfo { mass = 0.1; }; }; class dx_implant_shield : ItemWatch { scope = 2; displayName = "$STR_dx_implant_shield"; descriptionShort = "$STR_descriptionShort_dx_implant_shield"; model = "\A3\Structures_F_EPA\Items\Medical\BloodBag_F.p3d"; picture = "\dexterSRC\dx_images\dx_shield_ca.paa"; class ItemInfo { mass = 0.1; }; }; //----------------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------------- The problem is that the stamina compensation doesn't work on mission start, even if I can see the message "Stamina compensated". When I open inventory, remove and add the item, the script works as intended and stamina is disabled. But not on mission start, while the three other scripts work. Now, I'm wondering why this happens. Anyone knows?
-
createSimpleObject nvg
ramon_dexter replied to ramon_dexter's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Yeah, found that while testing. Simpleobject is good for static objects, but too limited for units. Found different solution tho. -
Contact assets in coop mission on dedicated server has no slots
ramon_dexter replied to Pba (DayZ)'s topic in ARMA 3 - MISSION EDITING & SCRIPTING
Nope, you hqve to load the contqct dlc alongside arma to use these contact specific assets. -
So, I' trying to spawn a dummy nvg on players & units, but nothing I gtried so far works. Looks like the model "\A3\Weapons_F_exp\Binocular\O_NVGoggles_grn_F.p3d" cannot be used for simpleObjects. Or am I worng and using improper way? _pos = getPos p_pole; _obj = createSimpleObject ["\A3\Weapons_F_exp\Binocular\O_NVGoggles_grn_F.p3d", _pos];
-
custom function fails on first call
ramon_dexter replied to ramon_dexter's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Yeah, thank you both. I put the variables definition into initplayerlocal and it works. -
custom function fails on first call
ramon_dexter posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
So, I got some custom functions defined via cfgFunctions.hpp. One of these functions is function to change color of screen, based on surfer's screen effects from Contention Zone. The code is this (fnc\dx\setColor.sqf): params["_barva"]; dx_Color = []; dx_clear = [1.0, 1.0, 0.0, [0,0,0,0], [0,0,0,1], [0,0,0,0]]; dx_dexter = [1.0, 1.6, 0.0, [1.1, 0.9, 0.8, 0.05], [0.9, 0.6, 0.2, 0.5], [0.199, 0.587, 0.114, 0.0]]; dx_surfer = [1.0, 1.6, 0.0, [1.1,0.9,0.8,0.05], [1.2,1.0,0.2,0.4], [0.199,0.587,0.114,0.0]]; dx_dark = [1, 1.35, -0.32, [0.8,0.8,0.8,0],[0.8,0.8,0.8,0.5],[0.8,0.8,0.8,0]]; dx_Color = _barva; _screenColor = ppEffectCreate ['ColorCorrections', 2000]; _screenColor ppEffectEnable true; _screenColor ppEffectAdjust dx_Color; _screenColor ppEffectCommit 0; Definition in cfgFunctions.hpp: class DX { class base { class randomSentence { file = "fnc\dx\randomSentence.sqf"; }; class treesProximityCheck { file = "fnc\dx\treesProximityCheck.sqf"; }; class anomalyMarker { file = "fnc\dx\anomalyMarker.sqf"; }; class univIconMarker { file = "fnc\dx\univIconMarker.sqf"; }; class setColor { //this one file = "fnc\dx\setColor.sqf"; }; class setGrain { file = "fnc\dx\setGrain.sqf"; }; }; }; Include in description.ext: #include "cfg\functions.hpp" And the code itself is called by custom menu, and also in initPlayerLocal.sqf: [] spawn { [dx_clear] call dx_fnc_setColor; sleep 5; [dx_clear] call dx_fnc_setColor; sleep 5; [dx_dexter] call dx_fnc_setColor; }; The problem is that the first call throws error that 'dx_color' and '_barva' and the 'dx_clear' in function call is not defined. I don't understand the bug, because second time (and next and next and next) the script works as intended. What's wrong? Do I need to precompile, or pre-call it before the mission is loaded? If so, how do I do that? EDIT: Solved by defining the vars in initPlayerLocal.sqf -
Nope, when the "repeatable" is unchecked, the trigger will fire only once. So you don't need to worry.