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 Jul 25, 2024 4:10 am
All times are UTC + 0
Secondary to fire at what primary can't
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [8 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Overmind
Rocket Infantry


Joined: 05 May 2022

PostPosted: Mon Oct 16, 2023 5:21 am    Post subject:  Secondary to fire at what primary can't Reply with quote  Mark this post and the followings unread

This is something that does not seem to work, even nothing prevents it to.

Let's take the dog byte as example: it works against infantry types unless they have Unnatural or different type of armor (like tank armor).

But adding a secondary weapon with proper WH against that armor type will not result in the unit being attacked.

Is there a solution to this ?

Reversing primary and secondary is also no-go, because then everything will be attacked with the new primary.

Even easier example: Yuri clone MK. A secondary weapon will not fire at the things he cannot MK with primary (like another Yuri clone).

Back to top
View user's profile Send private message
Ousagi
Cyborg Soldier


Joined: 02 Nov 2022

PostPosted: Mon Oct 16, 2023 6:43 pm    Post subject: Reply with quote  Mark this post and the followings unread

Parasite, Mind Control and Temporal weapons are probably special. In Ares, you can't convert units with these weapons.

Tried with these weapons as primary and secondary and works fine:
Code:
[Anti-Infantry]
Damage=15
ROF=20
Range=4
Projectile=InvisibleLow
Speed=100
Warhead=Bullet
Report=GIAttack
Anim=MGUN-N,MGUN-NE,MGUN-E,MGUN-SE,MGUN-S,MGUN-SW,MGUN-W,MGUN-NW
OccupantAnim=UCFLASH

[Anti-Tank]
Damage=60
ROF=65
Range=5.5
Projectile=Cannon
Speed=40
Warhead=Shell
Report=RhinoTankAttack
Anim=GUNFIRE
Bright=yes

[Bullet]
Verses=100%,80%,80%,0%,0%,0%,75%,50%,25%,100%,100%
InfDeath=1
AnimList=PIFFPIFF,PIFFPIFF
Bullets=yes

[Shell]
CellSpread=.3
PercentAtMax=.5
Wall=yes
Wood=yes
Verses=0%,0%,0%,75%,100%,100%,65%,45%,60%,60%,100%
Conventional=yes
InfDeath=3
AnimList=S_CLSN16,S_CLSN22


The other way would be to deploy them similar to Terror Drones in Red Ressurection to change to secondary weapon. That could be the only solution for these types of weapons. But your unit will stay in that cell.

Tried it with a Rhino Tank with 120mm that can only attack Units and Secondary as MindControl and the tank doesn't mind control any infantries even with proper WH

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


Joined: 24 Jul 2010
Location: Liyue

PostPosted: Sun Oct 22, 2023 5:52 am    Post subject: Reply with quote  Mark this post and the followings unread

Post all the code and bits and such. Can't really help without that context.

_________________
KGR | AT
AZUR
Discord: theastronomer1836
Steam

Back to top
View user's profile Send private message Skype Account
Overmind
Rocket Infantry


Joined: 05 May 2022

PostPosted: Mon Oct 23, 2023 8:49 am    Post subject: Reply with quote  Mark this post and the followings unread

Code below. This is one of the few very similar situations.
______________________________
[1]
Primary=MagneticBeam
Secondary=DiskLaser

[MagneticBeam]
Damage=5000
ROF=20
Range=12
MinimumRange=1
Speed=100
Projectile=InvisibleHigh
Warhead=LocomotorBeam
Report=MagnetronAttack
IsMagBeam=yes
OmniFire=yes

[LocomotorBeam]
Verses=0%,0%,0%,100%,100%,100%,0%,0%,0%,100%,0%
IsLocomotor=yes
Locomotor={92612C46-F71F-11d1-AC9F-006008055BB5}

[DiskLaser]
Damage=120
ROF=90
Range=8
Projectile=InvisibleAll
Speed=40
Report=FloatingDiscAttack
Warhead=DiskWH
Bright=yes
LaserDuration=15
IsLaser=true
OmniFire=yes
Burst=2

[DiskWH]
Wall=no
Verses=100%,100%,100%,50%,60%,60%,100%,100%,100%,100%,100%
AnimList=XGRYSML1,XGRYSML2,EXPLOSML,XGRYMED1,XGRYMED2,EXPLOMED,EXPLOLRG,TWLT070
InfDeath=7
PenetratesBunker=yes


As you can see the laser on secondary should be able to shoot at anything but it will not shoot at infantry units having light armor.

It cannot use the magbeam vs infantry, but the laser will not shoot it, although there are vs for that armor type.

______________________________
[2]
Primary=MK
Secondary=BeamS

[MK]
Damage=1
ROF=30
Range=5
Projectile=PsychicControl
Speed=100
Warhead=ControllerBuilding
Anim=YURICNTL
FireOnce=yes

[ControllerBuilding]
Verses=100%,100%,100%,100%,100%,100%,100%,100%,100%,100%,100%
MindControl=yes
AnimList=YURICNTL

[BeamS]
Damage=3
ROF=3
Range=9
Speed=100
Projectile=Invisible3
Warhead=CWH
IsLaser=true
IsHouseColor=true
Report=CuttingB

[CWH]
Verses=300%,300%,300%,200%,200%,200%,80%,120%,80%,300%,200%
InfDeath=5
Wall=yes

This will not attack anything on the ground that cannot be MK'ed even the beam can do it.

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


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Tue Oct 24, 2023 8:05 am    Post subject: Reply with quote  Mark this post and the followings unread

IsLocomotor= has some hardcoded targeting logic & is probably the issue. Disable that tag & see if the DiskLaser will then work.

Weapon targeting is controlled by the Verses= tag and doesn't take mind control immunity into consideration.

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
FurryQueen
General


Joined: 24 Jul 2010
Location: Liyue

PostPosted: Fri Oct 27, 2023 2:14 am    Post subject: Reply with quote  Mark this post and the followings unread

I'd think overlapping Verses might have a negative impact here. Create new warheads where each weapon can only target, via warhead, the specific armor type. I'd start there.

[CustomDiskWH]
Wall=no
Verses=100%,100%,100%,0%,0%,0%,0%,0%,0%,0%,0%
AnimList=XGRYSML1,XGRYSML2,EXPLOSML,XGRYMED1,XGRYMED2,EXPLOMED,EXPLOLRG,TWLT070
InfDeath=7
PenetratesBunker=yes

As an example.

_________________
KGR | AT
AZUR
Discord: theastronomer1836
Steam

Back to top
View user's profile Send private message Skype Account
Overmind
Rocket Infantry


Joined: 05 May 2022

PostPosted: Fri Oct 27, 2023 5:39 am    Post subject: Reply with quote  Mark this post and the followings unread

I cannot not overlap them because I need the vs.
For example, the mag-beam will lift light/medium/heavy units (as in tanks/ships) but will not do anything against air targets; there the beam comes in.


In a similar manner, for the other case, I need something to shoot against MK-immune targets.

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


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Fri Oct 27, 2023 10:12 am    Post subject: Reply with quote  Mark this post and the followings unread

For the MK immunity you could give all the units with ImmuneToPsionics=yes new custom armour(s) that can't be targeted by MK weapons. AOE MK weapons like the Psychic Dominator would then be able to effect them tho.

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [8 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.1584s ][ Queries: 11 (0.0088s) ][ Debug on ]