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

Function aRoomChangeFog

scripts/DallasFuncs.cpp:3192–3203  ·  view source on GitHub ↗

$$ACTION Rooms Change fog in room [r:Room] to color = [f:Red=0.5],[f:Green=0.5],[f:Blue=0.5], delpth = [f:Depth=200.0] over [f:Time=20.0] seconds aRoomChangeFog Change room fog Changes the fog in a room over time Parameters: Room: the room to set R,G,B: the new fog color (0-1) Depth: how deep the fog should be after the change (starts from the current fog depth) Time: how long in seconds

Source from the content-addressed store, hash-verified

3190$$END
3191*/
3192void aRoomChangeFog(int roomnum, float r, float g, float b, float depth, float time) {
3193 msafe_struct mstruct;
3194
3195 mstruct.roomnum = roomnum;
3196 mstruct.fog_depth = depth;
3197 mstruct.fog_r = r;
3198 mstruct.fog_g = g;
3199 mstruct.fog_b = b;
3200 mstruct.interval = time;
3201
3202 MSafe_CallFunction(MSAFE_ROOM_CHANGING_FOG, &mstruct);
3203}
3204
3205/*
3206$$ACTION

Callers 15

cChangeFogRegionFunction · 0.85
StartHealingMethod · 0.85
StopHealingMethod · 0.85
SetModeMethod · 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