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,668
Posts: 94,535

Administrators:
DeeZire, Redemption

There are currently 49 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-13-2003, 02:55 AM   #1 (permalink)
Junior Member
 
Join Date: Jul 2003
Posts: 11
Default Paradrop unit ability

Hey everyone, I've looked all over these forums and elsewhere for a solution to this problem, hopefully you all know more about it than I do.

I'm trying to make it so that when an air force ranger reaches a certain veterancy level, he can call for reinforcements by air every so-many minutes. I've got the veterancy detection thing working, it changes command sets when he reaches a certain rank. What I'm having trouble with is actually getting the paradrop onto the calling ranger's position. I can make it work like the standard paradrop special ability just fine, but I want to force it to send the rangers to the calling ranger's position.

Does anyone know how to make a special ability like the ranger drop happen at a different location?

Here's the code I have done so far, minus the veterancy detection (simple code, unneeded):
SpecialPower.ini:
SpecialPower RangerBackup
Enum = SPECIAL_TERROR_CELL
ReloadTime = 1000 ; in milliseconds
PublicTimer = No
SharedSyncedTimer = No
ShortcutPower = No ;Capable of being fired by the side-bar shortcut.
End

This is the button added to each ranger with the required veterency:
CommandButton.ini:
CommandButton Command_AmericaRangerBackup
Command = SPECIAL_POWER
SpecialPower = RangerBackup
TextLabel = CONTROLBAR:Paradrop
ButtonImage = SACParatroopers
ButtonBorderType = ACTION ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:TooltipParaDrop
InvalidCursorName = GenericInvalid
END

Two different methods I tried in AirforceGeneral.ini (airf_ranger entry):
Behavior = SpecialAbility ModuleTag_23
SpecialPowerTemplate = RangerBackup
InitiateSound = RangerVoiceCapture
End
Behavior = OCLSpecialPower ModuleTag_24
SpecialPowerTemplate = RangerBackup
OCL = SUPERWEAPON_Paradrop3
CreateLocation = CREATE_AT_EDGE_NEAR_SOURCE
End

This is added to the cargo plane that delivers the rangers (americavehiclecargoplane):
Behavior = OCLSpecialPower ModuleTag_18
SpecialPowerTemplate = RangerBackup
OCL = SUPERWEAPON_Paradrop3
CreateLocation = USE_OWNER_OBJECT
ScriptedSpecialPowerOnly = Yes
End

So, anyone have any idea? Thanks a lot.
LuftWaffle is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-13-2003, 05:22 AM   #2 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: UK
Posts: 676
Send a message via MSN to DJRowley
Default

You could do it so that the ranger 'builds' an invisble beacon which calls them in. You give the beacon the supply drop OCL behaviour so tht it calls the ocl 10ms after being built and set it so it kills itself after about 20ms.
DJRowley is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-13-2003, 02:45 PM   #3 (permalink)
Junior Member
 
Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 9
Send a message via MSN to MrTinkles Send a message via Yahoo to MrTinkles
Default

When you give a unit the supply drop zone ocl, the commandset of the unit automatically changes to the supply drop zone slider/timer.

This is an automatic trigger from using the OCL Update module tag.

Would there be a way to prevent this from happening ?
MrTinkles is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-13-2003, 03:00 PM   #4 (permalink)
Junior Member
 
Join Date: Jul 2003
Posts: 11
Default

Hmm well I tried doing that, but it seems like the problem is that I'm never even getting to the module tags in my ranger:

AirforceGeneral.ini (airf_americainfantryranger):
Behavior = SpecialAbility ModuleTag_23
SpecialPowerTemplate = RangerBackup
InitiateSound = RangerVoiceCapture
UpdateModuleStartsAttack = Yes
End

The sound is never played. In fact, the button doesn't seem to do anything at all, despite the code that I pasted above. I can press it over and over again no matter what ReloadTime I specify.

Thanks for the help
LuftWaffle 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
money and ability problem Kaine Generals & Zero Hour Editing 8 07-30-2005 06:58 AM
PCTeen1's Unit Paradrop Tutorial Released! EvilViking Generals & Zero Hour Editing 33 06-24-2004 09:52 PM
GLA Rebel Added Ability HateCorp Generals & Zero Hour Editing 3 10-17-2003 10:50 PM
New Special Ability Idea Carbon Generals & Zero Hour Editing 16 06-08-2003 11:27 AM
Multiple Unit Paradrop mastermind2003 Generals & Zero Hour Editing 24 05-21-2003 11:43 AM


All times are GMT -4. The time now is 09:57 PM.


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