Is it possible to have an unit have the hover movetype when at sea, and kbot movetype when at land? I'm thinking mostly of pelicans, currently they have movement bonuses for hovers because of typemap also when moving on land, and we want to chanage that.FLOZi wrote: http://github.com/spring/spring/blob/ma ... veInfo.cpp
c.f. lines 102, 103 (ship/boat hardcoding) and 110 in particular for hover. 123 to 126 for tank / kbot. A movetype that doesn't specify SHIP, BOAT, HOVER or TANK will default to KBOT - so if you're missing a keyword in the name it should not crash and in fact the unit should still move around just fine, on land at least.
Grepping through the code, TEDClass appears to only be used to distinguish factories (PLANT) vs builders.(c.f. UnitDefHandler.cpp lines 499 & 606)
I know that pelicans always have technically been hovers in all mods that have pelicans.