Selling DZAI Land Vehicles

Status
Not open for further replies.

prue420

Well-Known Member
I got it so you can get in the vehicle but when you drive it disappears I think its infistar anyone know how I can fix this?
 
something i cant remember where in the dzai files may set vehicle damage 1 if ai is dead or it has its own cleanup
 
no its because of infistar same thing happened with evd deploy and you had to go in the setting and make it so you can sell the vehicle but dzai does not have that feature.
 
  • Like
Reactions: del
I got it go to dayz_server\DZAI\spawn_functions\spawn_vehPatrol replace _vehicle setVehicleLock "LOCKED"; with _vehicle setVariable ["ObjectID","1",true]; and you are allset you can do the same with heli patrols.
 
I got it there is a clean up when the AI get out of vehicles 900 sec change it to what you want.
 
No. It doesn't matter how long the vehicle stays... as soon as you try to interact with it, it will disappear shortly because it's not in the database...
 
no it doesn't it works fine just add this in DZAI\spawn_functions\spawn_vehPatrol and the clean up and it works fine trust me its working fine on my server.
_vehicle setVehicleLock "UNLOCKED";
_vehicle setVariable ["ObjectID","1"];
_vehicle setVariable ["ObjectUID","1"];
 
Face, perhaps you could add this as a feature?
Something like doing a
if ( DZAI_SellVehicles ) {​
_vehicle setVehicleLock "UNLOCKED";
_uniqueid = str(round(random 999999));
_vehicle setVariable ["ObjectID", _uniqueid,true];
_vehicle setVariable ["ObjectUID", _uniqueid,true];​
} else {​
_vehicle setVehicleLock "LOCKED";
}​
in spawn_functions\spawnVehiclePatrol.sqf and spawn_functions\spawnVehicle_custom.sqf as well as​
preventing the patrol car despawn in scripts\DZAI_server_monitor.sqf (line 47...)?

This would be DZMS-like behaviour, unsold vehicles would still not add to clutter because they are'nt saved to DB.

It's so much fun ambushing the patrol AI for their cars :)
 
Sorry, selling DZAI vehicles will never be a supported feature because of all the problems it brings. The AI vehicles are never meant to end up in players' possessions. You can always do the modifications yourself however.
 
OK; no problem.

Could I bother you to shortly eleborate on the potential problems, so I can watch out for them? I've never heard of DZMS having any.
 
  • Disabling cleanup for any reason is a problem in itself, you're assuming that 100% of all vehicles will be taken and sold
  • Killing the driver and gunner (if there is one) but leaving the cargo units alive will allow players to sneak into the vehicle and drive away without killing all the units. This is a huge problem in itself: the vehicle will remain immune to physics damage, have unlimited fuel/ammo, prevent the AI group from respawning (possibly permanently), and constantly pull the cargo units to the vehicle due to the anti-ditching.
  • Destroying the server's economy due to increased supply of vehicles
  • If the player(s) who killed off the vehicle AI units decide to leave the vehicle alone, other players that come by won't know this and will assume it's just another random vehicle. If they put in any valuables inside the vehicle and the server goes down, you will have to deal with a load of player frustration. On the other hand, your server will just fill up with abandoned vehicles if nobody decides to take them for whatever reason (for example, destroyed/salvaged tires).
All this is just what I thought of off the top of my head, there could be more issues that could only be found through testing (or god forbid: implementation without testing...). Whenever I develop a new feature for DZAI, predicting and accounting for potential problems or exploits is what takes up 90% of my time, actually writing code for the feature itself is actually a very small part of it. So if you decide to implement this feature yourself, be ready to think of every way that things can go wrong or be exploited.
 
Thank you!

I had only thought of 2 points:
  • the economy issue: that is void because the vehicles won't be saved to the database and thus are gone after the next restart. I don't know about other DayZ variants but Epoch seems to need its 4h restart to stay functional.
  • players who could mistake the car for a normally spawned one: DZMS handles the problem with a message 'will disappear on restart', displayed when a player gets into the car
The topic of leftover AI (in the vehicle) is a completely other can of beans, though.
So it would be (remotely) possible to ditch the driver, leave the gunner alive, climb into the vehicle, steer it around the map and let the gunner shoot the other players, being able to run over things without vehicle damage and without having to refuel or rearm and being able to ? :)

OK, I wouldn't want to encourage that mayhem, too. Better then, to have a 'warranty voided if tinkered with' label!

Again, thanks for your time answering!

BTW:

I like the new vehicle behaviour very much. On purpose or not, often, when engaged/disengaged not all of the passengers board but you're left with a very realistic 'armored vehicle + infantry escort' : foot units walking besides a slowly driving vehicle, only containing driver&gunner.

Also the driver seems to always stay inside instead of leaving the protection of the vehicle which is exactly what I'd expect of a more experienced bunch of human players.
 
Sorry, selling DZAI vehicles will never be a supported feature because of all the problems it brings.

Because of all the Problem it brings? That was a good Joke. There are no problems. There are only solutions. That they believe someone is not familiar with the matter ;-) I will soon change it as the player would like :) I'll change it so when you get in as driver in the patrol vehicle that it is correctly stored in the database. Is easily possible.
 
Last edited:
Because of all the Problem it brings? That was a good Joke. There are no problems. There are only solutions. That they believe someone is not familiar with the matter ;-) I will soon change it as the player would like :) I'll change it so when you get in as driver in the patrol vehicle that it is correctly stored in the database. Is easily possible.

I'm not joking around. If you want to destroy your server economy and fill your server up with spawned vehicles, do it yourself. Don't ask me to do it for you.
 
Status
Not open for further replies.
Back
Top