IPB

Welcome Guest ( Log In | Register )


 
Reply to this topicStart new topic
> Mobile emp code
El_Serpiente
post Oct 29 2006, 01:19 AM
Post #1


Disc Thrower
Group Icon

Group: Members
Posts: 88
Joined: 21-October 06
From: Whakatane, New Zealand
Member No.: 31
Alliance: Forgotten
Favorite game: Tiberian Sun



Can the code for the Mobile emp's charge be used to show the reload progress of, say, a rocket launcher with a half miniute load time?
Go to the top of the page
 
: | +Quote Post
Nighthawk
post Oct 29 2006, 04:01 PM
Post #2


Disc Thrower
Group Icon

Group: Members
Posts: 98
Joined: 21-October 06
From: Northern Ireland
Member No.: 42
Alliance: GDI
Favorite game: Tiberian Sun



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.


--------------------


Go to the top of the page
 
: | +Quote Post
Bittah Commander
post Oct 29 2006, 05:06 PM
Post #3


Forum Administrator
Group Icon

Group: Administrators
Posts: 1,340
Joined: 1-October 06
From: The Netherlands
Member No.: 5
Alliance: GDI
Favorite game: Tiberian Sun



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.


--------------------
Go to the top of the page
 
: | +Quote Post
Nighthawk
post Oct 29 2006, 09:19 PM
Post #4


Disc Thrower
Group Icon

Group: Members
Posts: 98
Joined: 21-October 06
From: Northern Ireland
Member No.: 42
Alliance: GDI
Favorite game: Tiberian Sun



What if you gave each vehicle a different Image= tag? If there are two separate rules entries, then would it not make sense that they parse Image tags on both entries?
I'm just guessing there's some hardcoded elements to it because it doesn't define anywhere what weapon to fire when it's deployed, and, like you said, it doesn't mention what vehicle to change into while charged.


--------------------


Go to the top of the page
 
: | +Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 25th November 2026 - 06:04 AM


XGhozt.com