Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Thu Mar 28, 2024 11:19 am
All times are UTC + 0
Airburst and Splits logic help needed please
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [12 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
NucleiSplitter
Laser Commando


Also Known As: martx
Joined: 28 Oct 2016
Location: PH

PostPosted: Sat May 27, 2017 4:20 am    Post subject:  Airburst and Splits logic help needed please
Subject description: Problem solved, I decided not to...
Reply with quote  Mark this post and the followings unread

I'm making a projectile that splits at the target when it's near, but it dosen't, the other one is Airburst, and I tested it ingame, it dosen't work, i need help here please!

Here's the code:
Code:

;ScatterShot Projectile
[STshot]
Proximity=no
AA=no
AG=yes
Image=DRAGON
Inaccurate=no
SubjectToCliffs=no
SubjectToElevation=no
SubjectToWalls=no
Arcing=yes
Ranged=yes
Splits=yes
RetargetAccuracy=0.0
AroundTarget=Splits

;ClusterShot Projectile
[STshotE]
Proximity=no
AA=no
AG=yes
Image=DRAGON
Inaccurate=no
SubjectToCliffs=no
SubjectToElevation=no
SubjectToWalls=no
Arcing=yes
Ranged=yes
Airburst=yes
AirburstSpread=6
AroundTarget=Airburst

_________________
all my posts before 2020 were made by a 13 year-old, forgive these if you see any, thank you

Last edited by NucleiSplitter on Tue May 30, 2017 7:59 am; edited 2 times in total

Back to top
View user's profile Send private message
ApolloTD
Commander


Joined: 19 Nov 2003

PostPosted: Sat May 27, 2017 5:01 am    Post subject: Reply with quote  Mark this post and the followings unread

Looks like somebody needs to look at the manual/clustermissile code again as its all wrong literally. Rolling Eyes

AroundTarget is not supposed to be used like that either.

Back to top
View user's profile Send private message
NucleiSplitter
Laser Commando


Also Known As: martx
Joined: 28 Oct 2016
Location: PH

PostPosted: Sat May 27, 2017 5:36 am    Post subject: Reply with quote  Mark this post and the followings unread

So, is there anything wrong with the ScatterShot code?

_________________
all my posts before 2020 were made by a 13 year-old, forgive these if you see any, thank you

Back to top
View user's profile Send private message
Starkku
Cyborg Commando


Joined: 28 Dec 2007
Location: Finland

PostPosted: Sat May 27, 2017 9:16 am    Post subject: Reply with quote  Mark this post and the followings unread

Yeah I don't think you paid much attention to what was written in Ares documentation. You wouldn't have to ask this stuff if you did.

- You declare Splits/Airburst without defining AirburstWeapon. How do you think game knows what weapon to split the first one to? It doesn't, not without defining AirburstWeapon.

- It also does not automatically trigger Splits/Airburst. It only happens when projectile expires, as in when it either hits a target or it has reached ProjectileRange (which is defined in weapon, not projectile btw) if projectile has Ranged=yes.

- Related to the above, Arcing=yes might not work in an optimal fashion when combined with Airburst=yes. The logic was originally meant to be used with tracking projectiles (ROT > 0) which would be shot above your actual target and trigger AirburstWeapon there. With Arcing=yes this does not happen, normal trajectory is followed instead. AirburstWeapon will trigger directly on the target, or if using ProjectileRange, somewhere along the way spreading cluster potentially far away from the intended target.

- AroundTarget takes yes/no as a value. Documentation's mention about defaulting to Splits means it defaults to the value of Splits.

_________________

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID Twitter Channel URL
NucleiSplitter
Laser Commando


Also Known As: martx
Joined: 28 Oct 2016
Location: PH

PostPosted: Mon May 29, 2017 11:56 am    Post subject: Reply with quote  Mark this post and the followings unread

Okay, I wrote this on my computer, I tried, it did work until...
Code:
Basically, what I'm trying to do here is, the ScatterShot would shoot out the
ScatterBit, then on Elite, the ClusterShot would be used, the ClusterShot will
shoot out ClusterBit1, then ClusterBit1 would shoot out ClusterBit2
(In short, on elite, I'm trying to make the missile bouncy)

But it dosen't work, I did all of what Starkku said, it worked, but when I did it
with the ScatterBits/ClusterBits it dosen't, I need your help on this

;--------WEAPONS--------;

[ScatterShot]
Damage=30
ROF=30
Range=8
Projectile=STshot
Speed=70
Warhead=HE
Report=GuardianGIDeployedAttack
MinimumRange=3
Burst=3
Anim=GUNFIRE

[ScatterBit]
Damage=30
ROF=30
Range=8
Projectile=STbit
Speed=70
Warhead=HE
Report=GuardianGIDeployedAttack
Burst=2
;Anim=GUNFIRE

[ClusterShot]
Damage=40
ROF=35
Range=8
Projectile=STshotE
Speed=70
Warhead=HE
Report=GuardianGIDeployedAttack
MinimumRange=3
Burst=3
Anim=GUNFIRE

[ClusterBit1]
Damage=30
ROF=30
Range=8
Projectile=STbitE1
Speed=70
Warhead=HE
Report=GuardianGIDeployedAttack
Burst=2
;Anim=GUNFIRE

[ClusterBit2]
Damage=30
ROF=30
Range=8
Projectile=STbitE2
Speed=70
Warhead=HE
Report=GuardianGIDeployedAttack
Burst=2
;Anim=GUNFIRE

;--------PROJECTILES--------;

;ScatterShot Projectile
[STshot]
Proximity=no
AA=yes
AG=yes
Image=DRAGON
Inaccurate=no
SubjectToCliffs=no
SubjectToElevation=no
SubjectToWalls=no
Arcing=yes
Ranged=yes
Splits=yes
AirburstWeapon=ScatterBit
RetargetAccuracy=0
AroundTarget=yes

;ScatterBit Projectile
[STbit]
Proximity=no
AA=yes
AG=yes
Image=DRAGON
Inaccurate=no
SubjectToCliffs=no
SubjectToElevation=no
SubjectToWalls=no
Arcing=yes
;Ranged=yes

;ClusterShot Projectile
[STshotE]
Proximity=no
AA=yes
AG=yes
Image=DRAGON
Inaccurate=no
SubjectToCliffs=no
SubjectToElevation=no
SubjectToWalls=no
Arcing=yes
Ranged=yes
Splits=yes
AirburstWeapon=ClusterBit1
RetargetAccuracy=0
AroundTarget=yes

;ClusterBit 1 Projectile
[STbitE1]
Proximity=no
AA=yes
AG=yes
Image=DRAGON
Inaccurate=no
SubjectToCliffs=no
SubjectToElevation=no
SubjectToWalls=no
Arcing=yes
Ranged=yes
Splits=yes
AirburstWeapon=ClusterBit2
RetargetAccuracy=0
AroundTarget=yes

;ClusterBit 2 Projectile
[STbitE2]
Proximity=no
AA=yes
AG=yes
Image=DRAGON
Inaccurate=no
SubjectToCliffs=no
SubjectToElevation=no
SubjectToWalls=no
Arcing=yes
;Ranged=yes

_________________
all my posts before 2020 were made by a 13 year-old, forgive these if you see any, thank you

Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Mon May 29, 2017 12:34 pm    Post subject: Reply with quote  Mark this post and the followings unread

see what Starkku wrote and the Ares manual http://ares-developers.github.io/Ares-docs/new/projectiles/splits.html
Starkku wrote:
- It also does not automatically trigger Splits/Airburst. It only happens when projectile expires, as in when it either hits a target or it has reached ProjectileRange (which is defined in weapon, not projectile btw) if projectile has Ranged=yes.


you use MinimumRange, which is not the same as ProjectileRange



It's also helpful to write more in detail what exactly doesn't work.

Ares doc wrote:
[Projectile]?Splits= (boolean)
Whether the projectile will split into a number of other projectiles defined by Cluster and AirburstWeapon. Can be combined with Airburst. Defaults to no.

The manual clearly states you have to use Cluster for Splits logic. No key present on your first stage projectile, thus i assume game defaults to Cluster=0. That's why no second stage splits logic projectile is fired.

_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
NucleiSplitter
Laser Commando


Also Known As: martx
Joined: 28 Oct 2016
Location: PH

PostPosted: Mon May 29, 2017 2:51 pm    Post subject: Reply with quote  Mark this post and the followings unread

The MinimumRange is intended to be there on the weapon...
So, Time to mark things down, I don't have ProjectileRange and Cluster tags, and the problem is, I'm trying to make the ClusterBits bouncy by being shot again, so ClusterBit1 will be shot then when it crashes, ClusterBit2 would be shot from the landing spot of ClusterBit1, is that a bit too complex? Or am I doing the it the wrong way?

_________________
all my posts before 2020 were made by a 13 year-old, forgive these if you see any, thank you

Back to top
View user's profile Send private message
Bu7loos
Commander


Joined: 27 Jul 2011

PostPosted: Thu Jul 26, 2018 3:23 pm    Post subject: Reply with quote  Mark this post and the followings unread

Sorry for the over one year bump. But I kinda face the a problem here where my Projectile explodes in mid air which is intended but does not release its second stage weapon properly can any one help ? here is the code:

[F14AJ-AAM-6] ; Type-101 - AAM-6 Anti-Air Active Radar Homoing Long Range missile
Damage=200
ROF=10
Range=34
ProjectileRange=5
Projectile=F14AJ-AAM-6Proj
Speed=30
Warhead=SA ;F14AJ-AAM-6WH
Report=IntruderAttack
Burst=1
Anim=GUNFIRE
TurboBoost=yes
FireOnce=no

[F14AJ-AAM-6Proj]
Arm=2
Shadow=no
Proximity=no
Ranged=yes
AA=yes
AG=yes
Image=AAM-6
Airburst=no ; have also tried this with a yes but it does not seem to be working either
AirburstWeapon=F14AJ-AAML6
Splits=yes
Cluster=2
AroundTarget=yes
RetargetAccuracy=100% ; Also tried 1.0 here
;AirburstSpread=1.5
ROT=20
SubjectToCliffs=no
SubjectToElevation=no
SubjectToWalls=no

[F14AJ-AAML6] ; Type-101 - AAM-6 Anti-Air Active Radar Homoing Long Range missile
Damage=200
ROF=10
Range=34
ProjectileRange=44
Projectile=F14AJ-AAM6LPROJ
Speed=30
Warhead=F14AJ-AAM-6WH
Report=IntruderAttack
Burst=1
Anim=GUNFIRE
TurboBoost=yes
FireOnce=no

[F14AJ-AAM6LPROJ]
Arm=2
Shadow=no
Proximity=no
Ranged=yes
AA=yes
AG=yes
Image=AAM-6
ROT=80
SubjectToCliffs=no
SubjectToElevation=no
SubjectToWalls=no

[F14AJ-AAM-6E] ; Type-101 - AAM-6 Anti-Air Active Radar Homoing Long Range missile
Damage=200
ROF=10
Range=36
ProjectileRange=46
Projectile=F14AJ-AAM-6Proj
Speed=45
Warhead=F14AJ-AAM-6WH
Report=IntruderAttack
Anim=GUNFIRE
Burst=2
TurboBoost=yes
FireOnce=no

[F14AJ-AAM-6WH]
Wall=yes
Wood=yes
CellSpread=0.0
PercentAtMax=1
Conventional=yes
InfDeath=3
AnimList=S_CLSN16,S_CLSN22,S_CLSN30,S_CLSN42,S_CLSN58
ProneDamage=50%
PenetratesBunker=yes;If shot at a bunkered tank, no means the bunker gets the damage, yes means the unit does

Versus.Light(inft)=0%
Versus.Light-Medium(inft)=0%
Versus.Medium(inft)=0%
Versus.Medium-Heavy(inft)=0%
Versus.Heavy(inft)=0%

Versus.Light(unit)=100%
Versus.Light-Medium(unit)=100%
Versus.Medium(unit)=100%
Versus.Medium-Heavy(unit)=100%
Versus.Heavy(unit)=100%

Versus.Light(navy)=100%
Versus.Light-Medium(navy)=100%
Versus.Medium(navy)=100%
Versus.Medium-Heavy(navy)=100%
Versus.Heavy(navy)=100%

Versus.Light(airc)=0%
Versus.Light-Medium(airc)=0%
Versus.Medium(airc)=100%
Versus.Medium-Heavy(airc)=100%
Versus.Heavy(airc)=100%
Versus.Heavy(airc)(airship)=200%

Versus.Light(buld)=100%
Versus.Light-Medium(buld)=100%
Versus.Medium(buld)=100%
Versus.Medium-Heavy(buld)=100%
Versus.Heavy(buld)=100%

Versus.Light(dfnc)=100%
Versus.Light-Medium(dfnc)=100%
Versus.Medium(dfnc)=100%
Versus.Medium-Heavy(dfnc)=100%
Versus.Heavy(dfnc)=100%



F-14 Split Weapon.gif
 Description:
 Filesize:  814.23 KB
 Viewed:  1487 Time(s)

F-14 Split Weapon.gif



Back to top
View user's profile Send private message
Bu7loos
Commander


Joined: 27 Jul 2011

PostPosted: Thu Jul 26, 2018 3:56 pm    Post subject: Reply with quote  Mark this post and the followings unread

Also, I tried another Airburst weapon which is the IFV normal hover missiles and it worked. I do not know why it does not work well with new defined weapons  Confused

Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Thu Jul 26, 2018 5:36 pm    Post subject: Reply with quote  Mark this post and the followings unread

are the second stage weapons set on a weedguy dummy unit (or IIRC Ares added for that a [Weapons] section)?

Try raising Arm on the second stage cluster projectile to something like 10000 which forces the projectile to move and not insta-jump-down-hit.

I would also suggest a better ID naming. Special chars like - are pretty risky on this old engine which might even truncate every name longer than 8 chars to something like xxxxxx~1 (in your case that would result in all of your IDs to be truncated into the same name).

_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
Bu7loos
Commander


Joined: 27 Jul 2011

PostPosted: Thu Jul 26, 2018 8:28 pm    Post subject: Reply with quote  Mark this post and the followings unread

Quote:
are the second stage weapons set on a weedguy dummy unit (or IIRC Ares added for that a [Weapons] section)?


Yup that did it. Thanks LKO ! I was honestly thinking it was the only thing left but it never crossed my mind that it was in ARES  Shocked

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


Joined: 11 Feb 2016

PostPosted: Thu Jul 26, 2018 10:29 pm    Post subject: Reply with quote  Mark this post and the followings unread

Lin Kuei Ominae wrote:
I would also suggest a better ID naming. Special chars like - are pretty risky on this old engine which might even truncate every name longer than 8 chars to something like xxxxxx~1 (in your case that would result in all of your IDs to be truncated into the same name).
In YR maximum name length is 24 iirc, longer names get truncated. You can use this property to trick someone who tries to read your rules so that he never finds the right sections #Tongue

_________________

Back to top
View user's profile Send private message Skype Account
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [12 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
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

[ Time: 0.1911s ][ Queries: 14 (0.0112s) ][ Debug on ]