#do all crashed ambulances have 100 quality?
1 messages · Page 1 of 1 (latest)
No ?
@flat owl @mint kiln both crashed ambulances in my world have 100% quality. That's not luck
That is lucky yes
You can find other posts on Reddit with people seemingly consistently finding balances with 100 quality
Engine condition is determined upon vehicle creation with a maximum of 100
Well it's actually quality
Emergency vehicles will usually have higher engine quality than normal vehicles
Condition is a different value that determines chance to stall
Yes but I'm talking about ambulances specifically spawn in wrecks with 100
And not guaranteed
Can you prove it in-game?
Just read the wiki or go to debug mode and test it yourself if you doubt it
Fyi I do a lot more than read the wiki
What do these links prove again?
That ambulances spawn with 100 quality for some reason
That other people have found perfect quality ambulances?
As I said it is still luck-based and more common for emergency vehicles like ambulances
It is about 1 in 20 for a 100 quality ambulance
If you really want go scour online clips and images for people checking ambulances
That's the spawn rate for ambulances in a parking stall
The traffic jams or other vehicle events are in java and they use the same spawn tables from lua with different mechanics
That is also the chance for a perfect quality ambulance since emergency vehicle quality will randomly range from 80-100 as I already said
If you can find that every ambulance spawning in jams has 100 quality it may have something to do with the spawning of vehicles inside jams being different from normal vehicle spawning but that may not be exclusive to ambulances
it's not
tire change event will always use one of the 6 vehicles from the "good" category.
the rates are the same but the part condition and is definitely not the same 1.2 baseVehicleQuality as a "good" parking spot
If that is the case it still wouldn't guarantee perfect condition just make it more common
And it wouldn't be exclusive to ambulances
that's my personal chart
btw Wiki is definitely doesn't contain all the info in the game
and neither does the lua scripts
proof from RVSChangingTire.java
case "vehicle1":
var10 = this.addVehicle(var8, var2.position.x, var2.position.y, var7, var2.direction, "good", (String)null, (Integer)null, (String)null);
if (var10 != null) {
var10.setGeneralPartCondition(0.7F, 40.0F);
var10.setRust(0.0F);
VehiclePart var13 = var10.getPartById(var9 ? "TireRearRight" : "TireRearLeft");
var10.setTireRemoved(var13.getWheelIndex(), true);
var13.setModelVisible("InflatedTirePlusWheel", false);
var13.setInventoryItem((InventoryItem)null);
this.addZombiesOnVehicle(2, (String)null, (Integer)null, var10);
var1.setParameter("vehicle1", var10);
I guess what I have to do is find what setGeneralPartCondition exactly does and see what it looks like in the trafficJam event
found an ambulance in the wild. NOT a vehicle event. 84 quality (within the 80-100 range)
crashed utility vehicle (84 quality)
found 2 police cars with 100 and 96 quality
finally an embulance. and its 100 quality
another ambulance in a parking stall. not 100
lucky parking lot. another one inthe same lot
ambulance wreck. not 100
something about these vehicles seems to have a higher chance of being a solid 100 rather than a truly random value between 80 - 100
100 and 98
Engine quality doesn’t matter when the condition is on like 10%
Now
Most emergency vehicles do have very high engine quality
But condition is usually horrible
yeah but the first image I posted in this thread is my ambulance that I fixed up from 8%. It is definitely doable once you level mechanic to around 8
That takes ages
But yes
takes 3/4 high quality cars to fix it up to 80% ish
yep, I know they do but I was particularly interested at how many 100% vehicles I saw rather than a normal distribution between 80% - 100%
100% isn’t super rare or anything
right, that's my point
it's shockingly common
more common than finding 90%
thing about 100% is that it ignores the startup chances which is usually balanced around a 20% failure
but 100 condition means it starts up with only a 1% failure
yes sir, crashed vehicles tend to have higher quality engines to make wrecks worthwhile instead of just picking a car on a parkinglot
I think that's more tied to utility vehicles than wrecks
so according to Vehicles.lua, vehicles will NOT stray from the 100 engine quality if it is spawning without a "type" which is the zone of the car
if type then
local baseQuality = vehicle:getScript():getEngineQuality() * type:getBaseVehicleQuality();
-- bit of randomize
engineQuality = ZombRand(baseQuality - 10, baseQuality + 10);
end
engineQuality = ZombRand(engineQuality - 5, engineQuality + 5);```
so that explains why the cars are more than often 100
95 - 105 quality but it is maximized at 100
Did a writeup on all this here. https://www.reddit.com/r/projectzomboid/comments/1cgevlw/til_ambulances_wrecks_will_spawn_with_100_engine/
closing thread.