Could trenches be represented on the battlemap?
You could try and mod walls...

But lets face it, this would be a lot of work for a not very good mod.