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 5:13 pm
All times are UTC + 0
Stealth Generator (YR)
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
CptGallium
Civilian


Joined: 18 Jun 2015

PostPosted: Thu Jun 18, 2015 12:32 am    Post subject:  Stealth Generator (YR) Reply with quote  Mark this post and the followings unread

Hello everyone,

I've been working on a mod for Yuri which gives him a building that makes all units and buildings stealth/cloak.  So far I have run into a few glitches that I'm not sure how to fix.  The 2 known glitches that I am trying to fix are:

    1. Allow Stealth to also hid Teammate buildings/units if within Radius (Currently Teammates reveal the teammate's stealth buildings/units as if they were the enemey).
    2. When I was testing it with a friend on CnCNet, some units will appear as Stealthed but on the enemy player's screen the unit will be visible, even though the unit on their screen is shown as "transparant" (visual effect of when something is stealth).


I did not create all of this code but I have been trying to debug/improve upon it for my mod.

The artmd.ini code is:
Code:
[GAGEN] ; Yuri Stealth Generator
Remapable=yes
Cameo=SGENICON
Foundation=2x2
Buildup=GAGENMK
DemandLoadBuildup=true
FreeBuildup=true
NewTheater=yes
Height=4
CanHideThings=True
CanBeHidden=False
OccupyHeight=3
DamageFireOffset0=-5,11


The rulesmd.ini code is:
Code:
;Yuri Stealth Generator
[GAGEN]
UIName=Name:GAGEN
Name=Yuri Stealth Generator
BuildCat=Combat
Prerequisite=YAWEAP,YACNST
CloakGenerator=yes
CloakRadiusInCells=6
Powered=yes
Strength=600
Armor=steel
TechLevel=5
Adjacent=4
Sight=10
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
AIBasePlanningSide=0
Cost=1500
Points=80
Power=-250
Capturable=false
Crewed=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
DebrisAnims=DBRIS2SM,DBRIS3LG,DBRIS3SM,DBRIS7SM,DBRIS8LG,DBRS10LG,DBRS10SM
MaxDebris=15
MinDebris=5
ThreatPosed=0
;DamageParticleSystems=SparkSys,SmallGreySSys,BigGreySmokeSys
AIBuildThis=yes
AmbientSound=PsychicAmplifierLoop
DieSound=PsychicAmplifierDie
BaseNormal=no
HasRadialIndicator=true


For all units (except air units) I have added this code:
Code:
Sensors=yes
SensorsSight=6


I know the Mental Omega mod contains a structure similar to what I am trying to do ... Epsilon Chimera Core ... which seems to have fixed these 2 issues.  If someone could help, that would be super awesome because I can't figure it out.

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


    Joined: 19 Nov 2003

    PostPosted: Thu Jun 18, 2015 5:22 am    Post subject: Reply with quote  Mark this post and the followings unread

    There is nothing you can do about it on normal YR and besides, the CloakGenerator LAGS so most don't use it anyways.

    As for MO, they use entirely different way thanks to ARES.

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


    Joined: 24 Jul 2010
    Location: Liyue

    PostPosted: Thu Jun 18, 2015 1:34 pm    Post subject: Reply with quote  Mark this post and the followings unread

    Actually, you can fix the lag issue by removing DoubleThick=yes from building art entries. I got it working lag free this way.

    _________________
    KGR | AT
    AZUR
    Discord: theastronomer1836
    Steam

    Back to top
    View user's profile Send private message Skype Account
    CptGallium
    Civilian


    Joined: 18 Jun 2015

    PostPosted: Thu Jun 18, 2015 2:35 pm    Post subject: Reply with quote  Mark this post and the followings unread

    As a preface, i do not have Ares but ...

    Are you suggesting that even if I were to get Ares, the Cloak Generator code would not work as intended?  That I would need to create something to get it to work?

    If that is the case, what about if units had something to the effect of them being powered by the Stealth building and only allowing their cloaking ability to be powered if within the building's radius.

    Although I do not know how to apply an effect just from a building's radius.  AttachEffect maybe?

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


    Joined: 22 Nov 2010
    Location: Iszkaszentgyorgy, Hungary

    PostPosted: Thu Jun 18, 2015 2:58 pm    Post subject: Reply with quote  Mark this post and the followings unread

    Yes, MO uses an autofiring areafire AttachEffect weapon for Chimera Core - and also to give Nuwa a speed boost around Nuke Reactors.

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


    Joined: 18 Jun 2015

    PostPosted: Thu Jun 18, 2015 3:48 pm    Post subject: Reply with quote  Mark this post and the followings unread

    Graion Dilach wrote:
    Yes, MO uses an autofiring areafire AttachEffect weapon for Chimera Core - and also to give Nuwa a speed boost around Nuke Reactors.

    That is what I thought ... thank you for helping point me in the right direct, now I'll go and try messing with it and see what problems I run into.   Smile

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