You would have to dePBO the add-on and change the CPP file and then PBO it up again afterwards.
You would get an error when you would attempt to play online with the edited file, but your game would not crash, but would look like you've cheated for the game(Make bullets really accurate, invulnerable troops, etc.)