Bulldozing Mod
Posted: Thu Apr 11, 2013 1:18 am
I have a simple mod objective for the bulldozing function, but not sure how I can achieve it.
I don't want trucks (germans or allies) to be able to bulldoze other vehicles.
Is there a way to do that? I will go look for that script and see if I can add some truck logic...
It looks like I would have to edit this function and in particular the bolded area here inside the bulldoze.bsf file:
FUNCTION CHECK_ALL_BULLDOZE(me, unit, tilex, tiley)
{
int ret ;
ret = -2 ;
if (IsDeploying() != 1 )
{
// if the unit is a wreck and it is adjacent
if ((GetUnitDead(unit) == 1))
{
ret = -1 ;
if( CheckTileStep(me, tilex, tiley) == 1 )
{
ret = GetAttrib(me, "BulldozeCost") ;
}
}
}
return ret ;
}
I don't want trucks (germans or allies) to be able to bulldoze other vehicles.
Is there a way to do that? I will go look for that script and see if I can add some truck logic...
It looks like I would have to edit this function and in particular the bolded area here inside the bulldoze.bsf file:
FUNCTION CHECK_ALL_BULLDOZE(me, unit, tilex, tiley)
{
int ret ;
ret = -2 ;
if (IsDeploying() != 1 )
{
// if the unit is a wreck and it is adjacent
if ((GetUnitDead(unit) == 1))
{
ret = -1 ;
if( CheckTileStep(me, tilex, tiley) == 1 )
{
ret = GetAttrib(me, "BulldozeCost") ;
}
}
}
return ret ;
}