SASA 扩展NewOpcodes
特效 Fx
查看 Markdown阴影光 corona 太阳 天气 音量 分辨率
sa · 扩展 NewOpcodes · 需 CLEO + NewOpcodes
阴影、光、日晕、太阳、天气、音量、分辨率。写法见 Lua / Redux。
画一帧临时阴影:位置、尺寸、旋转、贴图、强度、颜色。
0D50 DRAW_TEMPORARY_SHADOW
in: type, x, y, z, width, height, rotation, distance, texture, intensity, red, blue, green, shadowData画持久阴影;最后一参 time 为持续时间(ms)。
0D51 DRAW_PERMANENT_SHADOW
in: type, x, y, z, width, height, rotation, distance, texture, intensity, red, green, blue, time画临时点光:类型、位置、方向、半径、RGB。
0D52 DRAW_TEMPORARY_LIGHT
in: type, x, y, z, dirX, dirY, dirZ, radius, red, blue, green, affectEntity画临时光晕(corona):贴图、RGBA、位置、尺寸。
0D53 DRAW_TEMPORARY_CORONA
in: texture, red, blue, green, alpha, entity, x, y, z, sizecorona 扩展版:远近裁剪、flare、反射、淡入淡出等。
0D54 DRAW_TEMPORARY_CORONA_EX
in: texture, red, green, blue, alpha, entity, x, y, z, size,
farClip, nearClip, flare, enableReflection, checkObstacles,
flashWhileFading, fadeSpeed, onlyFromBelow取太阳核心 RGB 与光晕 RGB。
0D55 GET_SUN_COLORS
out: coreRed, coreBlue, coreGreen, glowRed, glowBlue, glowGreen取太阳在屏幕上的 2D 坐标。
0D56 GET_SUN_SCREEN_COORS
out: x, y取太阳世界坐标;在地平线以下返回失败。用在 if 里。
0D57 GET_SUN_WORLD_COORS
out: x, y, z取太阳核心尺寸与光晕尺寸。
0D58 GET_SUN_SIZE
out: core, glow取当前天气类型(CWeather::OldWeatherType)。
0D59 GET_CURRENT_WEATHER
out: currentWeather取南北 / 东西向当前红绿灯色。
0D5A GET_TRAFFICLIGHTS_CURRENT_COLOR
out: ns, we从起点到终点画聚光锥,可带阴影参数。
0D5B DRAW_SPOTLIGHT
in: fromX, fromY, fromZ, toX, toY, toZ, baseRadius, targetRadius, enableShadow, shadowIntensity, flag1, flag2取 SFX / 电台音量(按 ParamTypes 返回 int 或 float 语义)。
0D72 GET_GAME_VOLUME
in: type
out: sfxVolume, radioVolume取屏幕宽高。
0D73 GET_SCREEN_WIDTH_AND_HEIGHT
in: type
out: width, height
评论