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 Sat Apr 13, 2024 7:24 pm
All times are UTC + 0
Aircraft always gets destroyed upon weapon's explosion.
Moderators: Ares Support Team at PPM, Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [6 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
chr0nicz420
Jumpjet Infantry


Joined: 10 Feb 2016

PostPosted: Thu Mar 23, 2023 12:40 pm    Post subject:  Aircraft always gets destroyed upon weapon's explosion.
Subject description: Has EMP feature on its warhead. [ARES+PHOBOS]
Reply with quote  Mark this post and the followings unread

Using Phobos patch as well.

I am really at lost on what to do as I believe I have tried everything, unless I am missing something or there is something that causes the aircraft gets destroyed every time its weapon successfully explodes upon impact on the ground. Note that its weapon has EMP warhead.

Aircraft code:
Code:
[ALLYPLANEEMP]
Image=ALLYPLANE
UIName=Name:PDPLANE
Name=Cargo Plane
Strength=850
Category=AirLift
Armor=aircraft_t2
TechLevel=-1
Primary=EMPBomb   
Spawned=yes
LeadershipRating=10
Selectable=no
RadarInvisible=no
Sight=0
Landable=no
MoveToShroud=yes
PitchAngle=0
Speed=20
Owner=Americans
Points=300
ROT=10
Crewed=no
Ammo=1
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
MaxDebris=2
Locomotor={4A582746-9839-11d1-B709-00A024DDAFD1}
MovementZone=Fly
ThreatPosed=50
DamageParticleSystems=SparkSys,SmallGreySSys
ImmuneToPsionics=yes
CanPassiveAquire=no
CanRetaliate=no; Won't fire back when hit
MoveSound=IntruderMoveLoop
DieSound=
CrashingSound=PDPlaneDie
ImpactLandSound=GenAircraftCrash
DeathWeapon=ParaDropWeapon
Trainable=no
FlyBy=true
TypeImmune=yes
CrashSpin=no
EMP.Threshold=0


I've put EMP.Threshold=0 and TypeImmune=yes but the aircraft still gets destroyed.

Weapon, projectile, and warhead code:
Code:
[EMPBomb]
Damage=1
ROF=30
Range=6
Projectile=EMPBombProjectile
Speed=70
Warhead=EMPBombWH
Report=KirovAttack
Burst=1
;FireOnce=yes
Ammo=1


Code:
[EMPBombProjectile]
Arm=2
Shadow=no
AA=no
AG=yes
Image=AUBOMB
DetonationAltitude=30000


Code:
[EMPBombWH]
CellSpread=10
CellSpread.MaxAffect=1
PercentAtMax=.5
Wall=yes
Wood=yes
Verses=5%,5%,5%,5%,5%,5%,5%,5%,5%,5%,0%
InfDeath=5
AnimList=EMPEXP1
Ripple.Radius=28
Deform=10%
DeformThreshhold=300
Tiberium=yes
Sparky=no
EMEffect=yes
EMP.Duration=750
EMP.Sparkles=POWEROFF
CLDisableRed=true
CLDisableGreen=true
CombatLightSize=300%
DamageAirThreshold=9999


Even with DamageAirThreshold=9999 the aircraft still gets destroyed.

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Thu Mar 23, 2023 3:23 pm    Post subject: Reply with quote  Mark this post and the followings unread

What if you lower the CellSpread to 3, does it still happen?

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

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


Joined: 16 Aug 2006
Location: Germany

PostPosted: Thu Mar 23, 2023 6:34 pm    Post subject: Reply with quote  Mark this post and the followings unread

Quote:
Armor=aircraft_t2

Maybe that armor not defined or set correct and the game defaults to instant death for any kind of received damage?

I would remove lines of code one by one and see if any of the special logics like EMEffect, Ripple.Radius, etc may cause the issue and thus narrow down the possible culprits.

_________________
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
chr0nicz420
Jumpjet Infantry


Joined: 10 Feb 2016

PostPosted: Thu Mar 23, 2023 11:10 pm    Post subject: Reply with quote  Mark this post and the followings unread

Lin Kuei Ominae wrote:
Quote:
Armor=aircraft_t2

Maybe that armor not defined or set correct and the game defaults to instant death for any kind of received damage?

I would remove lines of code one by one and see if any of the special logics like EMEffect, Ripple.Radius, etc may cause the issue and thus narrow down the possible culprits.


That is an Ares feature so the game recognizes that custom armor.

Back to top
View user's profile Send private message
chr0nicz420
Jumpjet Infantry


Joined: 10 Feb 2016

PostPosted: Sat Mar 25, 2023 4:25 am    Post subject: Reply with quote  Mark this post and the followings unread

So I tried reducing the CellSpread to 3 and it does not self-destruct anymore. However, then is there any way to prevent the aircraft from getting destroyed by its own weapon while maintaining the high CellSpread?

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Sat Mar 25, 2023 4:28 am    Post subject: Reply with quote  Mark this post and the followings unread

chr0nicz420 wrote:
So I tried reducing the CellSpread to 3 and it does not self-destruct anymore. However, then is there any way to prevent the aircraft from getting destroyed by its own weapon while maintaining the high CellSpread?

Higher FlightLevel to allow a higher CellSpread?

Or you can turn it into a dropped/floating bomb that lands after the aircraft has moved past the target?

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

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