Jump to content

Dj Rolnik

Member
  • Content Count

    73
  • Joined

  • Last visited

  • Medals

Everything posted by Dj Rolnik

  1. Hey guys, I am currently working on a mission that would feature some kind of a "command center" (for the lack of better description...) which would have a few screens. Those screens have been set up to receive a texture captured from a camera attached to a uav (to be precise, the Pelter drone from the new Contact DLC). I have used a script kindly provided by @killzone_kid which I have only adjusted for the other drone type and basically looks like this - this is repeated for 12 screens in the init.sqf: laptop1 setObjectTexture [0, "#(argb,512,512,1)r2t(uavrtt1,1)"]; cam1 = "camera" camCreate [0,0,0]; cam1 cameraEffect ["Internal", "Back", "uavrtt1"]; cam1 attachTo [pelter1, [0,0,0], "PiP1_demining_pos"]; addMissionEventHandler ["Draw3D", { _dir = (pelter1 selectionPosition "PiP1_demining_pos") vectorFromTo (pelter1 selectionPosition "PiP1_demining_dir"); cam1 setVectorDirAndUp [ _dir, _dir vectorCrossProduct [-(_dir select 1), _dir select 0, 0] ]; }]; The UAV feeds are being thrown on the screen in sequence one by one. This is how it looks in a test environment with 12 machines - you can see that the last four laptops turn black and show no feed. When I deleted the part of the script responsible for the first laptop, the 9th one worked fine so again - no more than 8 at once. I have two issues with it: - Obviously, I can display no more than 8 feeds at once - any more than that will appear as black screen - similarly, when opening the uav terminal, the turret control window will also appear black/blank. I do not mean to complain, but do you think this is an engine/performance limitation of some kind and there's no way around it? - Will this effect even be global to other players or only local (I fear the latter)? If local, is there a way to display this kind of effect globally to such a scale in a multiplayer environment? I appreciate all the feedback on this topic. Thanks a lot in advance! Adam
  2. Thanks @beno_83au, it sure looks like limitation of some sort now that you mentioned trying this in the past. Too bad we can only work with as many as 8 but again - don't want to complain. It's still great that we have such feature in the first place. I am still kind of uncertain on the aspect of locality of the view, as in who will see what in MP environment, but I guess I will just try it out with a few chaps. Thanks a lot for help!
  3. Thanks for your response @wogz187. I have actually decided to create this test scenario as I have initially started placing those cameras in a real mission scenario. There, I have noticed that some of them do not to work so thought that I try to isolate the issue as I could have made some mistakes in the script. I have also placed around 10 cameras in the mission. So as it turns out the script was just fine but again, there seems to be a kind of limitation on the render-to-texture feature. I couldn't help but dig a bit more and I found the below thread from about a year ago. I am not sure if this is the same thing exactly, but they also mention that there is apparently some limit as to how many of those textures can be displayed at once. This seems unconfirmed to me though. Either way, the original questions remain: Is there any way around it to make more of those screens? Will this effect be visible to other players in MP? Thanks!
  4. Hey, I am in need of help with trigger conditions checking whether there are enemy units (OPFOR) present inside vehicles such as jets, helicopters or boats. The idea is to have the trigger check whether enemy aircraft (or boats, but that's really low priority and optional) is approaching a large location covered by a trigger (about 10+km in size) and when that happens, launch an alarm sound effect in a certain place on the map (possibly not the trigger itself, because they are supposed to be placed in different locations). The important thing is that it's not only OPFOR - present, as the activation type, but OPFOR units in aircraft-type vehicles. An extra nice-to-have feature (if even doable) would be to display a hint or any kind of message on the screen informing about the type of aircraft incoming (not necessarily the name of the specific type of aircraft, but rather its type, so in that case "helicopter" or "jet"). I would be grateful for help in defining this condition! Thanks! Adam
  5. Seems to be working, thanks a lot for your help @stanhope! Now that it does work I think that I may have incorrectly set up some other things in the mission which may have triggered the sound twice, not the original script provided by you in the first post. Anyways, I will dig a bit more but for now this solution does work, so thanks a lot again!
  6. Ok, so I tested it a little bit and the condition check is working ok. It does detect the aircraft and activates the trigger. Once it leaves the trigger it deactivates. I have actually not managed to get the display name of the aircraft type displayed - it spewed some kind of error, but I actually decided not to use this as it suited the scenario better. I have a different problem though. Currently whenever one aircraft enters the trigger it activates it. However, if more aircraft were to enter the trigger activation zone in small intervals, the trigger will activate a few times, once per each enemy aircraft. This is a problem because the trigger runs a sound script on activation which triggers an alarm and when more aircraft enter the trigger zone the sounds queue up and overlap each other. I imagine there is got to be some kind of check whether the trigger is still active and if it already is, not trigger it again, but I don't know how to do that 😞 Currently the triggered script looks like this: while {triggerActivated trigger_alarm} do { speaker1 say3D ["alarm1", 250, 1, false]; speaker2 say3D ["alarm1", 250, 1, false]; speaker3 say3D ["alarm1", 250, 1, false]; speaker4 say3D ["alarm1", 250, 1, false]; speaker5 say3D ["alarm1", 250, 1, false]; sleep 14.284; //duration of the sound }; Any ideas? Maybe something to do with this? https://community.bistudio.com/wiki/scriptDone Thanks! Adam
  7. Ah yes, I see what you mean. I kind of blanked and forgot how the trigger is going to be set up. Will try that as soon as possible : )
  8. Hey @stanhope Thanks for a quick reply, I will give this a try. Does this include a check for whether it's an enemy plane? That's a crucial component for all that 😉 Thanks!
  9. Dj Rolnik

    Disable Vehicle Panels

    Does this work work UAVs as well? I cannot seem to get this to work with the latest drone form the Contact DLC.
  10. Hey guys, I would like to add for my players the ability to use an action which would only appear to them if they met a specific criteria. The criteria is to have a specific backpack and inside it, a specific item. I got the script responsible for the condition working, but only once I put it in the init.sqf. If I did it that way, the action would appear and remain available even after the condition was no longer fulfilled (the object being dropped for example). Naturally, I'd like to remove the action if the condition was no longer met. I basically do not know how to check for the condition so that it always pops up for the player once he meets that criteria. This is the script that I don't know how to call: if ((unitBackpack Player isKindof "tfw_ilbe_a_gr") && ("tfw_rf3080Item" in (items player + assignedItems player))) then {Player addAction ["Test Action", "test_action.sqf"];} Thanks!
  11. Thanks a lot for your suggestions guys! I actually did not think about the performance aspect of the script, you're right. I will try to digest your suggestions and come back with the results probably in the next few days. Unfortunately I lack some thorough scripting knowledge so I do struggle with event handlers and most importantly where to call all those scripts from, but I will try to solve it. I really appreciate the feedback. Thanks!
  12. Hey guys, I was recently thinking of something that I saw in a separate mod, which is unfortunately not being developed any more, strictly speaking, radio jammer for radio controlled IED detonations. There is a mod which comes with a backpack item that has that option but it naturally only works for the explosives provided by that specific mod. I would, however, like to try and incorporate the same mechanism but to the ACE Explosives. Turns out there is a function for that but I am not skilled enough to implement it using my scripting skills. I have found this: https://ace3mod.com/wiki/framework/explosives-framework.html#53-detonation-handler At the very bottom of the page there is a section which seems to be doing what I need it to do, which is block all the detonations of radio controlled explosives (such as the cellphone). I was thinking about using this code possibly in a form of a switch that the player could use. Similarly to the backpack from the other mod, it could be whatever item that the player can have (possibly some kind of a backpack as well) that would have the ON and OFF switch. Those switches would then control whether the Cellphone detonation of an IED is possible or not. Another thing I found was that Achilles actually seems to have a similar functionality but it appears to be restricted to Zeus-placed objects via this specific module as well as looks to be "jammable" only by an actual vehicle. I will need to test this one today tho. https://github.com/ArmaAchilles/Achilles/wiki/Module-Information I would be very grateful for any help in terms of how to achieve that result possibly using that first bit of code. Thanks a lot! Adam
  13. Yep, it did work just as expected. Dropping an object removes the action and adding it back in brings the action back. Thank a lot @cb65!
  14. Dj Rolnik

    ACE 3 Explosive jammer

    Ok, so for now I have tried the code provided in the ACE3 Framework wiki, copied below: [{ params ["_unit", "_range", "_explosive", "_fuzeTime", "_triggerItem"]; if (_triggerItem == "ace_cellphone") exitWith { systemChat "Blocking Cell Phone"; false }; // always block cell phones if (_triggerItem == "ace_m26_clacker") exitWith { _range = _range / 1000; private _actualRange = _unit distance _explosive; systemChat format ["Limited Range For RF Clacker [%1m / %2m]", _actualRange toFixed 1, _range toFixed 1]; (_actualRange < _range) // return bool }; // allow anything else (like timers / wired clackers) true }] call ace_explosives_fnc_addDetonateHandler; I have copied all that into a separate .sqf which I run on a simple addAction - works just fine. However, I cannot seem to revert the process. I would still like to turn the jammer off but cannot understand which parameter I would need to change in order to do so. Any advice? Thanks!
  15. Dj Rolnik

    ACE 3 Explosive jammer

    Thansk for the quick response @Dedmen. To be honest I am not planning on using the other mod, just used it as an example which I got the idea from and then found the function in the ACE 3 Framework page. I am still curious as to how the original mod creators managed to add that turn on option. It is literally a backpack with a few replacable antennaes all of which stand for the jamming range. Once you have that backpack you have a scroll wheel option to turn it on and off. It even blocks TFAR comms (as it's RF jam in the end). I sure will try your solution today too. Will see how it goes but I am still open for any other suggestions. Thanks!
  16. Hey guys, I am thinking of changing some tank reload sounds for use with my group. I am considering changing some of the default reload sounds of the round being loaded to a couple different ones. Only thing is, I'd like it to be kind of random across several different sounds. I already figured I would need to make a small mod out of it that would override the files that tanks use (in this case I believe it's default vanilla tank reload sfx). I think I would be able to override the sound itself, but I would like to have a few variants of the reload sfx which would be chosen and played at random. Is it possible to script in any way? I will be thankful for any guidance in this regard. Thanks! Adam
  17. Dj Rolnik

    Ambient battle sounds Module

    Hey guys, I know it's kind of a revival of an old thread, but worth a shot nonetheless. I have a different problem. For some reason when the mission is launched on a server, it does not seem to read the module settings I used in the editor, namely the volume, distance, etc. I tried it solo and found the settings that worked for me, but then when launching it on a dedi, it just reads some other, much louder settings which are rather unfitting most of the times. Anyone had this problem before?
  18. Hello, I am looking for a solution to an issue which troubles me greatly - AI going prone on contact. I guess all of us have experienced it before and know that once the AI changes combat mode, it instantly goes to the ground which is not always realistic, nor is it good for the players. I have searched for a solution for some time now and most of the solutions suggested forcing AI to one specific stance, either by Zeus or by setUnitPos. Unfortunately, none of the solutions considered allowing the AI to either STAND or KNEEL, which is what I'm hoping for. Maybe there is a way to add an eventhandler of some sort which could override the PRONE stance with KNEEL, if possible. Otherwise, maybe it could just disable prone itself, leaving kneel and stand for the AI to choose normally. I did find a semi-solution to this, which is using trigger areas and modules, which force the stance change of the AI within a trigger to whatever I set, however that's a) fixed to one stance, and b) always in zones that have been predefined by me, not dynamic in any way. I lack enough experience to write something like this on my own, but I do feel like forbidding AIs PRONE stance only is possible - I just don't know exactly how to do it. Will be grateful for any help! Adam
  19. Dj Rolnik

    Disable AI going prone

    I have no idea if you ask me - it may well be the case that it was just fixed somewhere on the way : )
  20. Dj Rolnik

    Disable AI going prone

    They're basically the same things, just one is a big discussion on the BI Forums and the other is a repost on Reddit. Sure, I can share this, no problem. Unfortunately I am not sure how to attach files to posts, so had to generate a link, sorry for that... I left out the raw folder just for ease of modification :) https://www68.zippyshare.com/v/HdEQcsCw/file.html - it's a whopping 866 bytes so shows as 0 MB ^^ Otherwise, it's just a config.cpp containing the below code from @.kju's first link - packed into a PBO. class CfgSurfaces { class Default { AIAvoidStance = 2; }; }; Thanks again!
  21. Dj Rolnik

    Disable AI going prone

    Wow, thanks for so many responses guys! I took a look at all of them and I indeed needed something that would work for spawned units as well, so I could not just assign a scirpt to a specific group. The solution from @.kju works flawlessly - I made a small local mod out of it and works like a charm! I may try out @GEORGE FLOROS GR's solution too, as in some missions I actualy may want the AI to lie down except for buildings - thanks for sharing the script man! Thanks all for your help - that's a big thing!
  22. Dj Rolnik

    Spawn stun grenade effect

    Thanks @davidoss, I will surely check this out as soon as possible. Dzieki! ;)
  23. Hello, I am looking for a solution for spawning a flashbang effect, possibly on a marker, invisible helipad or possibly using any other way that works best and can be customized for future use. So far I was trying to spawn the grenade using the createVehicle command and getting a position of a marker. Two problems I have are: - Flash/stun grenades do not explode on spawn, they appear for a few seconds and then disappear entirely (I've checked smoke as well as frag grenades and those two do work fine) - The command spawns a literal grenade which can be seen physically, whereas I am looking for it to either explode on spawn (for the grenade itself not to be seen) or for it to trigger only the effect instead. The command is supposed to be a supplement to door breaching on action and is supposed to affect AI as well. I believe that the effects of the ACE M84 grenades do, so that would be the ideal solution. Thanks for any suggestions! Adam
  24. Dj Rolnik

    Spawn stun grenade effect

    ;) I am using the ACE3 mod in all of my games. If there is any way to incorporate the ACE3 addon to achieve that effect, I am perfectly willing to give it a shot. Problem is I have no idea how to achieve that. I am still open for suggestions if anyone knows a potentially working solution for this. Thanks!
  25. Hello, I am in need of your guys's help when it comes to calling some functions or simply executing scripts for each player individually within Multiplayer. With the help of some friendly folk from the BI Forums I managed to come up with the below script. However, long story short is: I wanted to make a "civilian interaction" script which would allow all players to order civilians to "Get Down!" as well as "Get Out!". It is supposed to work after player respawn as well, so that's also worth pointing out. The script works fine until the point we connect to MP. From there it works only for my character (the civilian gets down and leaves the area when issued), but it does not work for other players on the server. They just play gestures and screm the voicelines I put there, but the civs do not react. I dare to believe it is due to how the script is called, where it is placed and probably something with the locality of the script and the civs called by it, if you may. I have tried calling functions, placing it in initPlayerLocal.sqf, but for the love of me, I cannot figure it out... This is how it looks currently: initPlayerLocal.sqf if (side player == blufor) then { player addAction ["Na ziemię!", {cursortarget call CivDown}]; player addAction ["Wynocha!", {cursortarget call CivGoAway}]; }; acim_fnc_playActionNow = { _unit = _this select 0; _gesture = _this select 1; _unit playActionNow _gesture; }; CivDown = { _civ =_this; _side = side _this; if (( _side == Civilian) && (_civ isKindOf "Man") && (alive _civ)) then { _random = 6; _randomResult = floor(random _random); switch (_randomResult) do { case 0: {[player, "get_down_on_the_ground"] call CBA_fnc_globalSay3d;}; case 1: {[player, "get_down"] call CBA_fnc_globalSay3d;}; case 2: {[player, "freeze"] call CBA_fnc_globalSay3d;}; case 3: {[player, "freeze_2"] call CBA_fnc_globalSay3d;}; case 4: {[player, "stop"] call CBA_fnc_globalSay3d;}; case 5: {[player, "stop_right_there"] call CBA_fnc_globalSay3d;}; }; [player, "gestureGo"] call acim_fnc_playActionNow; sleep 1; if (player distance _civ < 40) then { _civ disableAI "MOVE"; sleep 0.3; _civ setUnitPos "DOWN"; _civ setBehaviour "CARELESS";} }; }; CivGoAway = { _civ =_this; _side = side _this; if (( _side == Civilian) && (_civ isKindOf "Man") && (alive _civ)) then { _random = 6; _randomResult = floor(random _random); switch (_randomResult) do { case 0: {[player, "move_it"] call CBA_fnc_globalSay3d;}; case 1: {[player, "go"] call CBA_fnc_globalSay3d;}; case 2: {[player, "move"] call CBA_fnc_globalSay3d;}; case 3: {[player, "get_the_hell_outta_here"] call CBA_fnc_globalSay3d;}; case 4: {[player, "move_your_ass"] call CBA_fnc_globalSay3d;}; case 5: {[player, "off_you_go"] call CBA_fnc_globalSay3d;}; }; [player, "gestureGo"] call acim_fnc_playActionNow; sleep 1; if (player distance _civ < 40) then { _civ enableAI "MOVE"; sleep 0.3; _civ setUnitPos "UP"; _civ setBehaviour "COMBAT"; _civ move (waypoint_trigger call BIS_fnc_randomPosTrigger);} }; }; I have also created a onPlayerRespawn.sqf which looks basically the same in case the action gets lost, so since the current state requires the script to work after respawns, it leads me to believe that all of it should not be placed in initPalyerLocal in the first place. I will be extremely grateful for someone helping me out with making the script work for all players and allowing them to order civilians to move. Thank you! Adam
×