:: 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 Sat Sep 21, 2019 7:00 am
All times are UTC + 0
 Forum index » Modding Central » Red Alert 2 Editing Forum » Tutorials Vault
Using IsLine/ColorAdd with regular weapons [ARES]
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
Author Message

Joined: 09 Mar 2008
Location: Osaka (JP)/Hong Kong/Germany

PostPosted: Mon Jun 29, 2015 1:42 pm    Post subject:  Using IsLine/ColorAdd with regular weapons [ARES]
Subject description: stopgap solution
Reply with quote

YR has the feature of adding IsLine to weapons, which will draw a colored line (distinct from a laser) between the firer and the target. It also causes the target to "glow". This feature is seen in the AirstrikeFlare weapon used by Boris.

IsLine is not functional when added to weapons that do not have Airstrike=yes on their warhead, and likewise, Airstrike=yes prevents the weapon's damage from taking effect.

Ares has not yet enabled the use of IsLine on customizable weapons. The following tutorial should explain a method with which regular damage-dealing weapons can be implemented that have an IsLine drawing effect (and cause the target to glow).

- Only works with weapons which have homing or invisible projectiles.
- A unit cannot have both a line-drawing weapon, and a functional airstrike weapon.
- IsLine and ColorAdd only work against buildings (although the weapon itself will fire against any target).


VoiceAirstrikeAttack=none ; This ensures the unit does not play the regular Airstrike voice when attacking.
AirstrikeTeam=1 ; it may be that 0 is actually valid here - in that case, AirstrikeTeam and AirstrikeTeamType can be omitted entirely. However, the voice settings must be present.

The unit has a weapon that would normally call for airstrikes (thus enabling the line drawing), but its settings disable it from actually causing any aircraft to spawn, nor the appropriate sound effects to play.

This is the weapon:

ROF=xx ; anything you like the weapon to have
Range=xx ; anything you like the weapon to have
Warhead=AirstrikeFlare ; a warhead with Airstrike=yes is essential
Projectile=LineProjectile ; this is essential
ProjectileRange=0 ; this is essential

The weapon would normally cause an airstrike, but because of its projectile statistics, it cannot hit the weapon directly - it will still draw a line to its target however...

The projectile:

AA=? ; up to you
AG=? ; up to you
Ranged=yes ; this is essential

This detonates instantly upon being fired, releasing the real weapon that will deal damage.

Let's assume you want the real weapon to be a missile weapon:

Projectile=LaserGuided ; this will not work with arcing projectiles
Range=xx ; this should be identical to Range of LineWeapon
Warhead=HE ; anything - this can be a real warhead

Since only the LineWeapon has Airstrike=yes on its' warhead, only that weapon is unable to deal damage. The RealWeapon has a regular warhead and can deal damage normally, while the LineWeapon still draws a line to the target (even if unable to hit it with its projectiles).

* You can create a "lock-on" effect during which the target is painted by the laser, but the weapon does not yet fire, by adding a PreImpact animation to the warhead of the 'LineWeapon' - the AirburstWeapon will only fire after the PreImpact anim has finished playing, thus allowing to create delay.
* It _is_ possible to create a similar weapon without Ares (but why would you?) by omitting the Splits projectile in favour of a real projectile and dealing damage via the warhead's animation.

Key Words: #Tutorials #Modding #RedAlert2 #YurisRevenge #Ares #Rules.INI 

Mao Zedong wrote:

Our mission, unfinished, may take a thousand years.  

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
 Forum index » Modding Central » Red Alert 2 Editing Forum » Tutorials Vault
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.1031s ][ Queries: 11 (0.0029s) ][ Debug on ]