QUOTE (Nighthawk @ Oct 29 2006, 05:01 PM)

It sounds plausible. The Mobile EMP code uses two separate vehicles, a charged version and an uncharged version. When the charge bar reaches full it converts the uncharged vehicle into the charged vehicle. So make the uncharged vehicle have no weapon, and give the charged vehicle your rocket weapon. Problem is that as far as I know the Mobile EMP vehicle logic is hardcoded to the MOBILEMP and CMOBILEMP vehicles, so your rocket launcher would be able to fire an EMP when deployed. You should mess around with the code to see what results you get.
It does appear that way, but I don't think this is really the case. MOBILEMP and CMOBILEMP can't be found in the game.exe file, so I really doubt it's hardcoded. There's also nothing in the rules.ini file that tells in which vehicle the mobile emp should change when it's charged (unlike the harvester/harvester harvester without back for instance).
Ingame you also notice the Mobile EMP always uses the same image (weather charged or uncharged). It's true only one image exists for it, but if the charged and uncharged Mobile EMP 'd really be 2 different vehicles, I'm sure Westwood would've made a charged and uncharged image for them.
Another thing you can notice when you look at the description of the charged Mobile EMP is that it says "Mobile EM-Pulse (
Precharged)".
So the Mobile EMP can obviously be only one unit, weather it's charged or not and the CMOBILEMP is only used in the campaign, where in some missions you receive a fully charged mobile EMP (like in the "Quel the riot" mission).
So you can just delete CMOBILEMP and the MOBILEMP would still function perfectly and if you'd make the CMOBILEMP buildable, you'd just always build precharged Mobile EMP's.
It's a pity they aren't really 2 different vehicles actually, seeming it could be exploited nicely in many mods (especially if'd have a tag like Charged=CMOBILEMP), but seeming it's not, it does make using the Mobile EMP logic alot easier.