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 Feb 20, 2025 7:31 am
All times are UTC + 0
[Phobos]How to make AttachEffects on affect air unit?
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [3 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Ousagi
Disk Thrower


Joined: 02 Nov 2022

PostPosted: Sat Jan 04, 2025 6:24 am    Post subject:  [Phobos]How to make AttachEffects on affect air unit?
Subject description: Making the weapon AA=yes and AG=no doesn't work
Reply with quote  Mark this post and the followings unread

I've tested my weapon. If I target a land unit it gets the effect but not the air unit. But attacking the air unit, the land units also get affected.
A way for having the air units get affected to is "DamageAirThreshold=" from Ares. Is there a way to disable land units from getting affected by the AttachEffect?
Here's the code of the weapon:

Code:
[Spitter]
Damage=40
ROF=15
Burst=3
Range=12
Projectile=SpitterP
Speed=100
Report=FlakCannonAttack
Warhead=SpitterWH
Anim=GUNFIRE
Burst.Delays=1

[SpitterWH]
CellSpread=1.0
PercentAtMax=.1
Verses=150%,80%,50%,100%,100%,20%,0%,0%,0%,100%,100%
AnimList=SMKPUFF
InfDeath=3
AttachEffect.SpeedMultiplier=.90
AttachEffect.Animation=STAT_SPEEDUP
AttachEffect.Duration=350

[SpitterP]
Image=none
Inviso=yes
AA=yes
AG=no
Inaccurate=yes
FlakScatter=yes
BallisticScatter.Min=0.25
BallisticScatter.Max=1.25
SubjectToCliffs=no
SubjectToElevation=yes
SubjectToWalls=no

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


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Sat Jan 04, 2025 12:31 pm    Post subject: Reply with quote  Mark this post and the followings unread

Give aircraft a custom armour type and change the warheads verses so it can only effect that type.

_________________



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
Ousagi
Disk Thrower


Joined: 02 Nov 2022

PostPosted: Sat Jan 04, 2025 8:32 pm    Post subject: Reply with quote  Mark this post and the followings unread

That was what I was thinking of but I didn't know that was the only way. That was unexpected.
I didn't expect AttachEffects could affect land units when attacking air units. Why does that happen but the weapon doesn't even damage the unit?

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 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.1642s ][ Queries: 11 (0.0072s) ][ Debug on ]