{USI}_Zombie
Member-
Content Count
376 -
Joined
-
Last visited
-
Medals
Everything posted by {USI}_Zombie
-
I finally got my squad to 1 click halo, problem is, they all head off on their own program. Anyone figured out how to make them stay in formation? If I give them a waypoint, they will go there, but I would rather they stayed more or less in formation.
-
Secondary Ops Manager Module Discussion
{USI}_Zombie replied to trini scourge's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
found this script buried in the arma2 addons folder haven't had time to dissect it but I think the answer lies here. Maybe someone who understands sqf's better can help /* File: isAvailableSupportRequest.sqf Author: Joris-Jan van 't Land Description: Returns whether or not a certain support request is available at this time. It also updates and cleans the registry when a support request is no longer available. Parameter(s): _this select 0: name of the support request (String) _this select 1: SOM main scope (Object) Returns: Boolean */ private ["_supReqName", "_mainScope", "_available"]; _supReqName = _this select 0; _mainScope = _this select 1; _available = false; //Fixed times of availability of each support request. private ["_availTime"]; _availTime = [_supReqName, "timeAvailable"] call BIS_SOM_returnCfgSecOpsEntryFunc; //Fetch this request's gain times or create a new list (also for parameters). private ["_varName", "_gainTimes", "_varNameParams", "_params"]; _varName = "gainTimes_" + _supReqName; _varNameParams = "params_" + _supReqName; _gainTimes = _mainScope getVariable _varName; if (isNil "_gainTimes") then { _gainTimes = []; _params = []; } else { _params = _mainScope getVariable _varNameParams; }; _gainTimesNew = +_gainTimes; //Check all times at which this support was gained against the current time. //Remove any times (and parameters) that are now outdated. for "_i" from 0 to ((count _gainTimes) - 1) do { private ["_gainTime", "_gainedTime"]; _gainTime = _gainTimes select _i; _gainedTime = time - _gainTime; //Some requests cannot expire. if ((_gainedTime <= _availTime) || (_gainTime == -1) || (_availTime == -1)) then { _available = true; } else { _gainTimesNew set [_i, -2]; _params set [_i, -1]; }; }; _gainTimesNew = _gainTimesNew - [-2]; _params = _params - [-1]; //Update the main registry of gain times and parameters. _mainScope setVariable [_varName, _gainTimes]; _mainScope setVariable [_varNameParams, _params]; answer could also be in this script /* File: addSupportRequest.sqf Author: Joris-Jan van 't Land Description: Adds one or more support request for the SOM's team. In case you pass a Number, its value determines the amount of random Support Requests added. Parameter(s): _this select 0: name of the support request (String, Array of Strings or Number) _this select 1: SOM main scope reference (Object) _this select 2: (optional) parameters (Array) _this select 3: (optional) never expire toggle (Boolean - default: false) */ //Validate parameter count. if (isNil "_this") exitWith {debugLog "Log: [addSupportRequest] Function requires 2 parameters!"; false}; if ((count _this) < 2) exitWith {debugLog "Log: [addSupportRequest] Function requires 2 parameters!"; false}; if (({isNil "_x"} count _this) != 0) exitWith {debugLog "Log: [addSupportRequest] Function requires all parameters to be defined values!"; false}; private ["_supReqs", "_mainScope", "_supReqName"]; _supReqs = _this select 0; _mainScope = (_this select 1) call BIS_SOM_returnSOMFunc; //Fetch optional parameters. private ["_paramsNew", "_neverExpire"]; //Convert single name to array with 1 element. if ((typeName _supReqs) == (typeName "")) then { _supReqs = [_supReqs]; }; //Convert number to selection of random requests. if ((typeName _supReqs) == (typeName 0)) then { private ["_supReqsTmp"]; _supReqsTmp = []; for "_i" from 0 to (_supReqs - 1) do { _supReqsTmp = _supReqsTmp + [["transport", "supply_drop", "aerial_reconnaissance", "tactical_airstrike", "artillery_barrage"] call BIS_fnc_selectRandom]; }; _supReqs = +_supReqsTmp; _supReqsTmp = nil; }; if ((count _this) > 2) then { _paramsNew = _this select 2; }; //No parameters were passed, so generate a big enough list of empty parameters. if (isNil "_paramsNew") then {_paramsNew = []}; //Make sure there are enough parameter lists. if ((count _supReqs) > (count _paramsNew)) then { for "_i" from (count _paramsNew) to ((count _supReqs) - 1) do { _paramsNew = _paramsNew + [[]]; }; }; if ((count _paramsNew) < (count _supReqs)) exitWith {debugLog "Log: [addSupportRequest] The number of parameter lists (2) should match the number of support requests (0)!"; false}; if ((count _this) > 3) then { _neverExpire = _this select 3; }; if (isNil "_neverExpire") then {_neverExpire = []}; if ((count _supReqs) > (count _neverExpire)) then { for "_i" from (count _neverExpire) to ((count _supReqs) - 1) do { _neverExpire = _neverExpire + [false]; }; }; private ["_addedMsg"]; _addedMsg = ""; for "_i" from 0 to ((count _supReqs) - 1) do { _supReqName = _supReqs select _i; //Check to see this request exists. if (([_supReqName, "supportRequest"] call BIS_SOM_returnCfgSecOpsEntryFunc) == 1) then { //Remove obsolete gain times. [_supReqName, _mainScope] call BIS_SOM_isAvailableSupportRequestFunc; //Fixed count of availability of each support request. private ["_maxCount"]; _maxCount = [_supReqName, "maxCount"] call BIS_SOM_returnCfgSecOpsEntryFunc; //Fetch this request's gain times and parameters or add new lists. private ["_varName", "_gainTimes", "_varNameParams", "_params"]; _varName = "gainTimes_" + _supReqName; _varNameParams = "params_" + _supReqName; _gainTimes = _mainScope getVariable _varName; if (isNil "_gainTimes") then { _gainTimes = []; _params = []; } else { _params = _mainScope getVariable _varNameParams; }; //Some requests should never expire. private ["_newGainTime"]; if (_neverExpire select _i) then {_newGainTime = -1} else {_newGainTime = time}; //Add if the maximum count was not exceeded. if ((count _gainTimes) < _maxCount) then { _gainTimes = _gainTimes + [_newGainTime]; _params = _params + [_paramsNew select _i]; } else { //Replace the earliest gain time. if ((count _gainTimes) > 0) then { private ["_arrayExtreme"]; _arrayExtreme = ([_gainTimes, 0] call BIS_SOM_findArrayExtremeFunc) select 0; _gainTimes set [_arrayExtreme, _newGainTime]; _params set [_arrayExtreme, _paramsNew select _i]; }; }; //Update the list of gain times and parameters with the new request. _mainScope setVariable [_varName, _gainTimes]; _mainScope setVariable [_varNameParams, _params]; private ["_title"]; _title = [_supReqName, "title"] call BIS_SOM_returnCfgSecOpsEntryFunc; _addedMsg = _addedMsg + "\n" + _title; ["supreq", _mainScope] call BIS_SOM_updateCommsMenuFunc; } else { debugLog (format ["Log: [addSupportRequest] This support request (%1) does not exist!", _supReqName]); }; }; //Alert the leader the new requests were added, if they were. if (isNil "BIS_WF_Client") then {//disabled hint when in WF (we have right side indications instead) if (_addedMsg != "") then { private ["_msg"]; _msg = (localize "STR_SOM_SUPPORT_REQUEST_ADDED") + _addedMsg; [[_mainScope getVariable "leader"], [_msg], {hint (_this select 0)}, {player == _x}] call BIS_SOM_sendCodeFunc; }; }; true -
HALO Stay in formation
{USI}_Zombie replied to {USI}_Zombie's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
:icon_lol: Now why didn't I think of that! :p -
Secondary Ops Manager Module Discussion
{USI}_Zombie replied to trini scourge's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
in the request support menu it will say active if it is active -
HALO Stay in formation
{USI}_Zombie replied to {USI}_Zombie's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
This thread explains it all : http://forums.bistudio.com/showthread.php?t=73401&highlight=halo Basically use this code [player, 2000] exec "ca\air2\halo\data\Scripts\HALO_init.sqs" -
ArmA 2's Artillery Module
{USI}_Zombie replied to headspace's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I haven't tried, but it is an interesting concept to try out. I will experiment and let you know, but why do we need more than 1 battery in the first place? That being said, I will try to work something out with each type of arty. -
I need the halo script command to wait until after the player clicks on the map, but everything I have tried won't make it wait, so, advice please. _text = "Choose your parachute location\nPress M for map and then single click for jump position\n"; TitleText [_text,"Plain"]; onMapSingleClick "player setPos _pos; onMapSingleClick """";"; [player, 2000] exec "ca\air2\halo\data\Scripts\HALO_init.sqs"; if (true) exitWith {};
-
how to make it wait
{USI}_Zombie replied to {USI}_Zombie's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
OK, this is working along so far: _text = "Choose your parachute location\nPress M for map and then single click for jump position\n"; TitleText [_text,"Plain"]; onMapSingleClick "{_x setPos _pos} forEach (units Group Player); onMapSingleClick """";"; waituntil {visiblemap}; if (visibleMap) then {hint "\n\n\n\n Click for drop location then close the map"}; waitUntil{!visibleMap}; [player, 2000] exec "ca\air2\halo\data\Scripts\HALO_init.sqs"; if (true) exitWith {}; I want the ai in my squad to halo as well and that isn't working. I tried several variations like this: _text = "Choose your parachute location\nPress M for map and then single click for jump position\n"; TitleText [_text,"Plain"]; onMapSingleClick "{_x setPos _pos} forEach (units Group Player); onMapSingleClick """";"; waituntil {visiblemap}; if (visibleMap) then {hint "\n\n\n\n Click for drop location then close the map"}; waitUntil{!visibleMap}; _jumpers = units group player; [_jumpers, 2000] exec "ca\air2\halo\data\Scripts\HALO_init.sqs"; if (true) exitWith {}; and this causes errors in the halo_init.sqf and nobody HALO's...so...ideas? -
how to make it wait
{USI}_Zombie replied to {USI}_Zombie's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Thanks, both of you gave me something I could try, @indeedpete, already tried that and couldn't make it work @kylania you got me in the right direction. I am calling this script from an addaction. What you posted didn't work as written because when the script is called, the map is already not visiblewhich meant the halo script would kick in right away,...so my solution, inelegant as it is: _text = "Choose your parachute location\nPress M for map and then single click for jump position\n"; TitleText [_text,"Plain"]; onMapSingleClick "player setPos _pos; onMapSingleClick """";"; waituntil {visiblemap}; if (visibleMap) then {hint "\n\n\n\n Click for drop location"}; waitUntil{!visibleMap}; [player, 2000] exec "ca\air2\halo\data\Scripts\HALO_init.sqs"; if (true) exitWith {}; Now I need to make this pull all the player's AI squadmates along with...I think I can, I think I can....and search the forums on how to get the removeaction to work since the on deac line in the trigger isn't cutting it:p Thanks again, I never noticed that visiblemap command in the comref! -
Disabling Secops
{USI}_Zombie replied to Hick101's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
http://forums.bistudio.com/showpost.php?p=1442774&postcount=219 -
Thanks, but the point I don't get is "accepting the call". How does one accept the call? I press 0-0-9, get a cyrillic hint message, then it says I didn't accept the call. Does this mean someone else has to do something? Do I 0-0-9 then click the map? 0-0-9 again? mapclick on my desired target area? Someone get in an A10 somewhere? someone standing at the airport to do something? What does it mean accept the call? OK, makes sense now OK, I can make one if you like and send it to you
-
any news on 1.04? Also a couple requests: a) HALO option, where we can halo jump from the base, making it rank dependent would be acceptable. b) can we have an explanation on exactly how air support works? I keep getting a message that I didn't accept the call. c) can we have a detailed description on what the medic action does? It doesn't seem to heal me, not much anyway I would be happy to write a detailed briefing for you to include also. I don't know how to use stringtables, and I'm not sure that they work with brieings, but I can do an english version.
-
will d/l and have a look.....a ctf league huh? {USI} wants in!
-
It's used by calling a gamelogic. Just having the mod enabled doesn't enable the effects, the mission has to be designed for it.
-
fair enough, thank you very much
-
I used to be able to, maybe it's related to my save game getting buggered somehow?
-
I keep getting an error when I try to recruit. I can recruit 1 member, but when I try to recruit a second 1 I get "Arma2 has encountered a problem and needs to close". My rpt says this among other things: ======================================================= ------------------------------------------------------- Exception code: C0000005 ACCESS_VIOLATION at 006F0A04 Version 1.04.59026 Fault address: 006F0A04 01:002EFA04 E:\Program Files\Bohemia Interactive\ArmA 2\arma2.exe file: WAR-3-Front-USA (__cur_mp) world: chernarus Prev. code bytes: 24 40 8B CF F3 0F 11 04 24 E8 0E 58 FE FF EB 10 Fault code bytes: 8B 17 8B 42 20 FF D0 6A 01 8B CF E8 6C 58 FE FF Registers: EAX:00000000 EBX:08D4F1D4 ECX:00000001 EDX:39D43970 ESI:285198D0 EDI:00000001 CS:EIP:001B:006F0A04 SS:ESP:0023:08D4E524 EBP:28519718 DS:0023 ES:0023 FS:003B GS:0000 Flags:00010203 ======================================================= note: Minidump has been generated into the file E:\Documents and Settings\Dave\Local Settings\Application Data\ArmA 2\arma2.mdmp It would crash sometimes before 1.04, now it crashes every time.
-
Anyone know how to make an incapacitated man to be carried to extraction.
{USI}_Zombie replied to Redfist's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
First aid module, battlefield clearance will do what you want...will probably do what you want anyway :p Not sure if the person needs to be in your squad, give it a shot. If that won't work, I have an example of dragging a body with the attachto command, but it's kinda cheesy :o -
does anybody read the briefing anymore?
{USI}_Zombie replied to BronzeEagle's topic in USER MISSIONS
I agree, briefings are essential. Put them in there BronzeEagle, most of us appreciate it -
another issue. when my friend joined my game last night, the time of day was not synchronized. It was full dark for me, about 12:30 am but daylight for him. We were playing with me hosting, not on a dedicated server. I don't know if that is a game engine thing or something with the mission, just wanted you to know. Nevermind, patch 1.04 seems to have fixed this.........
-
HALO, how to add it ?
{USI}_Zombie replied to gonza's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
That script is buried in a pbo file, air2.pbo in your arma2/addons folder. The game will find it and use it if you call it as described in the thread. -
OK, I appreciate it! I do really enjoy this map and thank you for your work!
-
Animation Viewer
{USI}_Zombie replied to Clayman's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
I fixed mine by taking the code CLAY_Viewing = [] execVM ""viewer.sqf" from the civilian and putting it in a radio alpha trigger. Then I activate radio alpha and it works as advertised -
Help with a Trigger + Secop
{USI}_Zombie replied to Solarghost's topic in ARMA 2 & OA - ADDONS & MODS: DISCUSSION
no problem, it's good to see you are trying to learn. Keeps us informed on your progress! -
I am having 2 problems. I type 0-0-4 and it says weaponbox but seem to do anything? and I type 0-0-9 air support and the hint is in Cyrillic (I think) which I don't know how to read so what does it do? BTW, do you not like us to use armor, or any vehicle for that matter? I can't get in a tank without 2 jets killing me in about 1 minute, and I even take along 4 squad mates in avengers, and they die first, then I do. I don't want to whine, but seriously? Some of us like to use vehicles. I managed to take the southernmost airfield but that didn't slow them down any, can you maybe decrease the frequency of the enemy jets. I am playing this by myself, and have achieved LtColonel .