:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::

Do you want to advertise at Project Perfect Mod. Find out how to do it HERE.

The time now is Mon May 23, 2022 9:12 am
All times are UTC + 0
 Forum index » Modding Central » Media Hut » Tutorials
How to add SHP or Voxel Turrets to BuildingTypes in YR
Moderators: Global Moderators, Media Hut Moderators
Post new topic   Reply to topic Page 1 of 1 [1 Post] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Atomic_Noodles
Defense Minister


Joined: 05 Oct 2011

PostPosted: Wed Jan 19, 2022 6:45 am    Post subject:  How to add SHP or Voxel Turrets to BuildingTypes in YR Reply with quote  Mark this post and the followings unread

By default SHP Turrets need 32 Frames for each facing


In Rulesmd make sure to add the Turret SHPs in the animations list

[Animations]
XXX=TURRET_A
XXX=TURRET_AD

On the Building itself you will need to change or add these tags to the building

Turret=yes ; Makes sure the Building will try and draw in a Turret File from the Animations List
TurretAnim=TURRET_A ; Turret Animation to draw, Can be either SHP and cannot be both at the same time
TurretAnimDamaged=TURRET_AD ; Damaged Version is optional and by default isn't called in unless specified by the code
TurretAnimIsVoxel=False ; This makes sure the Game will draw the SHP file you put in TurretAnim and TurretAnimDamaged
TurretAnimX=0 ; Will move the Turret position along the X Axis, adjust accordingly
TurretAnimY=0 ; Will move the Turret position along the Y Axis, adjust accordingly
TurretAnimZAdjust= ; Renders how far it should be to the layering, adjust accordingly
TurretRotateSound= Looping Sound to play when the Turret is rotating

These Apply to Voxel Turrets only, These are used by the Grand Cannon in Red Alert 2 & Yuri's Revenge

TurretRecoil= Does the Turret get pushed back after firing
TurretTravel= How many leptons it will get pushed pash after firing
BarrelTravel= How many leptons it will get pushed pash after firing
BarrelCompressFrames= The number of frames that the barrel attached to the TurretAnim= on this BuildingType takes to compress (recoil). Only applies to structures that have TurretRecoil=yes set to give the impression of the barrel recoiling.
BarrelHoldFrames= The number of frames that the barrel attached to the TurretAnim= on this BuildingType will hold before it starts recoiling back.
BarrelRecoverFrames= The number of frames that the barrel attached to the TurretAnim= on this BuildingTYpe will take to adjust back to its original position.


In Artmd

The following relates o SHP Turrets
; Single SHP File with no Damaged Turret Frames

[TURRET_A]
Start=0
LoopStart=0
LoopEnd=31
LoopCount=-1
Layer=ground
Shadow=yes

; Holds both the Normal & Damaged Frames in the same SHP

[TURRET_A]
Start=0
LoopStart=0
LoopEnd=31
LoopCount=-1
Layer=ground
Shadow=yes

[TURRET_AD]
Image=FLAKTUR
Start=31
LoopStart=31
LoopEnd=63
LoopCount=-1
Layer=ground
Shadow=yes

And viola. You now have a turret on your buildingtype.
_________________
~ Excelsior ~

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 [1 Post] Mark the topic unread ::  View previous topic :: View next topic
 Forum index » Modding Central » Media Hut » Tutorials
Jump to:  
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
Quick Reply
Username:


If you are visually impaired or cannot otherwise answer the challenges below please contact the Administrator for help.


Write only two of the following words separated by a sharp: Brotherhood, unity, peace! 

 
You cannot post new topics in this forum
You can 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.1519s ][ Queries: 11 (0.0083s) ][ Debug on ]