SCASM 2.88

roads and more

  

command index:
 
back to main index
 
SurfaceType( )
RRStart( )
Road ...
SetVar( )
SetVar7E( )
SetElevation( )
SetWeather( )
Weather( ) / Lift( )
Specular( )

 

FS5 - FS2002
SurfaceType( type   width_x   width_y   alt )
 

This instruction defines the surface properties of a given rectangular area. Note, you cannot 'harden' an elevated surface with this command! Use aditional section 16 commands for this.

type 
smooth surface, runnway, taxiway
rough surface, grass
water surface, causes splash/crash
width_x
width_y 
W-E ...
N-S deviation, depends on the scale factors in the RefPoint() command. The width is measured from the left (or upper) side to the right (or lower) side. (integer)
alt  Altitude of the surface measured in meters (integer). In FS2000 this parameter is ignored

TOP 

CFS/FS2000 - FS2002
RRStart( typ wid x z y )
I_A8(...)
 

Defines a new starting point for roads and rivers. Road and rivers are normally covered with textures.
This command should always be followed by an: RoadCont() or RiverCont() command which are equal to the old RoadLineTo() command.

typ 
use last SurfaceColor() / RGBSColor()
use last texture, Bitmap() / LoadBitmap()
major road / v_road_major.bmp
minor road / v_road_minor.bmp
railroad / v_railroad.bmp
river (small) -/ v_river.bmp
wid width in m

TOP 

FS5 - FS2002 ?
RoadStart(width delta_x   delta_z   delta_y )
RiverStart(width delta_x   delta_z   delta_y )
TaxiwayStart(width delta_x   delta_z   delta_y )
RoadCont(  delta_x   delta_z   delta_y ... )
RiverCont(  delta_x   delta_z   delta_y ... )
TaxiwayCont(  delta_x   delta_z   delta_y ... )
 
RoadMoveTo(width delta_x   delta_z   delta_y )
RoadMoveTo2(width delta_x   delta_z   delta_y )
TaxiMoveTo(width delta_x   delta_z   delta_y )
RoadLineTo(  delta_x   delta_z   delta_y ... )
RoadLineTo2(  delta_x   delta_z   delta_y ... )
TaxiLineTo(  delta_x   delta_z   delta_y ... )
 

Every ..Move../..Start instruction sets the starting point of a road or taxiway relative to the active reference point. The ..Line../..Cont instruction draws a road or taxiway from the previous point to the point defined in this instruction and stores his position as a starting point for an following ..Line../..Cont instruction.
During dusk and nights roads have orange lights and taxiways have blue lights. The color can be chosen by SurfaceColor().
If a texture is loaded just before these drawing commands the river or taxiway is drawn with this texture. You can use TextureEnable( 0 ) to disable this texture.

For FS2000 use RRStart() for roads and rivers.

width  1/2 width in refpoint units (integer). Negative values can be used to switch off the road/taxiway lights.
delta_x  distance in east-west direction from reference point or from the previous point (integer).
delta_z  height difference, usually 0 (int)
delta_y  distance in north-south direction from reference point or from the previous point (integer).

TOP 

FS5 - FS2002
SetVar( FSvar val )
 

Sets a local variable

FSvar  FS5 local variable number in HEX
val  new value in decimal (or hex if started with 0x## )

TOP 

FS5 - FS2002
SetVar7E( FSVar val )
 

This command sets a global variable.


TOP 

FS5 - FS98
SetElevation( elev )
 

Defines an elevated hard surface i.e. for a runway on a mountain. Elevated surfaces produced by this command are always smooth (good for runways). This instruction was only found in section 16

elev  elevation (MSL) in meters (integer)

TOP 

FS5 - FS2002
SetWeather( :Label )
TimerSw( :Label )
 

This instruction works like a timer controlled switch. The following code is executed once about every second to set new weather conditions. You can test this with 3D objects.
The programm code that defines the lift must follow imediately this instruction and must end with Return. :Label points to an instruction where to continue, after the lift is created or if the switch is not active. This is usually the end of an Area() block.

Example:
Area( 5 ... )
    SetWeather( :end )
    ; TimerSw( :end ) ; old
    Perspective
    RefPoint( rel :end_lift ... )
    IfPlaneInBox( :end_lift ... )  ; to limit the
                                   ; border of the
                                   ; lift area
    ...
    Weather( 14C 200 6000 0 )      ; Lift in older
                                   ; versions
:end_lift
    Return    ; very important !
    ;
:end
EndA

TOP 

FS5 - FS2002
Weather( flags dir factor extra )
Lift( flags dir factor extra )
 

This is the instruction to change the weather conditions. In the moment only thermal lift and lift by deflected air are known. Thermal lift only works if the sun is shining. Lift produced by deflected air only works if surface wind is enabled in the weather menu and the wind direction is similar to the "dir" parameters. The strength of the lift depends on the wind speed, wind direction and the factor (of lift ?). Depending on the wind speed (10..40 kts) the lift factor is typicaly from 6000 to 1000.

flags  hex value, typical values are 14C, 34C, 44C first digit:
1..  enables lift created by deflected air
2..  enables turbulent air
4..  enables thermal lift. Thermal lift depends on the time of day. It seems the other parameters have no effect on thermal lift.
.4C  always found this value. Setting it to 00 or FF seems to do nothing.
dir  direction (heading in degrees) from where the wind should come to produce a maximum of lift. Only valid if ridge lift enabled.
factor  this factor is used to control the amount of lift. Typical values are 2000 to 6000. Maximum is 32767.
extra  reserved, set to 0.

The latest FS2000 SDK lists different flag values:
flags 
0..  ridge lift
1-2..  turbulence
3..  thermal

TOP 

2.43 | FS2000 - FS2002
Specular( state )
I_93( s )
 

purpose unknown.

state  only found values are 0 or 1

 
    
TOP © Manfred Moldenhauer