Page 1 of 1
Question: Why cap windspeed?
Posted: 24 Jul 2010, 13:06
by Jazcash
This isn't so much of a request, but more of a query. Why is windspeed capped at a maximum of 25? There's a fair few maps which have higher max windspeeds than 25 but can't go higher because of the cap.
Why is there a cap and if nobody knows, could we remove it?
Re: Question: Why cap windspeed?
Posted: 24 Jul 2010, 13:34
by BrainDamage
it's not an engine's cap, it's a mod's cap:
grep -R windGenerator BA712/*
BA712/units/corwin.fbi: windGenerator=25;
BA712/units/armwin.fbi: windGenerator=25;
engine code that uses it:
Code: Select all
if (unitDef->windGenerator > 0.0f) {
if (wind.GetCurrentStrength() > unitDef->windGenerator) {
AddEnergy(unitDef->windGenerator * 0.5f);
} else {
AddEnergy(wind.GetCurrentStrength() * 0.5f);
}
}
solution: set windGenerator tags in the mod to huge numbers
Re: Question: Why cap windspeed?
Posted: 24 Jul 2010, 14:40
by Jazcash
Oh ok, thanks. I should probably play something other than BA

Re: Question: Why cap windspeed?
Posted: 24 Jul 2010, 17:15
by CarRepairer
In CA you can set the windspeed in the modoptions when you host. Set it to 7000 if you want energy so bad.
Re: Question: Why cap windspeed?
Posted: 24 Jul 2010, 21:43
by bobthedinosaur
I thought wind speed wasn't even an engine value but is set up in mods/games via lua. Is this still the case?