Back to Browse

Traffic Script stress test (frontseat)

80 views
Feb 19, 2020
7:43:49

Making convoy missions is cool right ? But it feels a bit empty without civilian traffic. This is an attempt to fix the situation :) Backseat version can be seen here : https://www.youtube.com/watch?v=BJukYRr3xcc For additional references, you can find the mission files here : https://gitlab.com/KarlETR/demo-missions-dump/-/tree/master/Driving-Incoming-Traffic.South_Asia_H As for the script used, here it is (just replace isBigger by the proper symbol, as youtube doesn't allow me to use it in the video description) : //Incoming traffic code [] spawn { cars=["CUP_C_Datsun", "C_Van_01_fuel_F", "CUP_C_Golf4_random_Civ", "C_Hatchback_01_F", "C_Offroad_02_unarmed_F", "C_Truck_02_fuel_F", "C_Truck_02_covered_F", "C_Offroad_01_covered_F", "CUP_C_Octavia_CIV", "C_SUV_01_F", "C_Van_01_transport_F", "C_Van_01_box_F", "C_Van_02_vehicle_F", "C_Van_02_transport_F", "CUP_C_Lada_TK2_CIV", "CUP_C_Lada_GreenTK_CIV", "CUP_C_LR_Transport_CTK", "CUP_C_V3S_Covered_TKC", "CUP_C_SUV_TK", "CUP_C_Volha_Blue_TKCIV", "CUP_C_Volha_Gray_TKCIV", "CUP_C_Volha_Limo_TKCIV"]; a=true; maxSleepTime=30; blacklistAreas=["blacklist_1","blacklist_2"]; //maxSleepTime=15; while {a } do { _spawnPos = [player getRelPos [1100, 0], 1500] call BIS_fnc_nearestRoad; _destination=[player getRelPos [200, 120], 1500] call BIS_fnc_nearestRoad; if !( (isNull _spawnPos) || (isNull _destination) || ({(getPos player) inArea _x} count blacklistAreas isBigger 0)) then { [_spawnPos,_destination] spawn { params ["_spawnPos","_destination"]; _veh = createVehicle [selectRandom cars, _spawnPos, [], 0, "NONE"]; _veh setDir (_veh getDir player); sleep 0.5; _myCrew=createVehicleCrew _veh; _veh move (getPos _destination); _myCrew setBehaviour "CARELESS"; _myCrew setSpeedMode "LIMITED"; _veh limitSpeed 70; sleep 60; waitUntil { sleep (1+random 5); _check=[getPos player, getDir player, 180, getPos _veh] call BIS_fnc_inAngleSector; ((!_check && (player distance _veh isBigger 200)) || player distance _veh isBigger 1000) }; {deleteVehicle _x;sleep 0.1;} forEach (units _myCrew) + [_veh]; }; sleep (5 max (random maxSleepTime)); } else { sleep 3; }; }; };

Download

0 formats

No download links available.

Traffic Script stress test (frontseat) | NatokHD