MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / aRoomSetFog

Function aRoomSetFog

scripts/DallasFuncs.cpp:3167–3177  ·  view source on GitHub ↗

$$ACTION Rooms Set fog in room [r:Room] to color = [f:Red=0.5],[f:Green=0.5],[f:Blue=0.5], depth = [f:Depth=300.0] aRoomSetFog Set room fog Sets the fog color and depth for a room Parameters: Room: the room to set R,G,B: the fog color (0-1) Depth: how deep the fog should be $$END */

Source from the content-addressed store, hash-verified

3165$$END
3166*/
3167void aRoomSetFog(int roomnum, float r, float g, float b, float depth) {
3168 msafe_struct mstruct;
3169
3170 mstruct.roomnum = roomnum;
3171 mstruct.fog_depth = depth;
3172 mstruct.fog_r = r;
3173 mstruct.fog_g = g;
3174 mstruct.fog_b = b;
3175
3176 MSafe_CallFunction(MSAFE_ROOM_FOG, &mstruct);
3177}
3178
3179/*
3180$$ACTION

Callers 13

cFogRegionFunction · 0.85
CallEventMethod · 0.85
DoInitMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected