Cog Files


Sector Reference

These perform functions relating to geometry sectors.

ClearSectorFlags
FirstThingInSector
GetNumSectorSurfaces
GetNumSectorVertices
GetSectorCenter
GetSectorColormap
GetSectorFlags
GetSectorLight
GetSectorPlayerCount
GetSectorSurfaceRef
GetSectorThingCount
GetSectorThrust
GetSectorTint
GetSectorVertexPos
NextThingInSector
PrevThingInSector
SetSectorAdjoins
SetSectorColormap
SetSectorFlags
SetSectorLight
SetSectorThrust
SetSectorTint


ClearSectorFlags() Control

Clears the specified flags. Sector Flags

Use: ClearSectorFlags(sector,flags);


FirstThingInSector() Info

Gets the first thing in sector. Also see NextThingInSector and PrevThingInSector.

Use: First = NextThingInSector(sector);


GetNumSectorSurfaces() Info

Gets the Number of surfaces in sector.

Use: Numof = GetNumSectorSurfaces(sector); Not used in cogs. Not sure.


GetNumSectorVertices() Info

Gets the Number of sector Vertices.

Use: NumOf = GetNumSectorVertices(sector); Returns the number of vertices in sector


GetSectorCenter() Info

Finds the center of a sector.

Use: center = GetSectorCenter(?); Not used in cogs ,not sure.


GetSectorColormap() Info

Gets the current color map for the sector. CMP Files

Use: ColorMapNum = GetsectorColorMap(sector); returns the index to the colormap in use.


GetSectorFlags() Info

Gets the sector flags. Sector Flags

Use: Flags = GetSectorFlags(sector); returns the sector flags


GetSectorLight() Control

Gets the extra light value for sector.

Use: lightval = GetSectorLight(sector);returns the extralight value


GetSectorPlayerCount() Info

Gets the number of players in sector.

Use: GetSectorPlayerCount(sector); ,Not sure , not used in cogs.


GetSectorSurfaceRef() Info

?

? Not used.


GetSectorThingCount() Info

Gets the number of things in sector.

Use: GetSectorThingCount(sector,thing ?) ,not used , not sure .


GetSectorThrust() Info

Gets the sector thrust (velocity).

Use: speed = GetSectorThrust(sector); returns a vector.


GetSectorTint() Info

Gets the rgb tint of a sector.

Use: rgb = GetSectorTint(sector); ,Not actualy used, suspect rgb is expressed like a vector.


GetSectorVertexPos() Info

Gets the position of a vertex.

Use: pos = GetSectorVertexPos(sector,vertex); returns a vector


NextThingInSector() Info

Gets the next thing in sector. After FirstThingInSector finds something. Also see PrevThingInSector.

Use: Next = NextThingInSector(sector, previous thing ); Thing should be the last thing found or the return value of FirstThingInSector()


PrevThingInSector() Info

Gets the previous thing in sector. After FirstThingInSector finds something. Also see NextThingInSector.

Use: Previous = PrevThingInSector(sector, previous thing ); Thing should be a thing found.or the return value of FirstThingInSector()


SetSectorAdjoins() Control

Turns the rendering of adjoins on or off.

Use: SetSectorAdjoins(sector,Int); 1 = On , 0 = Off


SetSectorColormap() Control

Sets the current color map for the sector. CMP Files

Use: SetsectorColorMap(sector,colormap int);


SetSectorFlags() Control

Sets the specified flags. Sector Flags

Use: SetSectorFlags(sector,flags);


SetSectorLight() Control

Sets the sector extra light.

Use: SetSectorLight(sector,light int,delay int);


SetSectorThrust() Control

Sets the sector Thrust (velocity).

Use: SetSectorThrust(sector,vector,speed int);


SetSectorTint() Control

Set the tint of a sector.

Use: SetSectorTint(sector, rgb); ** rgb is expressed like a vector