Jump to content

jakeplissken

Member
  • Content Count

    195
  • Joined

  • Last visited

  • Medals

Community Reputation

54 Excellent

1 Follower

About jakeplissken

  • Rank
    Sergeant

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. jakeplissken

    how to change out of bloody uniform?

    No. Just leave the server and come back.
  2. jakeplissken

    AI dynamic cover system?

    AI cant even drive yet, give it another few months.
  3. I have found another way, this blocks the pilot seat in Ghosthawk but allows the CoPilot seat, and blocks the "Take Controls" action. But it also stops ground vehicles. How can I restrict it to air vehicles? inGameUISetEventHandler ["Action", " if (!((_this select 0) getVariable ['disableGetIn',false]) && (_this select 3) in ['GetInDriver','GetInPilot','GetInGunner','GetInCommander','TakeVehicleControl','UnlockVehicleControl']) then { true } "]; It does allow the use of the Miniguns in the helicopter though. So nearly there. This is a finished version. I did not realize that _this select 0 was the vehicle. inGameUISetEventHandler ["Action", " if (!((_this select 0) getVariable ['disableGetIn',false]) && ((_this select 0) isKindOf 'Air') && (_this select 3) in ['GetInDriver','GetInPilot','GetInGunner','GetInCommander','TakeVehicleControl','UnlockVehicleControl']) then { true } "]; This works just fine. You can get in ground vehicles and not helis as a non-pilot. Now it is finished.
  4. Running this in PreInit is instant, this is a better approach. class KER { tag = "KER"; class functions { file = "functions"; class replace{ PreInit = 1; }; class teim{}; class icons{}; class welcome{}; }; }; Set up the CfgFunctions like this and put the code in the replace() function. {{hideObject _x} count nearestTerrainObjects [_x,["TREE","SMALL TREE","BUSH","HIDE"],30] } forEach (([worldSize/2,worldSize/2] nearRoads (worldSize/1.4)) select {getRoadInfo _x#1 < 7}) Then the code will run extremely fast before the main mission loads. Even this is very fast. {{hideObject _x} count nearestTerrainObjects [_x,["TREE","SMALL TREE","BUSH","HIDE"],90] } forEach (([worldSize/2,worldSize/2] nearRoads (worldSize/1.4)) select {getRoadInfo _x#1 < 7})
  5. I am using this example to print procedural text on a billboard, but how do I print text from a variable in the middle of the text? It would be convenient to print the player`s name or something? #(rgb,1024,512,3)text(0,0,"rhs_digital_font", 0.1, "#302c64", "#302cff", "Hello and welcome\nto the server.") This would be much more useful this way.
  6. Here is a good solution though, this will block all non-pilots from Pilot and Copilot seats. player addEventhandler ["GetInMan", { params ["_unit", "", "_vehicle"]; if (_vehicle isKindOf "Air" && { !(_vehicle isKindOf "ParachuteBase") && { !((vehicle _unit getCargoIndex _unit)>=0) && { !((toUpper typeOf _unit find toUpper "Pilot") > -1)} } }) then { _unit moveOut _vehicle; }; }]; player addEventhandler ["SeatSwitchedMan", { params ["_unit", "", "_vehicle"]; if (_vehicle isKindOf "Air" && { !(_vehicle isKindOf "ParachuteBase") && { !((vehicle _unit getCargoIndex _unit)>=0) && { !((toUpper typeOf _unit find toUpper "Pilot") > -1)} } }) then { _unit moveOut _vehicle; }; }];
  7. I am working on this event handler to block non-pilots from helis, but this will block players from getting in the passenger spot, and it blocks the scroll menu options when using a drone. inGameUISetEventHandler ["Action", " if (((toUpper typeOf player find toUpper 'Pilot') < 2) && (_this # 0 iskindof 'helicopter') || (_this # 0 iskindof 'plane') && (_this select 3) in ['GetInDriver','GetInPilot','GetInGunner','GetInCommander','GetInCargo']) then { true } else {false}; "]; Am I missing something simple? Player can still get in a ground vehicle, but not helis.
  8. This is a modern updated version. [missionNamespace,"OnGameInterrupt", { _this spawn { params ["_display"]; _display displayCtrl 2 ctrlShow false; _display displayCtrl 103 ctrlShow false; _display displayCtrl 115099 ctrlShow false; _display displayCtrl 523 ctrlShow false; _display displayCtrl 104 ctrlSetText "Quit current mission..."; _display displayCtrl 2 ctrlSetBackgroundColor [0.7, 0.3, 0.9, 1]; _display displayCtrl 1005 ctrlSetText format ["CO80 Afghan ops. %1 : Arma 3 v%2.%3!", "1.80", (productVersion select 2), (productVersion select 3)]; _display displayCtrl 120 ctrlSetText "Enemy insurgents have invaded Afghanistan. Destroy their assets and remove all enemies. This must be carried out in a humanitarian way, minimising damage to civilian assets."; _display displayCtrl 6455 ctrlShow true; _display displayCtrl 6455 ctrlSetText format ["%1", profileName]; }; }] call BIS_fnc_addScriptedEventHandler; This works properly on a dedicated server.
  9. jakeplissken

    Ambient Sounds Script

    This is a better version, it seems to work very well. private _cpbSoundList = [ "A3\Sounds_F\environment\ambient\battlefield\battlefield_explosions1.wss", "A3\Sounds_F\environment\ambient\battlefield\battlefield_explosions2.wss", "A3\Sounds_F\environment\ambient\battlefield\battlefield_explosions3.wss", "A3\Sounds_F\environment\ambient\battlefield\battlefield_explosions4.wss", "A3\Sounds_F\environment\ambient\battlefield\battlefield_explosions5.wss", "A3\Sounds_F\environment\ambient\battlefield\battlefield_firefight1.wss", "A3\Sounds_F\environment\ambient\battlefield\battlefield_firefight2.wss", "A3\Sounds_F\environment\ambient\battlefield\battlefield_firefight3.wss", "A3\Sounds_F\environment\ambient\battlefield\battlefield_firefight4.wss", "A3\Sounds_F\environment\ambient\battlefield\battlefield_heli1.wss", "A3\Sounds_F\environment\ambient\battlefield\battlefield_heli2.wss", "A3\Sounds_F\environment\ambient\battlefield\battlefield_heli3.wss", "A3\Sounds_F\environment\ambient\battlefield\battlefield_jet1.wss", "A3\Sounds_F\environment\ambient\battlefield\battlefield_jet2.wss", "A3\Sounds_F\environment\ambient\battlefield\battlefield_jet3.wss" ]; private _cpbTarget = player; private _cpbSoundObject = player; private _cpbMinDistance = 400; private _cpbMaxDistance = 900; private _cpbMedDistance = 600; while {true} do { _dir = round random 360; _dis = round random [_cpbMinDistance,_cpbMedDistance,_cpbMaxDistance]; private _cpbSoundPosition = _cpbTarget getRelPos [_dis, _dir]; playSound3D [_cpbSoundList call BIS_fnc_selectRandom, _cpbSoundObject, false, _cpbSoundPosition, 5, 1, 0]; sleep (random [30, 40, 60]); };
  10. Do it like this. { _x hideObjectGlobal TRUE; } foreach (nearestTerrainObjects [[14620.6,16776.1,0],[],500] select {getModelInfo _x #0 in ["t_phoenixc1s_f.p3d","t_oleae1s_f.p3d","wreck_car_f.p3d","wreck_offroad2_f.p3d","junkpile_f.p3d","b_ficusc1s_f.p3d","garbagepallet_f.p3d","t_phoenixc3s_f.p3d","garbagebags_f.p3d","garbagewashingmachine_f.p3d","t_ficusb1s_f.p3d","t_ficusb2s_f.p3d"]}); This hides via the model name. This can hide anything and runs best in a preinit function. Run it like this. Setup the fn_replace function in CfgFunctions as shown below. class replace{ file = "functions\fn_replace.sqf"; preInit = 1; }; Then it will run in mission preinit and hide trees or junk, anything you wish to be hidden.
  11. jakeplissken

    DCS in Arma 3

    My game crashes when I try to use the South Asia terrain. It is too big, 400 sq KM is the max in Arma 3. Just play DCS if you want a Flight Sim. The RV 4 engine cannot really handle such huge maps.
  12. No. Just play a proper VR game. This looks promising. Phantom: Covert Ops. Or just wait for Arma 4.
  13. jakeplissken

    ARMAHOLIC website not working

    I have found a few old Arma files on an old HDD. I am uploading it to a Mega folder, I will then link it to see if there is anything useful there. I found things like the old Baghdad mod and Podagorsk. I even have the 0.42 version of the ADF Uncut mod. As well as the RDS Static weapons pack. Here is the link. I have uploaded quite a few old files. Might be a few gems in here. https://mega.nz/folder/IhJRmQzD#FpLgaqrldueA6bPM0ioWMg
  14. jakeplissken

    3DEN editor missing assets

    You can spawn missing assets like this if you know the classname. create3DENEntity ["Object", "Land_Communication_anchor_F", screenToWorld [0.5,0.5]]; This works very well indeed. Then you can move it around and set properties like normal.
×