logo   login
right
Home Forums Downloads Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Forum Info
Forum Members: 18,537
Total Threads: 8,627
Posts: 94,210

Administrators:
DeeZire, Redemption

There are currently 108 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements


Generals & Zero Hour Editing Discuss any modding related issues to do with Generals and Zero Hour here.

Reply
 
LinkBack Thread Tools
Old 10-21-2003, 03:45 PM   #1 (permalink)
Junior Member
 
Join Date: Mar 2003
Location: Canada
Posts: 19
Default Modifying Generals Abilities

This has probably already been covered but I was toying with the idea of taking say the China CashHack from the command center and implementing it into the GLA's Command Center. Here's the catch though, I'm trying to get it so that it will cost 3 rank points immediately but giving you the CashHack3. Therefore there is no upgrading such as CashHack1 - 2 -3. I've gotten the generals abilities to display it fine and you can enable it but can't use it. The coding for the OCLSpecial Powers and the cash hack button is in the GLA Command Center but it doesn't show up. If anyone with experience with this topic who have a few secs to teach an idiot how to mod it would be appreciated.
Razor1811 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-21-2003, 04:35 PM   #2 (permalink)
Junior Member
 
Join Date: Oct 2003
Posts: 25
Default razor1911 eh heehheh hehhe heheh

redass1911 here
MONKEYBRAINS is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-22-2003, 07:35 AM   #3 (permalink)
Junior Member
 
Join Date: Mar 2003
Location: Canada
Posts: 19
Default

lol Any thoughts on how to get it to work then?
Razor1811 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-22-2003, 08:17 AM   #4 (permalink)
Senior Member
 
Join Date: May 2003
Location: Eindhoven, Netherlands
Posts: 2,278
Send a message via ICQ to CodeCat Send a message via MSN to CodeCat
Default

Well, first, make sure you include this in GLACommandCenter (don't forget to substitute "whatever" with your values ):

Code:
Behavior = CashHackSpecialPower ModuleTag_Whatever
SpecialPowerTemplate = SuperweaponGLACashHack
MoneyAmount = Whatever
End
Then, go to SpecialPower.ini and add this:

Code:
SpecialPower SuperweaponGLACashHack
Enum = SPECIAL_CASH_HACK
ReloadTime = Whatever
RequiredScience = SCIENCE_GLACashHack
PublicTimer = No
SharedSyncedTimer = Yes
InitiateAtLocationSound = CashHackActivate
End
Next step: Science.ini. Add this:

Code:
Science SCIENCE_GLACashHack
PrerequisiteSciences = SCIENCE_GLA SCIENCE_Rank3 ;assuming you want it at this rank
SciencePurchasePointCost = 3
IsGrantable = Yes
DisplayName = SCIENCE:ChinaCashHack1 ;this is temp but you should use your own description
Description = CONTROLBAR:ToolTipChinaScienceCashHack ;same here
End
Now your power is set up. Just need to be able to use it. So open CommandButton.ini and add this:

Code:
CommandButton Command_GLACashHack
Command = SPECIAL_POWER
SpecialPower = SuperweaponGLACashHack
Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_ENEMY_OBJECT NEED_TARGET_NEUTRAL_OBJECT CONTEXTMODE_COMMAND
TextLabel = CONTROLBAR:CashHack ;again, need to change this
ButtonImage = SSCashHack
CursorName = Hack
InvalidCursorName = GenericInvalid
ButtonBorderType = ACTION
DescriptLabel = CONTROLBAR:TooltipFireSuperWeaponCashHack ;change this too
End
Nearly there. Now just add Command_GLACashHack
to the GLACommandCenterCommandSet.
CodeCat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Modifying General's AI cncrenegade Generals & Zero Hour Editing 2 01-03-2005 09:06 PM
Adding New Generals and General's Abilities pi314159 Generals & Zero Hour Editing 9 11-10-2004 12:44 AM
Generals abilities without a command center? DarkSideDave Generals & Zero Hour Editing 9 08-13-2004 04:58 AM
Modifying SNEAK_ATTACK DarkSideDave Generals & Zero Hour Editing 12 08-04-2004 09:18 AM
Modifying paradrop into new SW??? Redeemer Red Alert 2 & Yuri's Revenge Editing 12 11-01-2003 06:58 PM


All times are GMT -4. The time now is 05:53 PM.


Design By: Miner Skinz.com
Powered by vBulletin® Version 3.7.0 Release Candidate 2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.