Can there be made a Thermal Vision script ?
Can the script be similar like the night vision, but can I view the AI enemies in white (yellow or red) color ?
I think this could be a "challenge" for most of lua scriptwriters...
Later edit: I made some (as example), but this is not what I need
--NOTE: this script is for omegacore used keys !
--If you want to use the g_InKey , activate here on "local":
--local input = "t" --and change: ocGetKey("t") == 0/1, with: g_InKey == "t"
local timerStarted = {}
local thermal_on = {}
local time1 = 0
local time2 = g_Time
local imagenumber = 0
local pressed = 0
local thermal_on = 0
local image = 0
local darkness = 98
--change to however many different images you have
local max_images = 4
local delay = 0.01
function thermal_trigger_init(e)
LoadImages("thermal")
SetImagePosition(0,0)
SetImageAlignment(1)
end
function thermal_trigger_main(e)
if ocGetKey("t") == 0 then
--Prompt("Press T to use Thermal Vision")
pressed = 0
end
if ocGetKey("t") == 1 then
Prompt("Thermal Vision activated")
--SetLighting(10)
SetFogNearest(1)
SetFogDistance(5)
SetFogRed(8)
SetFogGreen(78)
SetFogBlue(78)
SetAmbienceIntensity(1)
SetAmbienceRed(1)
SetAmbienceGreen(5)
SetAmbienceBlue(5)
SetSurfaceRed(5)
SetSurfaceGreen(55)
SetSurfaceBlue(55)
--LoopSound(e,0)
--SetSoundVolume(120)
if time1 == 0 then
time1 = g_Time
end
time2 = g_Time
timepassed = (time2 - time1) / 1000
if timepassed >= delay then
SetImagePosition(0,0)
ShowImage(imagenumber)
time1 = 0
if imagenumber < max_images - 1 then
imagenumber = imagenumber + 1
else
imagenumber = 0
end
else
if ocGetKey("t") == 1 then
Prompt("Thermal Vision OFF")
thermal_on = 0
HideImage(0)
StopSound(e,0)
pressed = 1
SetFogNearest(500)
SetFogDistance(5000)
SetFogRed(140)
SetFogGreen(158)
SetFogBlue(173)
SetAmbienceIntensity(65)
SetAmbienceRed(255)
SetAmbienceGreen(255)
SetAmbienceBlue(255)
SetSurfaceRed(255)
SetSurfaceGreen(255)
SetSurfaceBlue(255)
ActivateIfUsed(e)
end
end
if ocGetKey("t") == 0 then
pressed = 0
end
end
end
Smile today, tomorrow could be worse
http://bestradiolarry.ro/fps/
"The best forum, game software, operating system or web platform, it's that software which can give you most of the features and speed, not just amazing graphics."