saminal Posted December 7, 2021 Share Posted December 7, 2021 (edited) I decided with the extra options for vehicles in the game I'd like a respawner mod that would be more randomised. This mod will allow cars, army trucks, service trucks, ambulances and buses to respawn to a similar vehicle after a few hours. Cars will respawn to a random car (with a random stage of damage) Army trucks (open or closed) will respawn to a randomly open or closed army truck Service trucks and ambulances are grouped together to respawn each other Big buses will respawn big buses, the short school bus will respawn itself - to avoid respawning through parts of buildings. Download here - file will be updated automatically as the mod is updated. Edited December 7, 2021 by saminal clarification of server side friendliness (see edit history) 4 Link to comment Share on other sites More sharing options...
CrazyDave66 Posted December 7, 2021 Share Posted December 7, 2021 (edited) . Great mod; say is this server side only mod or does the client need to install this too? Edited December 7, 2021 by CrazyDave66 (see edit history) Link to comment Share on other sites More sharing options...
saminal Posted December 7, 2021 Author Share Posted December 7, 2021 2 minutes ago, CrazyDave66 said: . Great mod; say is this server side only mod or does the client need to install this too? I always forget to specify that - all my mods are server-side Link to comment Share on other sites More sharing options...
mprojekt Posted January 4, 2022 Share Posted January 4, 2022 Hallo Saminal, I am still quite the tyro regarding xml, and coding in general, so I apologize that what follows is obvious to a professional or hobbyist software engineer. I am far more comfortable throwing lead and launching 227mm rockets, and even that was 30 years ago. Which attribute do we alter to extend the amount of time before respawn occurs? I found prob=".3" in blockplaceholders.xml and that seems to be what I would want to change, but I wish to make sure prior to committing to any edits. example on Line 13 Quote <block name="cntBusSchool" prob=".3"/> If prob ("probability" from what I can glean) is the attribute I should change, does the ".3" represent the probability of the block spawning at any time during an in-game day? Best regards, mprojekt Link to comment Share on other sites More sharing options...
saminal Posted January 4, 2022 Author Share Posted January 4, 2022 2 hours ago, mprojekt said: Which attribute do we alter to extend the amount of time before respawn occurs? In the blocks.xml you will see a number of blocks called "RandomRespawner". On each of these there is a property "PlantGrowing.GrowthRate", for example line 97. This value is in minutes, so if you'd like to extend it to a week, assuming you have 1 hour days, you would set it to 420. Do this on each of the RandonRespawner blocks 1 Link to comment Share on other sites More sharing options...
mprojekt Posted January 5, 2022 Share Posted January 5, 2022 6 hours ago, saminal said: In the blocks.xml you will see a number of blocks called "RandomRespawner". On each of these there is a property "PlantGrowing.GrowthRate", for example line 97. This value is in minutes, so if you'd like to extend it to a week, assuming you have 1 hour days, you would set it to 420. Do this on each of the RandonRespawner blocks Oho? I was looking at the wrong variable or attribute, indeed the wrong file, all along! Thank you for the correction and the advice! 😊 Link to comment Share on other sites More sharing options...
Real_ASP_Sy Posted February 12, 2022 Share Posted February 12, 2022 Hi sorry to just drop in, but I have a quick question. Can this mod be added to a server already active, or does it need to be applied to a fresh world? I have a lot of players that don't wanna lose their progress! TIA Link to comment Share on other sites More sharing options...
saminal Posted February 12, 2022 Author Share Posted February 12, 2022 6 hours ago, Real_ASP_Sy said: Hi sorry to just drop in, but I have a quick question. Can this mod be added to a server already active, or does it need to be applied to a fresh world? I have a lot of players that don't wanna lose their progress! TIA It can be added to an existing world without causing errors, but any car wrecks or trucks that already exist in the world will fail to respawn as they were generated before the extra code went in. Only wrecks and trucks that come from POI resets or manually placing them will respawn going forward. Link to comment Share on other sites More sharing options...
Real_ASP_Sy Posted February 14, 2022 Share Posted February 14, 2022 On 2/12/2022 at 8:35 PM, saminal said: It can be added to an existing world without causing errors, but any car wrecks or trucks that already exist in the world will fail to respawn as they were generated before the extra code went in. Only wrecks and trucks that come from POI resets or manually placing them will respawn going forward. Thank you for getting back to me, much appreciated. 1 Link to comment Share on other sites More sharing options...
tanman Posted March 19, 2022 Share Posted March 19, 2022 Quick question. If take a vehicle right down and want to build there, will it still respawn? Link to comment Share on other sites More sharing options...
saminal Posted March 19, 2022 Author Share Posted March 19, 2022 3 minutes ago, tanman said: Quick question. If take a vehicle right down and want to build there, will it still respawn? Yes, when you dismantle it you'll see a snowy shrub left behind. If you remove the block underneath the shrub, it'll fall and then you can build over it without worrying about the vehicle coming back. Link to comment Share on other sites More sharing options...
Blackgryphon Posted August 16, 2022 Share Posted August 16, 2022 I am wondering if anyone can get this working in Undead Legacy. I am trying to add a car respawner to my server due to massive request of the players. Link to comment Share on other sites More sharing options...
kydyr Posted February 5, 2023 Share Posted February 5, 2023 Question: Will this work with the Vehicle Madness Mod? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now