:: 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 Tue Jun 25, 2019 1:25 am
All times are UTC + 0
 Forum index » Modding Central » Generals Editing Forum » Tutorials Warehouse
Armor Tutorial
Moderators: Generals Moderators, Global Moderators
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message

Joined: 08 Aug 2009
Location: Netherlands

PostPosted: Thu May 20, 2010 8:46 am    Post subject:  Armor Tutorial
Subject description: Becouse it was asked for :)
Reply with quote

Armor in CnC Generals(Zero Hour to) is something which defines how much damage a object takes from certain damage types, together with the Healthpoints of a unit, this will define how much times a unit can be hit by a certain weapon before it dies.

To start with, there's a large sum of different damage types used in Generals, each weapon does a certain damage type.
Infantry like redguards and rangers usually use SMALL_ARMS damage, tanks use ARMOUR_PIERCING, Jets usually JET_MISSILE, bomb EXPLOSION, this way there's a over 12 other damage types.

The Armor.ini file:

Armor NoArmor
 Armor = DEFAULT         100%

^^That's how it looks like, on the first line we have "Armor", this says this is a bit of armor coding, followed by NoArmor, which is the name of the armor. The name of the armor can also be found in a units ini file, as it tells there that the unit will use that armour.

The seccond line is "Armour = DEFAULT 100%" simply said this line (if used) should always be the seccond line to ensure a functioning armor. What this line says is that from any damage type the unit will take all the damage.

The Third line says that if the damage type "HAZARD_CLEANUP"is encoutered we should ignore the "DEFAULT" value and use this one instead.

So if we would add another line like "Armor = SMALL_ARMS 25%", then also the damage taken from Light infantry(and the Quad Cannon and Tunnel Network) would be reduced.

The value 25% tells us that the armor will make the unit take only 25% of the damage given to it by that perticular damage type.

The Final line is "End", this tells the game that this is the end of this armor, the End word is very important, don't forget it, or the game will get confused and reject to even start up.

In the first lines of Armor.ini there's a list of damage types, please note that this is not a complete list, as there are even more damage types than noted in the list.

So as a small conclusion:

Armor (name of armor)
Armor = (Damage type) (Percentage to take of obtained damage)

Hope this helps people out Smile

Key Words: #Tutorials #Modding #Generals #ZeroHour 

Back to top
View user's profile Send private message

Joined: 11 Jul 2008
Location: New Zealand

PostPosted: Fri May 21, 2010 8:29 am    Post subject: Reply with quote

That makes sense. Thanks for that 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 [2 Posts] View previous topic :: View next topic
 Forum index » Modding Central » Generals Editing Forum » Tutorials Warehouse
Jump to:  
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

Wildcard SSL Certificates
[ Time: 0.1182s ][ Queries: 12 (0.0095s) ][ Debug on ]