:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::
Do you want to advertise at Project Perfect Mod. Find out how to do it HERE.

The time now is Sat Nov 18, 2017 8:25 am
All times are UTC + 0
 Forum index » Modding Central » Red Alert 2 Editing Forum » Ares (Unofficial Forum)
LimboLaunchers can't use ammo?
Moderators: Ares Support Team at PPM, Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [8 Posts] View previous topic :: View next topic
Author Message
EliteGoatBoy
Vehicle Driver


Joined: 03 May 2016

PostPosted: Mon Jun 26, 2017 5:47 pm    Post subject:   LimboLaunchers can't use ammo?
Subject description: Weapons with LimboLaunch=yes do not use ammo.
Reply with quote

Figured this out while testing a new dog unit while introducing a new dog attack mechanic.

The unit is called the Assault Dog. It uses the regular leap attack (LimboLaunch, Vanilla Dog attack) once before it goes on cooldown. Until then, it relies on bites (melee attacks) to fend off infantry.

While testing it in-game, I noticed that the dog constantly used the leap attack and the ammo pip never went down.

Here's all relevant bits of code:

Code:

; Psi-Corps Dog
[CDOG]
UIName=Name:CDOG
Name=Assault Dog
NotHuman=yes
Category=Soldier
Primary=EvilTeeth
ElitePrimary=EvilTeethE
Secondary=EvilBite
EliteSecondary=EvilBiteE
NavalTargeting=6
Prerequisite=NAHAND
LeadershipRating=7
CrushSound=InfantrySquish
Strength=150
Armor=none
ReselectIfLimboed=yes ; If selected when limbo and attacking infantry, reseect when unlimbo
RejoinTeamIfLimboed=yes ; If in a team when limbo shooting infantry, write it down and try to rejoin when unlimbo
DefaultToGuardArea=yes ; the much awaited dog default to move and attack when resting
TechLevel=2
Pip=white
Sight=9
Speed=8
Owner=Confederation
RequiredHouses=Confederation
Cost=150
Soylent=75
Points=10
IsSelectableCombatant=yes
VoiceSelect=DogSelect
VoiceMove=DogMove
VoiceAttack=DogAttackCommand
VoiceFeedback=DogFear
VoiceSpecialAttack=DogMove
DieSound=DogDie
Locomotor={4A582744-9839-11d1-B709-00A024DDAFD1}
PhysicalSize=1
MovementZone=Infantry
ThreatPosed=20   ; This value MUST be 0 for all building addons
ImmuneToRadiation=no
Bombable=yes
AllowedToStartInMultiplayer=no
Size=1
VeteranAbilities=STRONGER,FIREPOWER,ROF,SIGHT,FASTER,SCATTER
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
ImmuneToPsionics=yes
IFVMode=0
Natural=yes
; All units can be trained.
Trainable=yes
VeteranAbilities=STRONGER,FIREPOWER,ROF,SIGHT,FASTER
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
; This dog can detect things
DetectDisguise=yes
GuardRange=8
Sensors=yes
SensorsSight=8
; This dog uses the new dog attack system
Ammo=1
NoAmmoWeapon=1
PipScale=Ammo
ReloadIncrement=30%
Reload=200
EmptyReload=200
InitialAmmo=1

; Assault Dog Leap
[EvilTeeth]
Ammo=1
Damage=30
ROF=30
Range=3
CellRangefinding=yes
Projectile=DOGJUMP
Speed=30
Warhead=ParasiteDog ; infantry only version
FireOnce=yes
LimboLaunch=yes ; Limbo shooter at launch (one shot or become the bullet)
Report=DogAttack
FireInTransport=no;can't fire out of the BattleFortress

; Assault Dog Leap, Elite Version
[EvilTeethE]
Ammo=1
Damage=60
ROF=20
Range=5
CellRangefinding=yes
Projectile=DOGJUMP
Speed=40
Warhead=ParasiteDog ; infantry only version
FireOnce=yes
LimboLaunch=yes ; Limbo shooter at launch (one shot or become the bullet)
Report=DogAttack
FireInTransport=no;can't fire out of the BattleFortress

; Assault Dog Melee Attack
[EvilBite]
Ammo=0
Range=1.5
CellRangefinding=yes
Projectile=InvisibleLow
Speed=100
Damage=50
ROF=30
Warhead=DogBite
Report=DogAttack

; Assault Dog Melee Attack, Elite Version
[EvilBiteE]
Ammo=0
Range=1.5
CellRangefinding=yes
Projectile=InvisibleLow
Speed=100
Damage=100
ROF=30
Warhead=DogBite
Report=DogAttack


I tried to swap Secondaries with Primaries, the amount count did go down, but the Dog refused to use the Secondary weapon.

Last edited by EliteGoatBoy on Mon Jun 26, 2017 9:42 pm; edited 1 time in total

Back to top
View user's profile Send private message
Mig Eater
General


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Mon Jun 26, 2017 8:40 pm    Post subject: Reply with quote

This isn't an Ares related problem, limbo launch weapons have never been able to use ammo correctly.

This is presumably because they technically don't fire the weapon but instead become the weapon. Or the ammo gets rest once the unit unlimbos. You could try using InitialAmmo=0 & see if it resets the ammo to 0 after unlimboing.
_________________

Back to top
View user's profile Send private message Visit poster's website
EliteGoatBoy
Vehicle Driver


Joined: 03 May 2016

PostPosted: Mon Jun 26, 2017 9:34 pm    Post subject: Reply with quote

Setting InitialAmmo to 0 doesn't seem to do it. But incrementing everything by 1 kind of did the trick

Code:

; This dog uses the new dog attack system
Ammo=2
NoAmmoWeapon=1
PipScale=Ammo
ReloadIncrement=30%
Reload=200
EmptyReload=200
InitialAmmo=0
NoAmmoAmount=1


This seems to work for the dog and upping the wepaon consumption ammo to 2 works.

According to ModEnc: "Values for InitialAmmo other than ?1, which is a special case?, result in a starting ammo supply of that number plus 1."
Meaning that 0 forces the starting value to be always 1, kind of annoying though.

Back to top
View user's profile Send private message
cxtian39
Cyborg Firebomber


Joined: 11 Feb 2016
Location: The United States of China

PostPosted: Tue Jun 27, 2017 7:00 am    Post subject: Reply with quote

Does limbo launch remap correctly for vxl?
_________________
+1s +1s +1s

Back to top
View user's profile Send private message
TAK02
Chem Warrior


Joined: 28 Jun 2015
Location: ERROR: This guy is out of this world!

PostPosted: Tue Jun 27, 2017 8:32 am    Post subject: Reply with quote

AFAIK, LimboLaunch-logic supports SHPs only. Ares MIGHT have VXL-support, but I'm not quite sure.
_________________
One and only developer of C&C Supremacy
Current projects:
http://www.moddb.com/mods/ra2-supreme
http://www.moddb.com/mods/supreme-yr
YouTube Channel: https://www.youtube.com/channel/UCRJ32BRTY8UPF49Ilq3rNDw
Skype: TAK02 Supreme CnC Mods
Twitter:  TAK02 @SupremeCnCMods
m7 wrote:
I tend to release things I create so that assets are never lost to hard drive problems, accidental deletion, or me having to pretend to care about rippers taking things from my project when it is done. #Tongue

Back to top
View user's profile Send private message Send e-mail
Mig Eater
General


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Tue Jun 27, 2017 10:47 am    Post subject: Reply with quote

Limbo launch works with infantry, ground units & aircraft. It also works with both shp & vxl for either the unit or the weapon projectile.
_________________

Back to top
View user's profile Send private message Visit poster's website
cxtian39
Cyborg Firebomber


Joined: 11 Feb 2016
Location: The United States of China

PostPosted: Thu Jun 29, 2017 12:53 am    Post subject: Reply with quote

Hmm... My question is...
Is it possible to fire a remapped projectile without self-vanishing? Or it's tied to limbo launch...
_________________
+1s +1s +1s

Back to top
View user's profile Send private message
IamInnocent
Rocket Infantry


Joined: 28 Dec 2010
Location: PC, My house, Malaysia, Earth, Solar System, Universe

PostPosted: Thu Jun 29, 2017 7:51 am    Post subject: Reply with quote

^ As far as I know it only works with SHPs. Even with Ares 0.Dp1, Voxels will always remapped to orange regardless whether it is a LimboLaunch weapon or FirersPalette=yes is on the projectile. (Can request AlexB fix this.)
_________________


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [8 Posts] View previous topic :: View next topic
 Forum index » Modding Central » Red Alert 2 Editing Forum » Ares (Unofficial Forum)
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

Wildcard SSL Certificates
[ Time: 0.2079s ][ Queries: 12 (0.0939s) ][ Debug on ]