Jump to content
Uncle Zed

DayzCC question

Recommended Posts

I asked this on the DayZCC forum but no one's answered it there, so I figured I'd try here. In the Overview page, there's the option to "Spawn vehicles". I know this respawns any destroyed vehicles and I think it also respawns vehicles that haven't been touched in X number of days. Does anyone know how many days a vehicle has to be untouched to be respawned or if that's even the way it works? My host tells me it respawns all destroyed and broken vehicles, but I know that's not the case, as there are plenty of broken vehicles on my server, and they weren't respawned when I used that.

Share this post


Link to post
Share on other sites

It should respawn only completely destroyed vehicles.

Let me look.

edit:

SPAWN VEHICLES: Respawns ONLY completely destroyed vehicles (up to vehicle limit set in vehicle table).

RESPAWN ALL VEHICLES: Respawns all vehicles to their spawn points with full fuel and no damage.

I do not see anything checking for vehicles not used in a certain period of time, so I am going to say that it (spawn vehicles) does not respawn vehicles that have not been used for awhile.

Edited by dayz247

Share this post


Link to post
Share on other sites

It should respawn only completely destroyed vehicles.

Let me look.

edit:

SPAWN VEHICLES: Respawns ONLY completely destroyed vehicles (up to vehicle limit set in vehicle table).

RESPAWN ALL VEHICLES: Respawns all vehicles to their spawn points with full fuel and no damage.

I do not see anything checking for vehicles not used in a certain period of time, so I am going to say that it (spawn vehicles) does not respawn vehicles that have not been used for awhile.

Ah, ok. Thanks for the answer. Where did you get that from anyway? I'm glad that it only respawns destroyed vehicles, as that's what I was actually shooting for. Perhaps there's a database query I can run to respawn vehicles not used in X number of days?

Share this post


Link to post
Share on other sites

Ah, ok. Thanks for the answer. Where did you get that from anyway? I'm glad that it only respawns destroyed vehicles, as that's what I was actually shooting for. Perhaps there's a database query I can run to respawn vehicles not used in X number of days?

That should be in the database clean up button. This is where it should clean up those unused items. you can always dig around in the .php files in @dayzcc\htdocs to find out exactly what each command is telling the database to do.

Share this post


Link to post
Share on other sites

I just looked through the respawn script.

It is:

@dayzcc/htdocs/dayz/modules/lib/class.vehicles.php

And yes, it would be entirely possible to add in an unused item check. This would simply be a process of pulling down a list of vehicles, checking against the current date and deleting (see below) the vehicle.

I actually wouldn't even delete it... I would set it's damage to 1. I would perform this in the @dayzcc/htdocs/dayz/modules/actions.php right before the line "require_once(modules/lib/class.vehicles.php)" line. Then the program could continue working as normal, and would replace the vehicles you just set the damage to 1.

Share this post


Link to post
Share on other sites

I have a question I'm probably in the wrong topic but how would I increase the vehicles spawn limit?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×