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 2:08 pm
All times are UTC + 0
Help Wanted: Yuri Repair Disk
Moderators: 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
ImaginaryNumb3r
Civilian


Joined: 14 Jul 2017

PostPosted: Fri Jul 14, 2017 10:35 pm    Post subject:  Help Wanted: Yuri Repair Disk
Subject description: Trying to make the IFV repair logic work on aircraft
Reply with quote  Mark this post and the followings unread

I am currently making a YR mod with Ares and try to make a "Repair Disc" with the same logic as the IFV Engineer weapon.

The problem is that, as the disc approaches the target vehicle it stops before it gets into range. Changing the range of the weapon does not change the outcome as it will only stop further away.

The repair mechanic works like a charm if I turn the disc into a ground unit, but that is hardly a solution. Is it even possible to make a flying repair unit?

It must be related to the range and how aircraft approximates its targets. I can manually move the disc over a vehicle and then the repair will work. But then again, that is hardly a good solution.

Here is the code: https://pastebin.com/VBHy0vMT

Help would be greatly appreciated.

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


Joined: 05 Oct 2011

PostPosted: Sat Jul 15, 2017 1:33 am    Post subject: Reply with quote  Mark this post and the followings unread

From MO 2.0

Code:

[TDSK]
UIName=Name:TDSK
Name=Salvage Disc
Prerequisite=YAWEAP,YADOME
Primary=DiskHeal
Strength=475
Category=AirPower
DefaultToGuardArea=yes
GuardRange=8
Armor=light
NavalTargeting=5
IsTilter=yes
TooBigToFitUnderBridge=true
TechLevel=6
Turret=yes
TurretSpins=yes
Sight=9
Speed=20
CrateGoodie=no
MinDebris=1;2
Crusher=no
Crewed=no
Owner=YuriCountry,UriArmy,Headquaters,Scorpion
Cost=1200
Soylent=600
Points=25
ROT=100
CanPassiveAquire=yes
AllowedToStartInMultiplayer=no
IsSelectableCombatant=yes
VoiceSelect=SalvageDiscSelect
VoiceMove=SalvageDiscMove
VoiceAttack=SalvageDiscRepair
VoiceSecondaryWeaponAttack=SalvageDiscMineCommand
VoiceDeploy=SalvageDiscMineCommand
VoiceFeedback=
CrashingSound=FloatingDiscDie
MoveSound=FloatingDiscMoveLoop
BalloonHover=yes
Locomotor={92612C46-F71F-11d1-AC9F-006008055BB5}
SpeedType=Hover
MovementZone=Fly
MoveToShroud=yes
ThreatPosed=20
ConsideredAircraft=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
MaxDebris=13
DamageParticleSystems=SparkSys,SmallGreySSys
DamageSmokeOffset=100, 100, 275
Weight=3.5
VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
Accelerates=false
ZFudgeColumn=8
ZFudgeTunnel=13
Size=16
OpportunityFire=yes
Trainable=no
JumpjetSpeed=19
JumpjetClimb=12
JumpjetCrash=15
JumpJetAccel=10
JumpJetTurnRate=100
JumpjetHeight=750
JumpjetWobbles=.1
JumpjetDeviation=15
JumpjetNoWobbles=yes
Crashable=yes
TiltCrashJumpjet=yes
DeathWeapon=BlimpBombEffect
DeathWeaponDamageModifier=.1
SelfHealing=yes
RadarInvisible=yes
AttackCursorOnFriendlies=yes
DamageSound=VehicleDamagedHeavy
ThreatAvoidanceCoefficient=1.0

[DiskHeal]
Damage=-10
ROF=16
Range=1.3
Speed=100
Projectile=InvisibleVertical
Warhead=Mechanical
Report=ParasiteDiscHealLoop
OmniFire=yes
FireOnce=no
FireWhileMoving=no
Anim=HEALING

[DiskHealWH]
Verses=0%,0%,0%,90%,85%,75%,0%,0%,0%,100%,100%
CellSpread=.3
PenetratesBunker=yes
InfDeath=0
Bright=true
CLDisableGreen=true
CLDisableRed=true
CombatLightSize=500%


IDK could try copying this?

_________________
~ Excelsior ~

Back to top
View user's profile Send private message Visit poster's website
ImaginaryNumb3r
Civilian


Joined: 14 Jul 2017

PostPosted: Sat Jul 15, 2017 2:37 am    Post subject: Reply with quote  Mark this post and the followings unread

Thanks you, it is working now!

I could identify the problematic spots in my code and for some reason the following flag seems to completely break this mechanic:
UseSparkParticles=yes

I suppose that must be an engine bug.

Speaking of MO, I saw that they had a resource pack on Revora but the link is dead. Is there a working download for the asset pack? That would be a great source of reference in terms of ini modding.


Nonetheless, thanks a lot Atomic Noodles!

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


Joined: 22 Nov 2010
Location: Iszkaszentgyorgy, Hungary

PostPosted: Sat Jul 15, 2017 7:34 am    Post subject: Reply with quote  Mark this post and the followings unread


_________________
"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
ImaginaryNumb3r
Civilian


Joined: 14 Jul 2017

PostPosted: Sat Jul 15, 2017 10:47 am    Post subject: Reply with quote  Mark this post and the followings unread

Graion Dilach wrote:
The asset pack didn't contained INIs, never did. Said asset pack was reuploaded by a Starcraft "modder" for a request though - http://www.moddb.com/games/starcraft/addons/red-alert-2-units-to-convert-to-grps.


Thanks for the info.
But, uh... that link doesn't work either.

Judging by the amount of broken links, RA2 really is an ancient game now  Laughing

Edit: Well... I guess I didnt see that dot at the end Face palm!

Last edited by ImaginaryNumb3r on Sat Jul 15, 2017 1:38 pm; edited 1 time in total

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


Joined: 05 Oct 2011

PostPosted: Sat Jul 15, 2017 12:38 pm    Post subject: Reply with quote  Mark this post and the followings unread

remove the last period on the link.

_________________
~ Excelsior ~

Back to top
View user's profile Send private message Visit poster's website
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.1435s ][ Queries: 11 (0.0078s) ][ Debug on ]