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 Mar 29, 2024 12:14 am
All times are UTC + 0
Question about AnimList= on warheads..
Moderators: Global Moderators, Tiberian Sun Moderators
Post new topic   Reply to topic Page 1 of 1 [13 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Slavack
Soldier


Joined: 07 Jan 2008

PostPosted: Mon Jan 21, 2019 9:02 pm    Post subject:  Question about AnimList= on warheads..
Subject description: A bit of clarification needed please.
Reply with quote  Mark this post and the followings unread

Basically I wanted some feedback on how the game can cycle through multiple animations when listed on a warhead. Reason I need clarification is because I have a  split weapon in use with a unit, and I'm trying to have 3 different animation play randomly when the first stage expires.

Original example:
AnimList=TWLT026,TWLT036,TWLT050,TWLT070,TWLT100

I'm wondering what factors come into play to tell the game which animation to use?. Is it numerical order on the tags, damage based on the weapon ect?

Thanks for any help!

Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Mon Jan 21, 2019 10:38 pm    Post subject: Reply with quote  Mark this post and the followings unread

It takes the weapon with the lowest damage that uses this warhead for the first anim.
The weapon with the highest damage using this warhead for the last anim.

All other weapons using this warhead get their damage sorted into the range of the lowest to highest and based upon this get one of the anims assigned.
e.g.
lowest damaging weapon using this warhead has Damage=10
highest damaging weapon using this warhead has Damage=210
gives a Damage range of 200 for this warhead
divided by 5 anims, each anim is assigned to weapons within the range of a multiple of 40 damage.
Anim1=10 - 50
Anim2=50 - 90
Anim3=90 - 130
Anim4=130 - 170
Anim5=170 - 210

if a third weapon has Damage=70, it would fall into the damage range of the second anim.


Thus, anims are assigned based on weapon damage.
Nothing random here, unfortunately.

_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

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


Joined: 11 Feb 2016

PostPosted: Mon Jan 21, 2019 11:05 pm    Post subject: Reply with quote  Mark this post and the followings unread

EMEffect=yes randomizes the anims. It seems like in TS it also ties to some other logic(s) while in RA2/YR it does nothing else.

_________________

Back to top
View user's profile Send private message Skype Account
E1 Elite
General


Joined: 28 May 2013

PostPosted: Tue Jan 22, 2019 12:35 pm    Post subject: Reply with quote  Mark this post and the followings unread

Which anim is played depends on the Damage value. Slots are fixed of 25 damage. 1st anim in the AnimList is played when damage is 1 to 24, 2nd in list on damage 25 to 49, 3rd when 50 to 74 and so on. When the damage exceeds, then last in the list is played. For example, when Damage=230, the 10th anim in the list is played. If there are only 5 anims defined, then the last anim that is the 5th anim will be played on damage 230. Versus percentage does not affect it. EMEffect=yes makes it random anim. For water, water anims are used.

Could also see ModEnc, though current content is tuned for RA2. ModEnc is again having that session timing issues currently, some browsers allow bypassing that problem.

Back to top
View user's profile Send private message
Slavack
Soldier


Joined: 07 Jan 2008

PostPosted: Tue Jan 22, 2019 3:18 pm    Post subject: Reply with quote  Mark this post and the followings unread

EMeffect=yes works perfectly, Thank you all! And is really great info about the damage characteristics on the anim slot. As always, I really appreciate the help!

Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Tue Jan 22, 2019 4:10 pm    Post subject: Reply with quote  Mark this post and the followings unread

EMEffect makes it impossible to use Damage directly.
You would have to use a Splits=yes projectile with a second stage weapon to deliver the damage.

@E1 are you sure that fixed 25 damage step logic is the same in TS?
IIRC during my tests to get TIberium debris work, i noticed that adding a single anim to the end, changed the anims for several weapons that used this warhead already.
In contrary to Modenc, the AnimList is also not unlimited, but limited to 127 characters on the key (why the anims in TI used on the TIBHE warhead use only very short names, otherwise the 20 anims can exceed already the char limit).

_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

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


Joined: 28 May 2013

PostPosted: Tue Jan 22, 2019 4:31 pm    Post subject: Reply with quote  Mark this post and the followings unread

Lin Kuei Ominae wrote:
@E1 are you sure that fixed 25 damage step logic is the same in TS?
IIRC during my tests to get TIberium debris work, i noticed that adding a single anim to the end, changed the anims for several weapons that used this warhead already.

Sure on the 25 damage slot for TS as well. By increasing the anims in the list, some higher damage cases which would have been using the last anim as the damage would have exceeded the slots, would now have their own slot. Like in the example I gave earlier, Damage=230 should play the 10th anim, but because the list contains only 5, so it would have been playing the 5th anim until the list got more.

Back to top
View user's profile Send private message
Slavack
Soldier


Joined: 07 Jan 2008

PostPosted: Tue Jan 22, 2019 8:16 pm    Post subject: Reply with quote  Mark this post and the followings unread

@LKO No damaged needed on the first stage of my split weapon. I'm emulating a "aircraft carrier" logic in TS... Basically my "Jet" projectile explodes with 1 of the 8 different animation playing and the 2nd stage delivers a salvo of somewhat accurate missles for the damage. Excusing the horrid imbalance of an immune/unstoppable projectile is actually looks and plays perfectly...credit to you for inspiring me with your TI weapon logic topic.

Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Tue Jan 22, 2019 8:39 pm    Post subject: Reply with quote  Mark this post and the followings unread

That sounds interesting.
can you show a gif?

According to your description it sounds like you found a way to let the projectile fire the missile not from directly above the target (like a bomb in my solution) but actually from a point before it's directly above.

I use Airburst=yes so it flies above the target, explode, to then split there into the next stage, while using the warhead when splitting to show the bomb anim (art.ini debris).

_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
Slavack
Soldier


Joined: 07 Jan 2008

PostPosted: Wed Jan 23, 2019 2:32 am    Post subject: Reply with quote  Mark this post and the followings unread

@LKO I used a similar method for the most part. I did implement the ProjectileRange= tag on the weapon to ensure detonation of stage 1 before the target, then allow the 2nd stage with the missile to do the damage.It looks like i will need to refine and add 8 total directions for the aircraft to make it a bit more smooth.

I don't think you need it, but you are welcome to my code if need be.

** only problem I have is if the 1st or 2nd fighter destroys the target, the last projectiles remaining explode immediately. I know this is a topic of things to fix...hope it can happen soonish!
thanks again!



AIRCRAFT CARRIER.gif
 Description:
 Filesize:  1.05 MB
 Viewed:  1718 Time(s)

AIRCRAFT CARRIER.gif



Last edited by Slavack on Wed Jan 23, 2019 3:08 am; edited 1 time in total

Back to top
View user's profile Send private message
Slavack
Soldier


Joined: 07 Jan 2008

PostPosted: Wed Jan 23, 2019 2:45 am    Post subject: Reply with quote  Mark this post and the followings unread

Works pretty well for my Athena Cannon also...



ATHENA CANNON.gif
 Description:
 Filesize:  1.37 MB
 Viewed:  1715 Time(s)

ATHENA CANNON.gif



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


Joined: 11 Feb 2016

PostPosted: Wed Jan 23, 2019 7:30 am    Post subject: Reply with quote  Mark this post and the followings unread

Looks amazing

_________________

Back to top
View user's profile Send private message Skype Account
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Wed Jan 23, 2019 7:56 am    Post subject: Reply with quote  Mark this post and the followings unread

Slavack wrote:
@LKO I used a similar method for the most part. I did implement the ProjectileRange= tag on the weapon to ensure detonation of stage 1 before the target, then allow the 2nd stage with the missile to do the damage.It looks like i will need to refine and add 8 total directions for the aircraft to make it a bit more smooth.

I see a problem with this. What if the target is closer than your set ProjectileRange?
In this case your 1st stage plane would do a suicide attack or explode right above the target. It wouldn't look like the missiles are fired before reaching the target.

Unless you also set MinimumRange to be the same as ProjectileRange, i doubt it would look good in most cases.
MinimumRange wouldn't work well either, since this is a long range weapon and it would look stupid if the ship has to move away.

Using ProjectileRange you pretty much restricted the weapon to look good for a very narrow attackrange only.

Slavack wrote:
I don't think you need it, but you are welcome to my code if need be.

nah, that's not necessary.


btw, if you don't use a VXL for the 1st stage, you can get rid of the ugly tilted launch and also use the special SHP start flight behaviour for slow projectiles.
Projectiles with Speed less than 16 fly straight and parallel to ground before they start climbing and homing in on the target.


DTA is using this to give the carrier drones something like a runway start.


What i really like about your solution is that your unit can still gain veterancy. The missiles are still a rules.ini weapon, unlike my way of using art.ini debris for the bombs.

_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

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