Enable the console and set developer to 2, then start a map and see if there are any errors. It's possible that you changed the name of a message function, causing the client to no longer receive battery state changes. If that's the case, it'll print an error in the console. You'll have to change this code:
Code:
gmsgBattery = REG_USER_MSG( "Battery", 2 );
to the new name of the message function on the client side.
CHudBattery has a method called MsgFunc_Battery, whatever you changed it to, change "Battery" to match the part after MsgFunc_.
If that's not the problem, then you'll have to see if any other errors are printed. Make sure there are no errors or warnings while compiling, and check if the code that hooks the hud element into the list of hud elements still works.