Help - Search - Members - Calendar
Full Version: Why dozer don't get caught by demo traps?
SWR Productions Forum > Game Modding and Development > Generals/Zerohour Modding
A34Comet
I didn't expect that a question since I didn't realize that except original dozers and workers, other vehicle won't be spared by demo trap even if they have disarm weapon and landmine damage profe.

The dozers' code seems pretty simple and nothing funcy modeltag in there, how did dozer make themself a exception when they approach to disarm a demotrap?
ai_beyondcontrol
After a few preliminary test I currently believe that the primary factor is that the original worker/dozer unit's clear mine weapon is set in the MINE_CLEARING_DETAIL weapon set and is triggered by a CmdBtn which USES_MINE_CLEARING_WEAPONSET. Just having mine-proof armor and/or having a disarm weapon in a unit's normal weapon set do not have the same effect. Actually even the units with a mine-clearing weapon set and a clear-mine CmdBtn are spared by the land mines only when they are MANUALLY ordered to disarm mines in the region containing landmine. Moving them into a mine field without this results in normal explosion of the mine and cause damage to the mine-clearing unit.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.