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 Wed Apr 24, 2024 5:05 am
All times are UTC + 0
Soviet Subpen
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [4 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
danW
Civilian


Joined: 22 Aug 2009

PostPosted: Mon Sep 07, 2009 9:36 pm    Post subject:  Soviet Subpen Reply with quote  Mark this post and the followings unread

Having some fun coding the art for the subpen from this website http://zombapro.net/depot/buildshp1.html ive got the buildups and damage frames sorted but cannot get the 2 animations to work

Here is my coding:

[NASUBPEN]
Remapable=yes
Normalized=yes
Height=10
Cameo=NASUBPENICON
Foundation=4x4
Buildup=NASUBPENMK
DemandLoadBuildup=true
IdleAnim=NASUBPEN_A
IdleAnimDamaged=NASUBPEN_A
IdleAnimZAdjust=-77
IdleAnimYSort=543
IdleAnimPowered=no
ActiveAnimTwo=NASUBPEN_B
ActiveAnimTwoDamaged=NASUBPEN_B
ActiveAnimTwoZAdjust=-80
ActiveAnimTwoYSort=543
DockingOffset0=384,-128,0
CanHideThings=True
CanBeHidden=False
OccupyHeight=4
AddOccupy1=-3,-1
AddOccupy2=-3,-2
AddOccupy3=-3,-3
AddOccupy4=-2,-3
AddOccupy5=-4,-2
AddOccupy6=-4,-3
DamageFireOffset0=25,45
DamageFireOffset1=-37,42
DamageFireOffset2=-57,-6

Any ideas?

Back to top
View user's profile Send private message
OmegaBolt
President


Joined: 21 Mar 2005
Location: York, England

PostPosted: Mon Sep 07, 2009 9:50 pm    Post subject: Reply with quote  Mark this post and the followings unread

Just take a look at the way other anims are coded. They have separate art entries to the building itself. Also remember to list the anim in the Animations list in rules(md).

Back to top
View user's profile Send private message Send e-mail
ArvinCool
Tiberian Beast


Joined: 01 Jun 2008

PostPosted: Mon Sep 07, 2009 10:00 pm    Post subject: Reply with quote  Mark this post and the followings unread

I remeber when I coded this before, I am not sure but I think ActicateAnimTwo dont work on naval buildings?

Anyway use these codes if u want:
Code:

[NASUBPEN]
Remapable=yes
Normalized=yes
Height=10
Cameo=nasubpenicon
Foundation=4x4
Buildup=NASUBPENMK
DemandLoadBuildup=true

ActiveAnim=NASUBPEN_B
;ActiveAnimDamaged=NASUBPEN_AD
ActiveAnimZAdjust=-77
ActiveAnimYSort=543

;ActiveAnimTwo=NASUBPEN_B
;ActiveAnimTwoZAdjust=-77
;ActiveAnimTwoYSort=543
;ActiveAnimTwoPowered=no

;ActiveAnimThree=NASUBPEN_B
;ActiveAnimThreeZAdjust=-77
;ActiveAnimThreeYSort=543
;ActiveAnimThreePowered=no


ProductionAnim=NASUBPEN_A
ProductionAnimDamaged=NASUBPEN_AD
ProductionAnimZAdjust=-80
ProductionAnimYSort=543



DockingOffset0=384,-128,0
CanHideThings=True
CanBeHidden=False
OccupyHeight=4
AddOccupy1=-3,-1
AddOccupy2=-3,-2
AddOccupy3=-3,-3
AddOccupy4=-2,-3
AddOccupy5=-4,-2
AddOccupy6=-4,-3
DamageFireOffset0=25,45
DamageFireOffset1=-37,42
DamageFireOffset2=-57,-6
DemandLoad=true


[NASUBPEN_A]
Image=NASUBPEN_A
Normalized=yes
Start=0
LoopStart=0
LoopEnd=17
LoopCount=-1
Rate=200
Layer=ground
NewTheater=yes
Shadow=yes
DemandLoad=true


[NASUBPEN_AD]
Image=NASUBPEN_A
Normalized=yes
Start=18
LoopStart=41
LoopEnd=35
LoopCount=-1
Rate=200
Layer=ground
NewTheater=yes
Shadow=yes
DemandLoad=true


[NASUBPEN_B]
Image=NASUBPEN_B
Normalized=yes
Start=0
LoopStart=0
LoopEnd=11
LoopCount=-1
Rate=200
Layer=ground
NewTheater=yes
DemandLoad=true

CanHideThings=True
CanBeHidden=False


The second animation will be displayed when you buy a naval unit and stay there like a normal animation



image540.png
 Description:
 Filesize:  3 KB
 Viewed:  1295 Time(s)

image540.png



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

Back to top
View user's profile Send private message
danW
Civilian


Joined: 22 Aug 2009

PostPosted: Mon Sep 07, 2009 10:09 pm    Post subject: Reply with quote  Mark this post and the followings unread

thanks guys, works perfectly now 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 [4 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.1571s ][ Queries: 14 (0.0107s) ][ Debug on ]