How to give nukes the ability to destroy road and railway?

hermisky

Chieftain
Joined
Dec 12, 2010
Messages
10
Hi fellas,

I would like to give the nukes the ability to destroy road and railway. But I have no idea which function in CvGameCoreDLL should i modify.

Could someone give me some clues or examples?

Many Thanks,
Mimichacha

Moderator Action: 2 threads and 2 posts merged together.
 
A simpler way out will be python onNukeExplosion.
Just do a loop through each plot within the nuke radius, and destroy all routes.
 
Thanks a lot, Platyping.

Now I have one small issue left:

Inside CvPlot::NukeExplosion(), I use CvPlot::SetRout() to delete the rout. However I'm not sure about the second parameter of CvPlot::SetRout(), should it be true or false?

Currently I use CvPlot::SetRout(NO_ROUT, true). and it works fine so far. But I really would like to be sure about the second parameter. Does anyone know? true or false?
 
Back
Top Bottom