View Single Post
Old 12-13-2003, 03:55 AM   #1 (permalink)
LuftWaffle
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   Reply With Quote