Jump to content

Actor Upgrading


wowgetoffyourcellphone
 Share

Recommended Posts

Hi guy. So, I read somewhere a few month ago on the forum (maybe?) that actors can now show upgrades with techs. Like, if I have GOLD SHILED tech researched, the actor can know this and display the Gold Shield variation. I looked on the forum but couldn't find it with search function.

 

My qyuestion is, is this true? And if it is true, is there a example of this in the game right now? If true and no example yet, can someone show me (and everyone else) how to do it?

 

Thanks.

Edited by wowgetoffyourcellphone
Link to comment
Share on other sites

Yes it is.

Use the replace (instead of add or multiply) operation for the value: VisualActor/Actor

For example:

"modifications": [{ "value": "VisualActor/Actor", "replace": "units/athenians/champion_unit_marine.xml" }]

Currently it is not used in the main game afaics but it works pretty well.

  • Like 1
Link to comment
Share on other sites

Thanks fatherbushido, but I already knew that one. That is actor switching on tech/json side. I thought maybe there was code in the actors themself that recognize techs are being research, inside the actor xml as a variation. Was this implemented or just maybe I saw it was a Trac ticket and my memory got confused.

Edited by wowgetoffyourcellphone
  • Like 1
Link to comment
Share on other sites

Oh I thought the re was something like this possible in the actors:

 

    <variant frequency="1" name="tech-hellenes/gold_shields">
      <textures>
        <texture file="props/shield/gold.png" name="baseTex"/>
        <texture file="props/shield/gold_norm.png" name="normTex"/>
        <texture file="props/shield/gold_spec.png" name="specTex"/>
      </textures>
    </variant>


It detects that the technology hellenes/gold_shields.json has been researched and then changes the texture. I thought this was implemented but maybe I am misremember.
 

Edited by wowgetoffyourcellphone
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...