Author Topic: Flashlight - Path illumination to the max  (Read 23732 times)


Ha, this seems pretty cool, nice advertising.

I shouted everything in the first post while I read it. :D
Also: I can't download, it keeps saying that it's a MediaPro only feature.
« Last Edit: August 09, 2009, 10:37:21 AM by TheLegomaster »


Bill envy's the nerd now.

I wanted to show a beam of light :(



I was hoping it would shine a light in the direction it was pointing instead of just being like playerlight. :c

I was hoping it would shine a light in the direction it was pointing instead of just being like playerlight. :c
It's not a working flashlight. :c Also keybind now.

But wait.. What that? You think you can hold a flashlight and a minigun at the same time? Boy, you do that and I shall eat my own father! Whenever you try to equip one of those two-hander weapons, you'll quickly slide away your flashlight and resume firin' away that minigun or akimbo guns, you akimbo assasin, you.

...

Eat your father now please.

Code: (Torque) [Select]
%division = "Flashlight";
%name = "Flashlight on/off";
%command = "flashlight_sendCommand";

function flashlight_sendCommand(%click)
{
    if(%click)
commandtoserver('flashlight');

}

for(%i=0;%i<$remapCount;%i++)
{
    if($remapDivision[%i] $= %division)
    {
%foundDiv = 1;
continue;
    }
    if(%foundDiv && $remapDivision[%i] !$= "")
    {
%position = %i;
break;
    }
}

if(!%foundDiv)
{
    error("Division not found: " @ %division);
    return;
}
if(!%position)
{
    $remapName[$remapCount] = %name;
    $remapCmd[$remapCount] = %command;
    $remapCount++;
    return;
}

for(%i=$remapCount;%i>%position;%i--)
{
    $remapDivision[%i] = $remapDivision[%i - 1];
    $remapName[%i] = $remapName[%i - 1];
    $remapCmd[%i] = $remapCmd[%i - 1];
}

$remapDivision[%position] = "";
$remapName[%position] = %name;
$remapCmd[%position] = %command;
$remapCount++;

I THINK this key bind should work.

Amazing, but, you should really make one as a tool.

Shouldn't it only light up the area in front of you?