Joined: 09 Mar 2008 Location: Osaka (JP)/Hong Kong/Germany
Posted: Thu May 07, 2015 10:45 am Post subject:
"Weapon modes" on a BuildingType
Subject description: What would be the best way to realize this? (if it's possible at all)
I would like to make a building to these specifications:
Certain vehicles should be able to enter it.
When entering the building, the building's weapon should change based upon the unit inside it (ie IFV or MultiGunner turret, except for vehicles), or at least it should be somehow simulated that this happens (by making the vehicle itself fire a weapon out of the building, ideally one that is different from the one it normally uses when not inside the structure).
What would be the best way to pursue this?
Tank Bunkers? But they cannot be limited to certain kinds of vehicles (unless on the vehicles themselves via Bunkerable, but that would exclude such a vehicle from ALL tank bunker types) and the weapon of the vehicle does not change based on whether it's bunkered or not.
I would say just using the vanilla TB system is the closest approximation that I _know_ would work, but is there a way to get it more to my specifications? (ie weapon change)
Gunner? Does this work on buildings? It normally doesn't, but is there a way to get it to work?
UnitAbsorb or Occupy, or some combination thereof? Vehicles cannot normally occupy buildings, but what if the building is explicitly stated to UnitAbsorb? Likewise, absorbed units cannot normally fire out of a structure, but what if the structure also has CanOccupyFire?
Ideally, the turret animation would change too (which would make Gunner the best candidate), but this is really an afterthought, it's not important to get that to work.
Or is it entirely impossible? Has this been tested before? If it hasn't been, I guess I'm off for another weekend of research. _________________
Mao Zedong wrote:
Our mission, unfinished, may take a thousand years.
You could always use a huge workaround and make the building invisible that spawns an aircraft with an obscenely low flight level with IFV logic; Use the aircraft's image as the building, give it Speed=0, you can decide whether you want it to Omnifire, and there's your building changing it's weapon depending on the passenger.
Limitations? No SHP aircraft, so your building would have to be a VXL, unless you did some more trickery with Animations.
This is all theoretical as well, as I haven't touched an INI in a long time, but AFAIK it should work. _________________ "Don't beg for things; Do it yourself or you'll never get anything." QUICK_EDIT
Joined: 22 Nov 2010 Location: Iszkaszentgyorgy, Hungary
Posted: Fri May 08, 2015 9:27 pm Post subject:
Won't work neither. IFV logic does not work with aircrafts and you cannot change spawnee types on-the-fly. _________________ "If you didn't get angry and mad and frustrated, that means you don't care about the end result, and are doing something wrong." - Greg Kroah-Hartman
=======================
Past C&C projects: Attacque Supérior (2010-2019); Valiant Shades (2019-2021)
=======================
WeiDU mods: Random Graion Tweaks | Graion's Soundsets
Maintainance: Extra Expanded Enhanced Encounters! | BGEESpawn
Contributions: EE Fixpack | Enhanced Edition Trilogy | DSotSC (Trilogy) | UB_IWD | SotSC & a lot more... QUICK_EDIT
Well throw that out the window then, thanks for correcting me so promptly I guess. _________________ "Don't beg for things; Do it yourself or you'll never get anything." QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum