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 Fri Jul 19, 2024 2:27 am
All times are UTC + 0
Aircraft Repair ?
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [7 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
adamstrange
Cyborg Cannon


Joined: 07 Mar 2013

PostPosted: Mon Feb 12, 2024 9:27 am    Post subject:  Aircraft Repair ? Reply with quote  Mark this post and the followings unread

I have an IFV that automatically repairs units, but how do I code it to repair damaged aircraft that's at the airforce command ?

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


Joined: 09 Feb 2015

PostPosted: Mon Feb 12, 2024 10:09 pm    Post subject: Reply with quote  Mark this post and the followings unread

Ye cannae...

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

Back to top
View user's profile Send private message
adamstrange
Cyborg Cannon


Joined: 07 Mar 2013

PostPosted: Thu Feb 15, 2024 3:52 am    Post subject: Reply with quote  Mark this post and the followings unread

Is there any way to speed up aircraft repair ?

Back to top
View user's profile Send private message
southfar_2
Medic


Joined: 17 Jun 2023

PostPosted: Thu Feb 15, 2024 2:55 pm    Post subject: Re: Aircraft Repair ? Reply with quote  Mark this post and the followings unread

adamstrange wrote:
I have an IFV that automatically repairs units, but how do I code it to repair damaged aircraft that's at the airforce command ?


There are ways to do this, but particularly for an IFV, there is a significant drawback; you can give the IFV the AttackFriendlies attribute, plus positive damage on the Repair weapon, combined with a negative Verses on its warhead. You can then (using Ares) give the weapon the Repair cursor, so it looks the same as the original repair weapon in-game (the Repair cursor is normally invoked by a weapon having negative damage, so if you make the weapon's damage positive, you need to restore the cursor by specifically setting it to that weapon).

While this is good enough for most repair units, using it on the IFV in particular has a rather glaring drawback in that the IFV has a lot of weapon modes that you probably do not want it to hit your own units with, AttackFriendlies will cause it to do that in any weapon mode.

What you can do is to leave AttackFriendlies out, and give it "AttackCursorOnFriendlies", in which case the IFV in repair mode will no longer automatically repair your units at all, but can still, and has to be, manually ordered to repair. This way, you can send it to "attack" (i.e. repair) docked aircraft.

Back to top
View user's profile Send private message
McPwny
Cyborg Artillery


Joined: 29 Jan 2018

PostPosted: Thu Feb 15, 2024 8:31 pm    Post subject: Reply with quote  Mark this post and the followings unread

maby hack an active anim to repeatedly fire a warhead that heals the aircraft over the pad area of the building

_________________
visit my moddb profile for .shp downloads and stuff

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


Joined: 09 Feb 2015

PostPosted: Thu Feb 15, 2024 9:26 pm    Post subject: Reply with quote  Mark this post and the followings unread

Make them self-healing, so that if they make it back to base they will slowly heal up to 50%. Which seems like a good balance.

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

Back to top
View user's profile Send private message
adamstrange
Cyborg Cannon


Joined: 07 Mar 2013

PostPosted: Fri Feb 16, 2024 5:02 am    Post subject: Reply with quote  Mark this post and the followings unread

Thanks Guys
G-E, the self-healing sounds good, so I'm going with that.

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