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 Apr 19, 2024 8:53 pm
All times are UTC + 0
Self aquiring target help
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
EricAnimeFreak
Tiberian Fiend


Joined: 14 Sep 2009
Location: USA New England

PostPosted: Sat Aug 07, 2010 10:37 pm    Post subject:  Self aquiring target help
Subject description: help please
Reply with quote  Mark this post and the followings unread

Okay, so I'm trying to get this building to autofire without having to manually do it.

Here are the Codes:

Code:
[RussiansSPECIALX]
SelfHealing=yes
Name=Russia Special
Cost=1000
Armor=steel
Image=GAPRIS
Owner=Russians
Power=-100
Sight=6
Crewed=no
Points=80
Turret=no
UIName=Name:Repair Tower
Powered=yes
Primary=RussiaBaseHeal
Secondary=RussiaBaseHeal
Adjacent=3
BuildCat=Combat
Strength=500
Drainable=no
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
MaxDebris=15
MinDebris=7
TechLevel=1
Trainable=no
BaseNormal=no
Capturable=false
Selectable=yes
Unsellable=no
AIBuildThis=no
DebrisAnims=DBRIS1LG,DBRIS1SM,DBRIS2LG,DBRIS4LG,DBRIS4SM,DBRIS5LG,DBRIS5SM,DBRIS6LG,DBRIS6SM,DBRIS7LG
LeaveRubble=no
ThreatPosed=0
TogglePower=no
Prerequisite=NODTENT,Tech
Insignificant=no
IsBaseDefense=yes
RequiredHouses=Russians
ClickRepairable=yes
ForbiddenHouses=YuriCountry,Confederation,Africans,Arabs,British,French,Germans,Americans,Alliance
ImmuneToPsionics=yes
DamageSmokeOffset=1470, 1060, 1078
OpportunityFire=yes
AttackFriendlies=yes
AttackCursorOnFriendlies=yes
CanPassiveAquire=yes
PreventAttackMove=no

[RussiaBaseHeal]
OmniFire=yes
Report=IFVRepair
Damage=8
ROF=80
Range=-2
Speed=1
AreaFire=yes
FireOnce=no
Projectile=InvisibleAll
Warhead=BASEHEAL1

;UseSparkParticles=yes
;AttachedParticleSystem=WeldingSys
;commented out because with this code on, the building will fire once and never again.

[BASEHEAL1]
Verses=-4%,-4%,-4%,-4%,-4%,-4%,-100%,-150%,-175%,-4%,-4%
AnimList=HEALONE
InfDeath=10
CellSpread=2
PercentAtMax=.75


The idea behind the weapon is it Heals nearby buildings every 4.66 game seconds. It works, but it will not passively acquire its own targets, so you are required to target something to get it to start healing. Is their anyway to get it to auto acquire?

I've tried many different things, and I stumped. My only guess is by having negative verses values, it will not auto target, in which case do I need to set positive values to get it to auto acquire.

I've done it that way before, but then the only real workaround is sacrificing the radiation to make it deal negative damage to buildings.

_________________
Grab my Map Logic Expansion Pack 5.2 here!
Adds random weather patterns into maps.
More disabled navalyards.
Preplaced Neutral buildings.
Additional new features.

Enjoy Everyone!

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


Joined: 24 Jul 2010
Location: Liyue

PostPosted: Sat Aug 07, 2010 10:44 pm    Post subject: Reply with quote  Mark this post and the followings unread

Use negative damage and set it to automatically scan friendly targets as threats. You'll need positive warhead verses though.

_________________
KGR | AT
AZUR
Discord: theastronomer1836
Steam

Back to top
View user's profile Send private message Skype Account
ArvinCool
Tiberian Beast


Joined: 01 Jun 2008

PostPosted: Sat Aug 07, 2010 11:40 pm    Post subject: Reply with quote  Mark this post and the followings unread

looks like AttackFriendlies=yes dont work on buildings. big shame

_________________
"I'll be staying strapped cuse my mac-eleven make my nuts bigger"

Back to top
View user's profile Send private message
ApolloTD
Commander


Joined: 19 Nov 2003

PostPosted: Sun Aug 08, 2010 4:22 am    Post subject: Reply with quote  Mark this post and the followings unread

In my application of similar case I rather use range 255 as -2 didn't seem to work i think plus i made the projectile aim at ground & air too. Tried making a toggle for it too but didn't quite work out.

Back to top
View user's profile Send private message
EricAnimeFreak
Tiberian Fiend


Joined: 14 Sep 2009
Location: USA New England

PostPosted: Sun Aug 08, 2010 4:55 am    Post subject: Reply with quote  Mark this post and the followings unread

Apolo, it uses invisibleall which targets everything in game, initially it had 255 set as range, but
I set it to -2 with no ill effect.

Furyqueen, negative damage values won't work to heal buildings, it's bugged hence the negative verses. Which appear to have a bug in their own right.

Perhaps setting the verses to:

Verses=4%,4%,4%,4%,4%,4%,-100%,-150%,-175%,4%,4%

Will let it auto acquire targets. I haven't tested this yet though. If it did though, then it suffers from damaging nearby infantry and units. Well I can minimize it by setting the negative Verses to a very high percent and lowering damage on the weapon code.

As it stand now, the code works, it's just confusing to people unfamiliar with the particular mod.

_________________
Grab my Map Logic Expansion Pack 5.2 here!
Adds random weather patterns into maps.
More disabled navalyards.
Preplaced Neutral buildings.
Additional new features.

Enjoy Everyone!

Back to top
View user's profile Send private message Visit poster's website
EricAnimeFreak
Tiberian Fiend


Joined: 14 Sep 2009
Location: USA New England

PostPosted: Mon Aug 16, 2010 9:46 pm    Post subject: Reply with quote  Mark this post and the followings unread

EricAnimeFreak wrote:
Perhaps setting the verses to:

Verses=4%,4%,4%,4%,4%,4%,-100%,-150%,-175%,4%,4%

Will let it auto acquire targets. I haven't tested this yet though. If it did though, then it suffers from damaging nearby infantry and units. Well I can minimize it by setting the negative Verses to a very high percent and lowering damage on the weapon code.


Okay I finally got to testing this, it works! Now code looks like this:

Code:
[RussiaBaseHeal]
OmniFire=yes
Report=IFVRepair
Damage=5
ROF=80
Range=255
Speed=1
AreaFire=yes
FireOnce=no
Projectile=InvisibleAll
Warhead=BASEHEAL1

[BASEHEAL1]
Verses=4%,4%,4%,4%,4%,4%,-400%,-600%,-700%,4%,4%
AnimList=HEALONE
InfDeath=10
CellSpread=2
PercentAtMax=.75

_________________
Grab my Map Logic Expansion Pack 5.2 here!
Adds random weather patterns into maps.
More disabled navalyards.
Preplaced Neutral buildings.
Additional new features.

Enjoy Everyone!

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.1726s ][ Queries: 11 (0.0081s) ][ Debug on ]