That's the one
Good job Wolffy !
That's the one
Good job Wolffy !
Well, quick update - 402 downloads so far, so really happy with that.
Just a reminder to everyone, if you'd like to vote for features, or even request a few of your own, please do so at:
http://dev-heaven.net/projects/mip/issues
I think he meant like a really crowded city, not the usual "oh look there is a car"
Isn't this possible with some variable?
At the moment, its set to 3 cars. I could make that a variable - if this is what you guys are referring too, then log a Feature Request for me please.
I can tell you now, all that happens is a massive traffic jam, with no cars moving - but hey, that might be what you guys are after!![]()
Wolffy,
Great script tested it yesterday and works great really nice to see cars driving about!
I would like to add a request please , at the moment I have a car bomb script that I use in the SILVIE module, which works great , especially when they drive the car alas which is not very often !
So my request would-be - would it be possible to add this feature into your Traffic ? i.e a random % of traffic would be driving car bombs ?
This is what I am using
Also whilst writing is there a way to reduce the number of cars SILVIE uses as there are far too many !Code:_object = _this select 0; _value = random 100; if (_value < 15) then { _blowup = false; while {alive _object} do { // include vehicles _targetArray = nearestObjects [(getPos _object), ["MAN", "LandVehicle"], 10]; if ((count _targetArray) > 0) then { { if (str(side _x) == "WEST") then { _blowup = true; }; } forEach _targetArray; }; if (_blowup) then { //HINT "DIE YOU BRITISH INFIDEL SCUM....."; // just for trigger area if (isServer) then { [nil, nil, rHINT, "DIE YOU INFIDEL SCUM....."] call RE; // for all }; sleep 6; _boom = "R_57mm_HE" createVehicle (position _object); } else { sleep 6; // change to tweak wait time before checks }; }; };
Cheers
To solve your two problems/requests, I suggest looking at:
http://community.bistudio.com/wiki/A...ilian_Vehicles
There is a file in the demo called init-silvie.sqf which you can edit. Take a look at it to understand how to implement these parameters.
The two parameters you are after are:
Example: BIS_silvie_mainscope setvariable ["vehicleInit",{_this lock true}];
- vehicleInit = <code>; - custom init which is executed on every car. Vehicle can be accessed using _this variable. Init is executed as separate script, so sleep or waituntil commands can be used without limitations.
and
Example: BIS_silvie_mainscope setvariable ["vehicleCount","round (%1 / 10)"]; Default value (and recommended): "round ((sqrt %1) * 1.5)"
- vehicleCount = <string>; - formula on which basis system calculates number of vehicles for location. %1 is number of buildings (blacklisted objects are excluded) in 500 metres from location.
FYI - zGuba has asked to add some of his changes in this ticket, http://dev-heaven.net/issues/18339
Been messing around with this for a few days now and absolutely love it. I've always used these modules in my missions.
I haven't had any problems, but if I do or have a suggestion I'll head over to dev-heaven.
Thanks again!
Windows 7 64-bit | AMD FX 8350 4.0 GHZ | GTX 570 (310.70) | 32 GB RAM
OCZ Agility 3 120 GB SSD | OCZ Agility 2 120 GB SSD | OCZ Vertex Plus 60 GB SSD | Intel 80 GB SSD
Logitech G500 G15 G930 | TrackIR 5 | Saitek X52 Pro + Pro Flight Rudder
Second Release - MIP20110331.ZIP
http://dev-heaven.net/projects/mip/files
Module Improvements
New improvments to the modules are:
- Garbage Collector
- Added dedicated server support to Garbage Collector
- Added optional auto scavenger every 5 minutes using:
Code:BIS_GC setVariable ["auto",true];
Installation Instructions
If a mission maker wishes to use this replacement code, here are the instructions.
- Simply copy the CA directory into your mission folder to over-ride the default BIS modules.
- Place a BIS Garbage Collector module in the mission editor and add the following to your Garbage Collector module INIT to auto scavenge for dead bodies and destroyed vehicles every 5 minutes.
Code:BIS_GC setVariable ["auto",true];
Loving this, thank you for your hard work wolffy.
[KH]Jman
Kellys Heroes ArmA Clan Leader
www.kellys-heroes.eu | KH Server Specs | Dedi Server Guide | PersistentDB
My specs: Intel Core i7 920 D0 Stepping (SLBEJ) 2.66Ghz @ 4.00GHz / Gigabyte EX58-UD5 Intel X58
Patriot Viper 6GB DDR3 PC3-12800C8 1600MHz / ATI HD 7970 3072 MB GDDR5 / Dell 2405FPW @1920 x1200 / Win7 x64