I'm not familiar with the source material, but I do have a (relatively) simple piece of code that simulates certain combat encounters. It's not a complete combat simulation, but I've used it before to look at critical fail probabilities (here), damage from special ammo (here), and a comparison...