Thanks much Annihilationzh! Now that i know that, I have been able to add the feature quite easily! :D
ChinaVehicle.ini
NukeLauncher(for deployed, replace OCL)
<The Deploy weapon>
Weapon = TERTIARY DeployWeapon
AutoChooseSources = TERTIARY NONE
~~~
<How to respond after Killing Self using Deploy Weapon>
Behavior = CreateObjectDie ModuleTag_CODie
DeathTypes = NONE +EXTRA_2
CreationList = OCL_NukeLauncherDeployed
TransferPreviousHealth = Yes
End
Weapon.ini
DeployWeapon
Weapon DeployWeapon
PrimaryDamage = 500.0 ;was 150.0
PrimaryDamageRadius = 5.0 ;was 6.0
AttackRange = 5.0 ; must be very close to use this weapon!
DamageType = PENALTY
DeathType = EXTRA_2
WeaponSpeed = 99999.0
ProjectileObject = NONE
DamageDealtAtSelfPosition = Yes ; this is a suicide bomber... remember?
RadiusDamageAffects = SELF SUICIDE
DelayBetweenShots = 0
ClipSize = 1
ClipReloadTime = 0
AutoReloadsClip = No
PreAttackDelay = 2000
PreAttackType = PER_ATTACK
End
UndeployWeapon
Weapon UndeployWeapon
PrimaryDamage = 500.0 ;was 150.0
PrimaryDamageRadius = 5.0 ;was 6.0
AttackRange = 5.0 ; must be very close to use this weapon!
DamageType = PENALTY
DeathType = EXTRA_2
WeaponSpeed = 99999.0
ProjectileObject = NONE
DamageDealtAtSelfPosition = Yes ; this is a suicide bomber... remember?
RadiusDamageAffects = SELF SUICIDE
DelayBetweenShots = 0
ClipSize = 1
ClipReloadTime = 0
AutoReloadsClip = No
PreAttackDelay = 2000
PreAttackType = PER_ATTACK
End
OCL.ini
OCL_NukeLauncherDeployed
ObjectCreationList OCL_NukeLauncherDeployed
CreateObject
ObjectNames = ChinaVehicleNukeLauncherDeployed
Offset = X:0.0 Y:0.0 Z:0.0
Count = 1
Disposition = LIKE_EXISTING ; to make it seem like unit changes
PreserveLayer = Yes
End
End
OCL_NukeLauncherUndeployed
ObjectCreationList OCL_NukeLauncherUndeployed
CreateObject
ObjectNames = ChinaVehicleNukeLauncher
Offset = X:0.0 Y:0.0 Z:0.0
Count = 1
Disposition = LIKE_EXISTING ; to make it seem like unit changes
PreserveLayer = Yes
End
End
CommandButton.ini
CommandButton Command_Deploy
Command = FIRE_WEAPON
WeaponSlot = TERTIARY
Options = OK_FOR_MULTI_SELECT
TextLabel = CONTROLBAR:Deploy
ButtonImage = SNDeploy
ButtonBorderType = ACTION ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:ToolTipDeploy
InvalidCursorName = GenericInvalid
End
CommandButton Command_Undeploy
Command = FIRE_WEAPON
WeaponSlot = TERTIARY
Options = OK_FOR_MULTI_SELECT
TextLabel = CONTROLBAR:Undeploy
ButtonImage = SNDeploy
ButtonBorderType = ACTION ; Identifier for the User as to what kind of button this is
InvalidCursorName = GenericInvalid
DescriptLabel = CONTROLBAR:ToolTipUndeploy
End
The only issues with what i currently have, is that the cannon still explodes from it's suicide weapon when making the transition, i believe I'll figure out how to fix that eventually.
also, no matter what it's rank level, it is shifted to veteran upon transfer.
And the last fault, it's deployed state is undeployed, I'm sure i can fix that on my own.
Edited by user Friday, November 9, 2012 9:20:10 PM(UTC)
| Reason: Not specified