Jump to content


Photo

laser point defense system


  • Please log in to reply
5 replies to this topic

#1 lechibaw

lechibaw
  • Members
  • 16 posts

Posted 23 October 2015 - 10:48 AM

Hi, I want have laser point defense for alpha auroras but I don't know what to do, can anyone explain me please?
Sorry for my bad English



#2 Assault_Rains

Assault_Rains
  • Members
  • 59 posts
  • Location:The Netherlands

Posted 23 October 2015 - 12:14 PM

A vague guess I have is that you will have to find the parameters in the configuration for the King Raptor and copypasta it into the file for the Aurora Alpha.  
You will need FinalBIG (program) and mess with the INIZH.BIG file. You need to find the conditions related to the laser and apply them to the conditions for the Aurora Alpha.
 
Object AirF_PointDefenseLaserBeam
  ; *** ART Parameters ***
  Draw = W3DLaserDraw ModuleTag_01
     Texture = EXLaser4.tga
    NumBeams = 5                              ;Number of overlapping cylinders that make the beam. 1 beam will just use inner data.
    InnerBeamWidth = 0.005                    ;The total width of beam
    InnerColor = R:255 G:0 B:180 A:120          ;The inside color of the laser (hot)
    OuterBeamWidth = 10                       ;The total width of beam
    OuterColor = R:100 G:0 B:100  A:100            ;The outside color of the laser (cool)
    Tile = Yes                                ;The height of the texture will determine how many times to tile the texture to fit without scaling.
    ScrollRate = -2500                        ;Scrolls the texture offset this fast -- towards(-) away(+)
    Segments = 1                              ;Number of segments -- more segments give smoother curve (but more joints) Current max: 20
    SegmentOverlapRatio = 0                   ;This value overlaps(+) or separates(-) the segments by ratio
    TilingScalar = -3                         ;Stretches tiling if value > 1.0, otherwise shrinks it (1.0 is natural)     
 
    ;MaxIntensityLifetime = 2000              ;Laser stays at max intensity for specified time in ms.
    ;FadeLifetime = 0                         ;Laser will fade and delete.
    ;@todo -- add shot ability functionality (instead of instant point A to B)
  End
 
 
  KindOf = IMMOBILE
  ClientUpdate = LaserUpdate ModuleTag_02
    MuzzleParticleSystem = PaladinPointDefenseLaserFlare
    TargetParticleSystem = GenericLaserFlare
  End
 
  ;Used as a weapon, this is essentially a fast pulse laser. Adjusting
  ;the lifetime values will determine how long it renders. The damage
  ;is applied immediately, so lifetime doesn't matter.
  Behavior = LifetimeUpdate ModuleTag_03
    MinLifetime = 95   ; min lifetime in msec
    MaxLifetime = 95   ; max lifetime in msec
  End
End
This here is probably the code responsible for the laser.

 
 Behavior = PointDefenseLaserUpdate ModuleTag_Laser_One
    WeaponTemplate        = AirF_PointDefenseLaser
    PrimaryTargetTypes    = BALLISTIC_MISSILE SMALL_MISSILE
    ScanRate              = 0
    ScanRange             = 200.0
    PredictTargetVelocityFactor = 1.0
  End

This is the code from the kingraptor, somewhere it should mention the laser. As seen above, this is what you add to the code for the Aurora Alpha.

A VERY BIG TL;DR: JUST READ WHAT THE CODE SAYS.




Edited code;
http://pastebin.com/Jjp3SbvR

EDIT; It works, heres the BIG file that goes into your ZH folder. http://www28.zippysh...OdgSq/file.html

Edited by Assault_Rains, 23 October 2015 - 12:50 PM.

C&C Mod/Map testing - Graphics - Music Producer

 

JFTQjpb.png


#3 Assault_Rains

Assault_Rains
  • Members
  • 59 posts
  • Location:The Netherlands

Posted 23 October 2015 - 12:58 PM

And if you're looking for what I did, here's the explanation:

 

Using http://www.cnclabs.c...-directory.aspxI found out where to look for which files.

 

First I opened up the INIZH.BIG file using this tool (FinalBIG); http://www.cnclabs.c...der.aspx?id=240

 

After that I just looked at the code and how it works, I found out units are labeled and sought after the laser and the King Raptor, I found the laser code and copied it to the Superweapon General unit file.


C&C Mod/Map testing - Graphics - Music Producer

 

JFTQjpb.png


#4 lechibaw

lechibaw
  • Members
  • 16 posts

Posted 23 October 2015 - 01:13 PM

Thanks a lot for your help, I will tray a little later and I will give you news, thanks :)



#5 lechibaw

lechibaw
  • Members
  • 16 posts

Posted 23 October 2015 - 01:22 PM

It works very well, thanks again for your help my friend, it's perfect :)



#6 Assault_Rains

Assault_Rains
  • Members
  • 59 posts
  • Location:The Netherlands

Posted 23 October 2015 - 01:23 PM

It works very well, thanks again for your help my friend, it's perfect :)

 

 

Glad to help, feel free to ask whenever you need something!

 

Note: the modded Zero Hour does not work Online, unless the other players also install the modification. (it will cause desync).


Edited by Assault_Rains, 23 October 2015 - 01:24 PM.

C&C Mod/Map testing - Graphics - Music Producer

 

JFTQjpb.png





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users