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

Forum Info
Forum Members: 18,581
Total Threads: 8,669
Posts: 94,547

Administrators:
DeeZire, Redemption

There are currently 40 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 12-29-2003, 06:35 PM   #1 (permalink)
Administrator
 
DeeZire's Avatar
 
Join Date: Dec 2002
Posts: 1,913
Send a message via ICQ to DeeZire
Default Sharing Funds In Zero Hour :)

I havent tried this, but just thinking out loud I think theres a reliable way of restoring the ability that allowed sharing of funds between allies in multiplayer

1 - make a new 'superweapon' thats a clone of the China Generals Ability (Cash Hack). On its CommandButton, just stick NEED_TARGET_ALLY_OBJECT in the Options line - you can only use it on allied Supply Centers.

2 - give it to your supply center. By tweaking the special power code, you can determine how much cash you can 'steal' (borrow) from your ally.

4 - Edit EVA.INI so theres a new entry called EVA_ReceivedFundsAlly - allocate the relevant speeches to it (unused, in Audio.BIG).

3 - In SkirmishScripts.scb, write a new script in the PlyrCivilian folder that says 'If Player <LocalPlayer> Completed Using Special Power <Your New Special Power> Then 'EVA_ReceivedFundsAlly' Plays Allowing Overlap = FALSE

Voila!!

If you want to get smart, you can make a 'dummy' superweapon in the supply center too along with relevant scripts that just trigger the 'Your Ally Has Requested Funds' and 'You Have Requested Funds From Your Ally' speeches

For extra tweak value, give the special power command button CursorName = InvalidBuild, and make the InvalidBuild entry in Mouse.INI allocating SCCSell to it - you then have a nice cash cursor when using the power.

If anyone has a go and gets any reliable results, I'd be interested in knowing.
DeeZire is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-29-2003, 06:39 PM   #2 (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

Nice! Pity you can only take the funds not give them. Giving them would be better as it won't allow greedy allies to take everything... But still, the concept is nice.
CodeCat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-29-2003, 06:46 PM   #3 (permalink)
Administrator
 
DeeZire's Avatar
 
Join Date: Dec 2002
Posts: 1,913
Send a message via ICQ to DeeZire
Default

Yep, but the beauty is that the Cash Hack self-validates - you cant take more than the player has, and by editing the special power code for your supply center you can specify the max amount to take (say $1000)

EDIT: Thought - if you edited the code so you TOOK a NEGATIVE amount, youd actually GIVE them cash. You could then tweak the code to deduct that same amount from you when you use the special power
DeeZire is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-29-2003, 06:47 PM   #4 (permalink)
Member
 
Join Date: Dec 2003
Location: Hawaii...unfortunately
Posts: 42
Send a message via ICQ to Syco Send a message via AIM to Syco Send a message via MSN to Syco Send a message via Yahoo to Syco
Default

Couldn't you make it a negative number?
"Steal -$1000" could be read as "give 1000"
That way your ally couldn't take from you when he/she wanted.
Syco is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-29-2003, 06:50 PM   #5 (permalink)
Senior Member
 
Join Date: May 2003
Location: South East USA
Posts: 1,247
Send a message via ICQ to Opals25 Send a message via AIM to Opals25 Send a message via MSN to Opals25 Send a message via Yahoo to Opals25
Default

Yeah, make it steal -1000, and make the upgrade cost 1000 bucks to use. that way it evens it out.
Opals25 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-29-2003, 06:59 PM   #6 (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

The logic will probably fail when you don't have 1000, because it wasn't made for that. I expect it to either crash when you start the game, or crash when you try to use it without enough cash.
CodeCat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-29-2003, 09:22 PM   #7 (permalink)
Senior Member
 
Join Date: Feb 2003
Location: USA
Posts: 853
Send a message via AIM to mastermind2003 Send a message via MSN to mastermind2003
Default

I would be surprised if using a negative number worked. There might be error checking to prevent that, or it could be that they just used unsigned integers, so that a negative number looks like a positive number. Somebody should try this though. It could be interesting.
mastermind2003 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-29-2003, 10:30 PM   #8 (permalink)
Senior Member
 
Join Date: Dec 2002
Location: Nod base
Posts: 172
Default

i tried use a negative number for cashhack in generals and it doesn't work.btw i made some code so you can give money to you ally,a bit complex though.
ravage is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-30-2003, 04:48 AM   #9 (permalink)
Member
 
Join Date: Dec 2003
Location: Hawaii...unfortunately
Posts: 42
Send a message via ICQ to Syco Send a message via AIM to Syco Send a message via MSN to Syco Send a message via Yahoo to Syco
Default

Well let's see that code capitain...successful..at stuff...man...
-Syco
Syco is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-30-2003, 07:28 AM   #10 (permalink)
Senior Member
 
Join Date: Dec 2002
Location: Nod base
Posts: 172
Default

http://www.deezire.net/modules.php?n...585&highlight=

and i think you can add some scripts,so when your money is less than,like,1000,remove the "give" button.and when it's more than 1000,readd it.
ravage 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
YR: Zero Hour genobreaker Red Alert 2 & Yuri's Revenge Editing 9 10-31-2005 03:55 AM
Multiplayer Modding-sharing/giving kppo57ultra Red Alert 2 & Yuri's Revenge Editing 46 08-21-2004 09:34 PM
Sharing $ With Allies In Multiplayer? Colton Generals & Zero Hour Editing 20 06-04-2004 03:37 PM
Zero Hour TheOnlyCreature Generals & Zero Hour Editing 8 10-09-2003 04:23 PM
Money Sharing? smurfbizkit Generals & Zero Hour Editing 10 07-21-2003 06:59 AM


All times are GMT -4. The time now is 12:41 PM.


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