Question: Why cap windspeed?

Question: Why cap windspeed?

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
Jazcash
Posts: 5309
Joined: 08 Dec 2007, 17:39

Question: Why cap windspeed?

Post 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?
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: Question: Why cap windspeed?

Post 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
User avatar
Jazcash
Posts: 5309
Joined: 08 Dec 2007, 17:39

Re: Question: Why cap windspeed?

Post by Jazcash »

Oh ok, thanks. I should probably play something other than BA :oops:
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Question: Why cap windspeed?

Post 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.
User avatar
bobthedinosaur
Blood & Steel Developer
Posts: 2702
Joined: 25 Aug 2004, 13:31

Re: Question: Why cap windspeed?

Post 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?
Post Reply

Return to “Feature Requests”