lvgamedev / simairport-modding

4 stars 4 forks source link

Change to how # of passengers on buses is calculated #88

Open TBFLash opened 4 years ago

TBFLash commented 4 years ago

The number of passengers on buses is calculated by determining the number of dropoff or pickup zones number of pax/bus (150 ? 75). I'm writing a mod that increases the number of buses per zone, so the number of passengers/hour or 24 hours is more than the current calculation. Can you change to add a new multiplier that is set in either a public parameter or via the Mod API? For instance, [In spawner]public int spawner.busmultiplier=1; _[from Game.estimated_pax_spawn_capacity_perhour] num += (int)((float)(150 count spawner.busmultiplier) (60f / (float)this.spawner.bus_interval))

I believe these are the methods that are impacted: spawner.PaxPer24Hours_Bus spawner.PaxPer24Hours_BusPickup Game.estimated_pax_spawn_capacity_per_hour

Thanks! TBFlash