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 20, 2024 11:20 am
All times are UTC + 0
Spawned aircraft only fire once
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [11 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
FistOfFire
Light Infantry


Joined: 01 Dec 2010

PostPosted: Mon Aug 22, 2011 1:54 am    Post subject:  Spawned aircraft only fire once Reply with quote  Mark this post and the followings unread

This spawned aircraft will fire once, and then go back to its carrier, even if I choose a new target(after it have fired his first ammo) while it is in the air.

Code:
[mauser]
...
Spawns=mauserplane
...

[mauserplane]
UIName=NOSTR:Hornet
Name=Hornet
Primary=MauserWeapon
Strength=300
Category=AirPower
Armor=light
Spawned=yes
TechLevel=-1
Sight=10
RadarInvisible=no
Landable=yes
MoveToShroud=yes
Locomotor={4A582746-9839-11d1-B709-00A024DDAFD1}
MovementZone=Fly
PipScale=Ammo
Speed=15
PitchSpeed=.9
PitchAngle=0
Owner=British,French,Germans,Americans
Cost=10000
Points=20
ROT=3
Ammo=2
Crewed=no
GuardRange=10
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
CrashingSound=HornetDie
ImpactLandSound=GenAircraftCrash
MovementRestrictedTo=Water
ThreatPosed=10
DamageParticleSystems=SparkSys,SmallGreySSys
AuxSound1=HornetTakeoff
AuxSound2=HornetLanding
ImmuneToPsionics=yes
Trainable=no

[MauserWeapon]
Damage=1
ROF=50
Range=5
Projectile=MauserWeaponP
Speed=30
Warhead=MauserWeaponWH
Report=MausWeapon
IvanBomb.Warhead=MauserBombWH
IvanBomb.Damage=2000
IvanBomb.Detachable=no
IvanBomb.DestroysBridges=no
IvanBomb.Delay=600
IvanBomb.AttachSound=Dummy
IvanBomb.TickingSound=Dummy
IvanBomb.Image=mauserproj
IvanBomb.FlickerRate=750

[MauserWeaponP]
Arm=2
Shadow=no
Proximity=yes
Ranged=yes
Image=mauserproj
ROT=1
IgnoresFirestorm=no

[MauserWeaponWH]
Verses=100%,100%,100%,100%,100%,100%,0%,0%,0%,100%,100%
IvanBomb=yes

[MauserBombWH]
Verses=100%,100%,100%,100%,100%,100%,0%,0%,0%,100%,100%
AnimList=mauserdetonate
CellSpread=4

Back to top
View user's profile Send private message
Graion Dilach
Defense Minister


Joined: 22 Nov 2010
Location: Iszkaszentgyorgy, Hungary

PostPosted: Mon Aug 22, 2011 8:41 am    Post subject: Reply with quote  Mark this post and the followings unread

Try it with FireOnce=yes on the weapon.

_________________
"If you didn't get angry and mad and frustrated, that means you don't care about the end result, and are doing something wrong." - Greg Kroah-Hartman
=======================
Past C&C projects: Attacque Supérior (2010-2019); Valiant Shades (2019-2021)
=======================
WeiDU mods: Random Graion Tweaks | Graion's Soundsets
Maintainance: Extra Expanded Enhanced Encounters! | BGEESpawn
Contributions: EE Fixpack | Enhanced Edition Trilogy | DSotSC (Trilogy) | UB_IWD | SotSC & a lot more...

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID
Starkku
Cyborg Commando


Joined: 28 Dec 2007
Location: Finland

PostPosted: Mon Aug 22, 2011 8:51 am    Post subject: Reply with quote  Mark this post and the followings unread

Graion Dilach wrote:
Try it with FireOnce=yes on the weapon.


Crashes when used with AircraftTypes. Unless that's one of those things Ares fixes and I am not aware of.

_________________

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID Twitter Channel URL
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Mon Aug 22, 2011 10:26 am    Post subject: Reply with quote  Mark this post and the followings unread

Was it a question from FistOfFire in the first place?
FistOfFire wrote:
This spawned aircraft will fire once, and then go back to its carrier

Looks to me like he just wanted to show some code as i don't see any question.

If it really was a question, and he wants to know how he can prevent the unit from firing 5 shots in the overrun attack, then the answer is: particlesystems are your friend.
A particlesystem forbids the unit to fire again until the PS is over, so simply give it a PS which lasts as long as the unit takes to pass the target (well chosen MaxEC value).

_________________
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
FistOfFire
Light Infantry


Joined: 01 Dec 2010

PostPosted: Mon Aug 22, 2011 12:07 pm    Post subject: Reply with quote  Mark this post and the followings unread

FireOnce=yes did not work. And it did not cause any IE. Probably because it had no effect ingame.

Lin Kuei Ominae, how could my question be unclear?
Here is it again, my spawned aircraft can only fire once before it will have to go back and reload. I want it to fire at least two times. Ammo is set to two, but this unit seems to ignore the ammo tag, and just fire once and then go back.

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


Joined: 16 Aug 2006
Location: Germany

PostPosted: Mon Aug 22, 2011 12:18 pm    Post subject: Reply with quote  Mark this post and the followings unread

FistOfFire wrote:
Lin Kuei Ominae, how could my question be unclear?
Which Question?
Read your first sentence and you'll notice that there is no questionmark (which you usually expect to see on a question),
no description of what you actually want (which you usually expect to see, to understand the problem)
and no description of what exactly isn't working (which you usually expect to see, to give help that goes in the right direction).

_________________
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
ApolloTD
Commander


Joined: 19 Nov 2003

PostPosted: Mon Aug 22, 2011 5:17 pm    Post subject: Reply with quote  Mark this post and the followings unread

What a coding fail, this coding is absolutely not doable!!! Ivan bomb is special code that only is fired once for obvious reason, you can't do dropped bombs that would start ticking when hit the target, nice idea but ivan logic is absolutely not applyable for this kinda use as it is a plant logic and it needs to be accurate, not ROT=1.

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


Joined: 24 Jul 2010
Location: Liyue

PostPosted: Mon Aug 22, 2011 8:13 pm    Post subject: Reply with quote  Mark this post and the followings unread

I could have sworn Ivan logic still only applied on [InfantryTypes] anyway. I could be wrong on that one though.

_________________
KGR | AT
AZUR
Discord: theastronomer1836
Steam

Back to top
View user's profile Send private message Skype Account
Graion Dilach
Defense Minister


Joined: 22 Nov 2010
Location: Iszkaszentgyorgy, Hungary

PostPosted: Mon Aug 22, 2011 9:24 pm    Post subject: Reply with quote  Mark this post and the followings unread

Ares. #Tongue

_________________
"If you didn't get angry and mad and frustrated, that means you don't care about the end result, and are doing something wrong." - Greg Kroah-Hartman
=======================
Past C&C projects: Attacque Supérior (2010-2019); Valiant Shades (2019-2021)
=======================
WeiDU mods: Random Graion Tweaks | Graion's Soundsets
Maintainance: Extra Expanded Enhanced Encounters! | BGEESpawn
Contributions: EE Fixpack | Enhanced Edition Trilogy | DSotSC (Trilogy) | UB_IWD | SotSC & a lot more...

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID
MRMIdAS
Energy Commando


Joined: 17 Jul 2008

PostPosted: Mon Aug 22, 2011 9:25 pm    Post subject: Reply with quote  Mark this post and the followings unread

FurryQueen wrote:
I could have sworn Ivan logic still only applied on [InfantryTypes] anyway. I could be wrong on that one though.


You are correct, although ares expands it to include vehicles and buildings.

_________________
MIdAS - Turning wages into beer since 2002

Back to top
View user's profile Send private message
FistOfFire
Light Infantry


Joined: 01 Dec 2010

PostPosted: Wed Aug 24, 2011 5:00 pm    Post subject: Reply with quote  Mark this post and the followings unread

ApolloTD wrote:
What a coding fail, this coding is absolutely not doable!!! Ivan bomb is special code that only is fired once for obvious reason, you can't do dropped bombs that would start ticking when hit the target, nice idea but ivan logic is absolutely not applyable for this kinda use as it is a plant logic and it needs to be accurate, not ROT=1.

indeed. I have scrapped this weapon.

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