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 Sat Apr 20, 2024 10:15 am
All times are UTC + 0
Ares 0.1:EMP with Damage for different verses
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
kenosis
Commander


Joined: 19 Aug 2009
Location: Moscow State University

PostPosted: Mon Apr 11, 2011 5:39 am    Post subject:  Ares 0.1:EMP with Damage for different verses Reply with quote  Mark this post and the followings unread

With the released Ares 0.1,MakeInfantry anims  on warheads will not mutate to your own infantry(or I mistaked anyway?),so the mine part is for higher Ares vision.
For cute little mines go over here
http://www.ppmsite.com/forum/viewtopic.php?p=418829#418829


Code:

;*******************************
;If you are not intersted in mines,cpoy [MineEMP][MineEMPPr][MineEMPWH] and go downwards.Ignore other parts about the mine.You will get 3 sample weapons  with instruction near the end of this tutorial.
;***************************************
;Mine weapon module.The primary part is [MineKill].Changed the order to easier copy needed parts.
;[MineEMP][MineEMPPr][MineEMPWH] will be used in other ways so you must have them in your ini.

;Warhead introduced:GetMineAres,MineKillerWH,MineEMPWH,APSpecial

[WeaponTypes]
1=MineEMP
2=MineGeneratorAres
[General]
AnimToInfantry=BRUTE,DUMMYINF7

[MineEMP]                   ;the EMP part of this trick.You can write others with EMP or Psychedelic warhead
Damage=1                  ;normal damage
ROF=1
Projectile=MineEMPPr
Warhead=MineEMPWH
Range=1.5
DecloakToFire=no

[MineEMPPr]
Image=INVISO
Arm=10
Shadow=no
Acceleration=100
Vertical=yes
DetonationAltitude=0           ;double warhead trick,this makes the spawned weapon to explode immediately.


[MineEMPWH]
Verses=5%,5%,5%,5%,5%,5%,5%,5%,5%,5%,5%      ;set your own
CellSpread=1
AnimList=INVISO
PercentAtMax=1
EMP.Duration=100            ;actually EMP explosion is triggered 9 times.
EMP.Cap=9999




[MineKill]                ;the normal damage part
Damage=100
ROF=500
;Suicide=yes
Projectile=MineVertical
Warhead=MineKillerWH
Range=1.5                   ;perfect for a mine
Anim=ASDFG                   ;you cannot use suicide on a EMP mine.because when using suicide,double warhead will not be triggered.Animation suicide instead.
DecloakToFire=no               ;cloakable mines need this

[MineVertical]
Image=INVISO
Shadow=no
Acceleration=1
Vertical=yes                       ;fake areafire
Airburst=yes                         ;double warhead trick.You can also create psychedelic weapon with normal damage
AirburstWeapon=MineEMP
Cluster=1                           ;seems that in Ares this tag is still hardcoded to 9,so you can not make any warhead tricks more than 2 kind.If this is enabled,you will be able to create psychedelic+EMP weapons with damage too.Just a example.

[MineKillerWH] ;Explosion
Verses=300%,300%,300%,100%,100%,100%,10%,8%,6%,300%,300%
InfDeath=6;3
CellSpread=1.5
PercentAtMax=.25
AnimList=TWLT070

;*********************************************
;Mine layer missile.Why not lay your mines by firing a weapon?There are so many ZH mods with that feature.Make a minelayer  creating building or vehicle type mines will cause path finding problems.The old RA1 way is out of date on RA2.

[AresMineLayer]                       ;Ares only.NPext vision is much longer.
Damage=1                                ;special weapon's damage,useless
ROF=40
Range=15
Burst=1
Projectile=AresMineLayerPr
Speed=30
Warhead=RailShot
MinimumRange=1

[AresMineLayerPr]
Arm=2
Shadow=no
Ranged=yes
AG=yes
Image=DRAGON
ROT=60
SubjectToCliffs=no
SubjectToElevation=no
SubjectToWalls=no
Airburst=yes
AirburstWeapon=MineGeneratorAres

[MineGeneratorAres]
Projectile=InvisibleAll
Damage=2
Warhead=GetMineAres
Range=15
ROF=300

[GetMineAres]
CellSpread=2
PercentAtMax=1
Verses=0%,0%,0%,0%,0%,0%,0%,0%,0%,0%,0%
AnimList=TOINF7
Sparky=no


;***************************
;Mine module.Already set to deal with all targets available,you don't need to change this module much.

[DUMMYINF7]
UIName=Name:MINE
Name=Mine
AllowedToStartInMultiplayer=no
Image=MINE                     ;Image by Zerg Kete
NotHuman=yes
TypeImmune=yes                 ;a mine's explosion should not affect other mines.Or you can use warhead immunity.
Category=Soldier
ImmuneToPoison=yes
Sensors=yes
SensorsSight=2
Primary=MineKill
AllowedToStartInMultiplayer=no
Fraidycat=yes
NoShadow=yes
Shadow=no
;DefaultToGuardArea=yes
;GuardRange=2              ;this will make them behave like Spider Mines of starcraft.If this is enabled,you should change the speed.Not recommended.
Civilian=yes
Trainable=no
Insignificant=yes
Crushable=yes
RadarInvisible=yes
;Cloakable=yes                        ;Dropped from a missile,should it cloak?
PixelSelectionBracketDelta=-10000
CloakingSpeed=1
Selectable=no
Occupier=no
Prerequisite=NAHAND
CrushSound=InfantrySquish
Strength=1
Armor=heavy
TechLevel=-1
Sight=1
Speed=1
Owner=MKLAB
Cost=0
Soylent=0
Points=0
IsSelectableCombatant=yes
Locomotor={4A582744-9839-11d1-B709-00A024DDAFD1}
PhysicalSize=1
SpeedType=Amphibious
MovementZone=AmphibiousDestroyer                       ;you get mines in water too.
ThreatPosed=5
VeteranAbilities=STRONGER,FIREPOWER,ROF,SIGHT,FASTER,CLOAK
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
ImmuneToVeins=yes
Size=1
AllowedToStartInMultiplayer=no
IFVMode=2
DontScore=yes
DontSayUnitLost=yes
ImmuneToPsionics=yes
ImmuneToRadiation=yes


;****************Art**********************
[TOINF7]
Layer=ground
MakeInfantry=1
Shadow=no

[ASDFG]
Rate=400
Warhead=RailShot
Damage=1
Report=Dummy

;Mine art is in the SHP thread.You only need to set PrimaryFireFLH=0,0,0





So that's the end.When Ares don't have seperated verses for EMP and normal damage,we can only use this trick or animation damage.This trick has lower (though avoidable)accuracy but gains experience.Animation damage is fine for delivering damage but at the cost of experience.Personally recommended:on main battle tanks,small arms use animation damage(ohhhh crazy,EMP shells for MBT!!Animation damage ignores experience,so better only on elite units that gains EMP upgrade),on seige units or bombardments use this trick.Or if you don't mind making your unit's weapon 'massive',use this.(XD    A little bit 'massive' is not a big problem,personally.In ZH general Alexandra's EMP patriots can disable group of units)





Now thanks to Graion Dilach,making me realize the importance for the logic part.Here is it.

When Airburst and AirburstWeapon is used with a non-missile projectile,it will detonate just as they did without these Airburst voodoo.So adding such code  to Arcing,Inviso and Vertical projectiles will not lead to any big change except the accuracy(adjust by changing CellSpread).

In short:
The right projectile type with airburst weapon will behave normal

and the second part,the airburst weapons,they will behave like :
ROT kinda projectile-always seperate to attack 9 cells around
Inviso kinda projectile-immediately hit 9 cells around
Vertical kinda projectile-will not seperate and hit the only one cell in the center.

In short:
If on the spawned weapon's projectile Vertical is used,it will detonate at the master weapon's target

Available with:Ares,GZ,NP,NPExt,Vanilla YR,RA2,can be used for all double warhead design.

Frame code:

[WeaponMain]
Projectile=ProjectileMain

[ProjectileMain]
Airburst=yes
AirburstWeapon=WeaponSpawned

[WeaponSpawned]
Projectile=ProjectileSpawned

[ProjectileSpawned]
Vertical=yes

In the frame you can take "MineKill" as Main, MineEMP as Spawned.

Also TestCannon,TestBolt,TestMissile as Main,MineEMP as Spawned.
TestCannon,TestBolt,TestMissile are examples for this logic,nothing to do with the mine part.Just for C&P users.You can ignore them from this tut.
MineKill and MineEMP are combined by AirburstWeapon.
Though EMP blast is triggered 9 times,its warhead doesn't have a visible AnimList.So not laggy.
InfDeath is decided mainly by the main weapons warhead.The spawned is mostly used for special,non-killing warhead.You see InfDeath in the MineEMPWH because I copied the warhead from one existing,it does not matter anyway. Very Happy


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

_________________
Tired of grabbing my random SHP conversions? Why not learn to create SHPs for yourself?

Last edited by kenosis on Tue Aug 30, 2011 7:14 am; edited 5 times in total

Back to top
View user's profile Send private message Send e-mail Visit poster's website Skype Account Yahoo Messenger Account
kenosis
Commander


Joined: 19 Aug 2009
Location: Moscow State University

PostPosted: Mon Apr 11, 2011 2:45 pm    Post subject: Reply with quote  Mark this post and the followings unread

http://tieba.baidu.com/%D3%C8%C0%EFmod/shipin/play/ab7aeab7d8d4f516e312cd44/
heavily buffed video showing the mine layer.Or you can see the video right here.Thanks to our glorious GreatFireWall(GFW),I cannot use twitter or Youtube.

Of course the mine part can be adjusted.Except for basic range and ROF editing,you can:
①Set AresMineLayerPr to Vertical instead of a missile.Attach a firing anim to AresMineLayer that kills the firer.Then you get one-time mine layer around itself.A drone can do this well.Or a cloakable building planting mines around itself every a few minnutes.The second one is not a good idea but the first is worth a try.
②Enable the mine to guard area,set a higher speed.You get spider mines in Starcraft.
..................................
And other modification of the mine code.Make your own.



emp mine layer.rar
 Description:

Download
 Filename:  emp mine layer.rar
 Filesize:  2.58 MB
 Downloaded:  457 Time(s)


_________________
Tired of grabbing my random SHP conversions? Why not learn to create SHPs for yourself?

Last edited by kenosis on Mon Apr 11, 2011 4:23 pm; edited 3 times in total

Back to top
View user's profile Send private message Send e-mail Visit poster's website Skype Account Yahoo Messenger Account
Speeder
Commander


Joined: 03 Sep 2004
Location: Czechia

PostPosted: Mon Apr 11, 2011 3:15 pm    Post subject: Reply with quote  Mark this post and the followings unread

Why do those mines appear and disappear? I've seen that in MKLab too. Is that 'infantry' sequence problem or what?

_________________
mentalomega.com

Back to top
View user's profile Send private message Send e-mail Visit poster's website YouTube User URL Facebook Profile URL Twitter Channel URL
kenosis
Commander


Joined: 19 Aug 2009
Location: Moscow State University

PostPosted: Mon Apr 11, 2011 3:43 pm    Post subject: Reply with quote  Mark this post and the followings unread

For melee ranged unit I suggest you to use the inviso sample and let the unit fire from outside its body,that may solve the accuracy problem.and let the inviso projectile detonate immediately by using 'DetonationAltitude=0'.Melee units should be immune to your own EMP warheads.
like PrimaryFireFLH=256,0,0

@speeder
The code is totally copied from NPExt vision MKLab mod,just modified some part to make an Ares vision.It is like in C&C:Generals,mines will blink.It is some kind of "feature simulation" though looks strange if you don't play generals.If you don't like that blink effect,rewrite the sequence or just fill the first 8 empty frames of the mine SHP.It is public with permission from Zerg Kete to edit yourself.

_________________
Tired of grabbing my random SHP conversions? Why not learn to create SHPs for yourself?

Back to top
View user's profile Send private message Send e-mail Visit poster's website Skype Account Yahoo Messenger Account
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.2311s ][ Queries: 13 (0.0102s) ][ Debug on ]