Jump to content


Photo

Help how do I make night missions?

night mission

  • Please log in to reply
4 replies to this topic

#1 pyjamasPojken

pyjamasPojken
  • Members
  • 48 posts
  • Location:Sweden

Posted 29 December 2016 - 03:54 PM

I'm very new to Commandos 2 modding and I wondered how to make night missions (like night of the wolves and bonus 5). I'm planning to make a night version of the bridge over river kwai mission, so any help

would be appreciated, thanks in advance  :thumbsupsmiley:



#2 sleepinsun

sleepinsun
  • Members
  • 26 posts

Posted 29 December 2016 - 09:45 PM

https://sites.google...iki/random-tips



#3 pyjamasPojken

pyjamasPojken
  • Members
  • 48 posts
  • Location:Sweden

Posted 29 December 2016 - 10:50 PM

nothing happens :sad:

i wrote this code in RY.MIS but night mode is not on, am i doing something wrong?


Edited by pyjamasPojken, 29 December 2016 - 10:54 PM.


#4 SirRH

SirRH

    title available

  • Members
  • 604 posts
  • Location:Uranus

Posted 29 December 2016 - 11:09 PM

nothing happens :sad:

i wrote this code in RY.MIS but night mode is not on, am i doing something wrong?

There are 2 pieces of code you need to start night mode:
 

By adding the code .DATOS_LUZAMBIENTE inside of .MUNDO:
 
 
    .MUNDO 
    [
            .DATOS_LUZAMBIENTE 
        [
            .NOCTURNA  1.0 
        ]
 
and this .ESPECIAL_ESCENARIOS anywhere you wish:
 
 
                  .ESPECIAL_ESCENARIOS 
        (
            
            [
                .NOCTURNO  1.0 
                .ELONGSOMBRA  0.3 
                .COLORVISTAALEMANCERCA 
                (
                    0 48.0 40.0 
                )
                .COLORVISTAALEMANLEJOS 
                (
                    0 32.0 24.0 
                )
                .COLORVISTAALEMANRANGOFOCO 
                (
                    0 16.0 16.0 
                )
                .COLORVISTAALIADOCERCA 
                (
                    48.0 40.0 16.0 
                )
                .COLORVISTAALIADOLEJOS 
                (
                    32.0 32.0 24.0 
                )
                .COLORVISTAALIADORANGOFOCO 
                (
                    24.0 16.0 16.0 
                )
                .NOMBRE EXTERIOR 
            ]
        )
 
You Can Make Any Mission Start in "Night Mode".

 

 

And to add lights in night missions:
 

Lights code works like this:
 
the first coordinates indicate the source of the light, the second coordinates indicate where the source will place it's light,
NOTE: the higher the z value the more circular the light will be (in other words: the z value of the light must be higher than the z value of the source position, usually the x and y coordinates should be the same for the source and for the light to make it perfectly circular).
Code Analysis:
 
 
  .RADIO_LUZ 50.0           #The radius of the light (light size)
  .VEL_GIRO 0          #By changing it from 0 to 1 (or 2, 3, etc.) the light will move (the higher the number, the faster the light will move)
  .CON_FOCOGRAFICO  1.0     #Makes the light visible if set to 1.0 (0 = light invisible)
  .ROMPIBLE  1.0         #If you delete this string the light will not be destroyable (with, it will).

 

A good way to learn things also is by checking the .mis of other missions/mods


Edited by robb, 29 December 2016 - 11:11 PM.


#5 pyjamasPojken

pyjamasPojken
  • Members
  • 48 posts
  • Location:Sweden

Posted 30 December 2016 - 11:07 AM

Thanks robb, you gave the same solution but this one worked! 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users