You are not logged in.    Login    New User    Forum Home    Search

Location:
JBPLAY  \  Meteor 2  \  Suggestions  \  Light Scripts

Back to Threads

Viewing Thread: Light Scripts

 

arezey

Joined: 16 June 2005
Posts: 1599
22 January 2006 11:36 (UK time)

Could James implent a few scripts for map lights? I guess they shouldn't be a such a big problem.

I would suggest these:

<hr>

<b>void SC_AddLight(int LightXPos, int LightYpos, int BlinkType, int ColourR, int ColourG, int ColourB, int Angle int RotationSpeed);</b>

Adds a new map light.
Light X-Ypos are the coordinates
BlinkType is the blink type
Colour R, ColourG and ColourB are RGB colour values
Angle is the light angle
RotationSpeed is the possible rotation speed

<hr>

<b>int SC_GetLightColour(int LightId, int RGBType);</b>

Returns a RGB value. RGBType is the colour type what can be either R, G or B.

<hr>

<b>void SC_SetLightColour(int LightId, int RGBType, int ColourValue);</b>

Sets a light's RGB value. RGBType is the colour type what can be either R, G or B. ColourValue is the value of the colour.

<hr>

<b>void SC_SetLightBlinkType(int LightId, int BlinkType);</b>
Sets a light's blink type

<hr>

<b>int SC_GetLightBlinkType(int LightId);</b>
Gets a light's blink type

<hr>

<b>SC_SetLightHidden(int LightId, int Hidden);</b>
Set's a light's hidden value

<hr>

<b>SC_GetLightHidden(int LightId);</b>
Gets a light's hidden value.

<hr>

<b>SC_SetLightAngle(int LightId, int Angle);</b>
Sets a light's possible angle

<hr>

<b>SC_GetLightAngle(int LightId);</b>
Gets a light's angle

<hr>

<b>SC_SetLightRotationSpeed(int LightId, int RotationSpeed);</b>
Sets a light's rotation speed. 0 for none

<hr>

<b>SC_GetLightRotationSpeed(int LightId);</b>
Gets a light's rotation speed.

Edited: 22 January 2006 11:46


You need to login to create posts in this thread.

40oz
 Official Sponsor

Joined: 03 January 2004
Posts: 1799
23 January 2006 00:21 (UK time)

That should come in handy, lighting always is a key part of making a well-done game/mod.

I'm also hoping for frame lighting in the sprite editor, rather than the sprite itself.


*Papercut
Pro-Murder.
Legalize Crime.


You need to login to create posts in this thread.



Forums system (C) 1999-2023 by James Bunting.

Terms of Use