Page 1 of 1
builddistance set to low value ignored?
Posted: 26 Sep 2006, 23:19
by Caydr
Got a unit here that I want to be right up next to whatever it's building. But it looks like the minimum value is 32 or so for builddistance. Lower than that, it just ignores it and builds from about 32 units or so away. Anyone know a way to bypass this or otherwise can it be fixed?
Thanks
Posted: 27 Sep 2006, 20:15
by Caydr
I'm guessing this might be related to a low resolution mipmaplevel thing like I mention in that other thread about jammers.
Posted: 27 Sep 2006, 21:27
by knorke
Maybe you can move the "Nanolator Point" closer to the middle of the unit, so it can't get as near?
Posted: 27 Sep 2006, 21:37
by Archiver
builddistance has a hardset minimum of 128 according to the code, maybe I'm mistaken...
Posted: 27 Sep 2006, 21:42
by Caydr
Archiver wrote:builddistance has a hardset minimum of 128 according to the code, maybe I'm mistaken...
You better be mistaken.
Posted: 27 Sep 2006, 22:12
by Archiver
Sim\Units\UnitDefHandler.cpp
Code: Select all
ud.buildDistance=atof(tdfparser.SGetValueDef("64", "UNITINFO\\Builddistance").c_str());
ud.buildDistance=std::max(128.f,ud.buildDistance);
Shouldnt the default value be 128 if it's then being raised up to 128 or above?