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

Forum Info
Forum Members: 18,617
Total Threads: 8,723
Posts: 95,213

Administrators:
DeeZire, Redemption

There are currently 32 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 04-15-2003, 12:35 AM   #1 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: USA
Posts: 167
Send a message via AIM to TheGreatVirus Send a message via MSN to TheGreatVirus
Default SpecialPower ?

How does this work is it defined somewhere? How can others be added? Is it a template? :/

Enum = SPECIAL_PARADROP_AMERICA
TheGreatVirus is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-15-2003, 04:05 AM   #2 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: Netherlands
Posts: 139
Default

In one of my posts regarding the topic of creating a new superweapon (it was about the tomahawk barrage I created ages ago for fun and posted a thread about it), I stated that the Enum bit is HARDCODED.

However scary it sounds, it just means (in this case), that superweapons have their enums defined in the hardcoded part of Generals. You should be able to use any EXISTING Enum to create any new superweapon (without overwriting any).

Still, I had some problems when I used the paradrop one, although the crashes might have been triggered by other things. I know for sure that the enum for the artillery barrage works on all new stuff, but in theory, you should be able to use any existing enum.

Adding new enums (well, defining that is), will result in a crash. The enum doesn't have any significant effect on the workings though.

To be short:

Enums ae hardcoded, so you can't add new enums. Using existing enums is the key to define new SWs, wherein enums can be used mutliple times....
CopyKat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-15-2003, 09:45 AM   #3 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: USA
Posts: 167
Send a message via AIM to TheGreatVirus Send a message via MSN to TheGreatVirus
Default

That really sucks.... :cry:

Too bad this is not hardcoded into the game anymore:

Enum = SPECIAL_RADIO_JAM
TheGreatVirus is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-15-2003, 10:25 AM   #4 (permalink)
Administrator
 
DeeZire's Avatar
 
Join Date: Dec 2002
Posts: 1,913
Send a message via ICQ to DeeZire
Default

I got problems with the Paradrop enums too, I think because an element of their coding includes the fact that they can be upgraded (rather like the Emergency repair). SPECIAL_CRATE_DROP makes a useful alternative though.
__________________
DeeZire 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
Radio Jam Specialpower? CCGX Generals & Zero Hour Editing 17 05-26-2005 06:19 PM
SpecialPower type? DJRowley Generals & Zero Hour Editing 2 06-11-2004 08:04 AM
SpecialPower Defector as weapon gdon Generals & Zero Hour Editing 10 06-05-2004 08:15 PM
Specialpower help needed The_Blind_One Generals & Zero Hour Editing 13 11-03-2003 09:10 AM
adding a new specialpower weapon... CarmaPlayer Generals & Zero Hour Editing 18 04-15-2003 07:36 PM


All times are GMT -4. The time now is 06:28 PM.


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