Tamiel

Members
  • Content count

    11
  • Joined

  • Last visited

  • Days Won

    1

Tamiel last won the day on July 26 2016

Tamiel had the most liked content!

About Tamiel

  • Rank
    Member

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

198 profile views
  1. Place the files from the zip file in reflexfps\base\internal\ui wherever you installed the game. If the internal and ui folders don't exist you should create them
  2. Done
  3. Updated the download to include -Added Host name search -Added Max ping filter -Added Max Players filter -Stopped number spam in console
  4. A couple of improvements to the server browser Filtering by game mode Sorting in both directions Doesn't work in pak form for some reason so you need to un-zip the file and place tamMenu.lua and the icons folder directly in base\internal\ui I may add more to this in the future Update 26/07/2016 No.2 -Added password protected filter Update 26/07/2016 -Added Host name search -Added Max ping filter -Added Max Players filter -Stopped number spam in console Download link Screenshot as of 26/07/2016
  5. What the title says ^ http://i.imgur.com/CpPiBp9.jpg
  6. Really fun map to play. Shame everyone else in the server was better than me
  7. I quit a game while in editor mode and then i could see all dev textures in the map that the menu replay was playing
  8. Ignore the strange highlighting, it won't let me edit it out
  9. Ive made a simple change to the cross hair script so it changes between green and red depending on if you can fire or not It currently just stays red if you hold down attack and the times are just cpm reload times taken from google. Also because the crosshair script is not mentioned in the cfg's at you have to over write the default script but all of the additions are commented in the file and tabbed a few times for visibility Video of it in action http://webmup.com/3ad86/vid.webm require "base/internal/ui/reflexcore" Crosshairs = { canHide = false, canPosition = false }; registerWidget("Crosshairs"); -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- --Extra variables local reloadTime = 0; local startTime = 0; local canFire = true; local timeElapsed; local firstRun = true; weaponReloadTimes = {.9, .5, .95, .8, .1, 0.8, .1, 1.25, 1.25} --Weapon reload times function Crosshairs:draw() --Required for timing if firstRun then timeElapsed = deltaTimeRaw; firstRun = false; end -- menu => no crosshair if isInMenu() then return end; -- no player => no crosshair local player = getPlayer(); if player == nil then return end; -- editor => no crosshair if player.state == PLAYER_STATE_EDITOR then return; end -- spectator => no crosshair if player.state == PLAYER_STATE_SPECTATOR then return; end -- dead => no crosshair if player.health <= 0 then return; end -- Options local colorFillByHealth = false; local colorStrokeByHealth = false; -- Sizes local crosshairSize = 16; local crosshairWeight = 3; local crosshairStrokeWeight = 3; -- Colors local crosshairFillColor = Color(255,255,255,255); local crosshairStrokeColor = Color(0,0,0,255); if colorFillByHealth then if player.health > 100 then crosshairFillColor = Color(16,116,217, barAlpha) end if player.health <= 100 then crosshairFillColor = Color(2,167,46, barAlpha) end if player.health <= 80 then crosshairFillColor = Color(255,176,14, barAlpha) end if player.health <= 30 then crosshairFillColor = Color(236,0,0, barAlpha) end end if colorStrokeByHealth then if player.health > 100 then crosshairStrokeColor = Color(16,116,217, barAlpha) end if player.health <= 100 then crosshairStrokeColor = Color(2,167,46, barAlpha) end if player.health <= 80 then crosshairStrokeColor = Color(255,176,14, barAlpha) end if player.health <= 30 then crosshairStrokeColor = Color(236,0,0, barAlpha) end end --Actual functionality if player.buttons.attack and canFire then canFire = false; reloadTime = weaponReloadTimes[player.weaponIndexSelected]; startTime = timeElapsed; end if canFire then crosshairFillColor = Color(0,255,0,255) --Colour when gun can fire end if canFire == false then crosshairFillColor = Color(255,0,0,255) --Colour when gun cant fire if (startTime + reloadTime) - (timeElapsed) < 0 then canFire = true end end timeElapsed = timeElapsed + deltaTimeRaw; -- Helpers local crosshairHalfSize = crosshairSize / 2; local crosshairHalfWeight = crosshairWeight / 2; -- Crosshair 1 if consoleGetVariable("cl_crosshair") == 1 then nvgBeginPath(); nvgRect(-crosshairHalfSize, -crosshairHalfWeight, crosshairSize, crosshairWeight) -- horizontal nvgRect(-crosshairHalfWeight, -crosshairHalfSize, crosshairWeight, crosshairSize) -- vertical nvgStrokeColor(crosshairStrokeColor); nvgStrokeWidth(crosshairStrokeWeight); nvgStroke(); nvgFillColor(crosshairFillColor); nvgFill(); end -- Crosshair 2 if consoleGetVariable("cl_crosshair") == 2 then local innerSpace = 0.65; nvgBeginPath(); nvgRect(-crosshairHalfSize, -crosshairHalfWeight, crosshairHalfSize * innerSpace, crosshairWeight) -- left nvgRect(-crosshairHalfWeight, -crosshairHalfSize, crosshairWeight, crosshairHalfSize * innerSpace) -- top nvgRect(crosshairHalfSize, crosshairHalfWeight, -crosshairHalfSize * innerSpace, -crosshairWeight) -- right nvgRect(crosshairHalfWeight, crosshairHalfSize, -crosshairWeight, -crosshairHalfSize * innerSpace) -- bottom nvgStrokeColor(crosshairStrokeColor); nvgStrokeWidth(crosshairStrokeWeight); nvgStroke(); nvgFillColor(crosshairFillColor); nvgFill(); end -- Crosshair 3 if consoleGetVariable("cl_crosshair") == 3 then local innerSpace = 0.65; nvgBeginPath(); nvgRect(-crosshairHalfSize, -crosshairHalfWeight, crosshairHalfSize * innerSpace, crosshairWeight) -- left nvgRect(-crosshairHalfWeight, -crosshairHalfSize, crosshairWeight, crosshairHalfSize * innerSpace) -- top nvgRect(crosshairHalfSize, crosshairHalfWeight, -crosshairHalfSize * innerSpace, -crosshairWeight) -- right nvgRect(crosshairHalfWeight, crosshairHalfSize, -crosshairWeight, -crosshairHalfSize * innerSpace) -- bottom nvgRect(-crosshairHalfWeight, -crosshairHalfWeight, crosshairWeight, crosshairWeight) -- dot nvgStrokeColor(crosshairStrokeColor); nvgStrokeWidth(crosshairStrokeWeight); nvgStroke(); nvgFillColor(crosshairFillColor); nvgFill(); end -- Crosshair 4 if consoleGetVariable("cl_crosshair") == 4 then nvgBeginPath(); nvgCircle(0, 0, crosshairSize / 8) nvgStrokeColor(crosshairStrokeColor); nvgStrokeWidth(crosshairStrokeWeight); nvgStroke(); nvgFillColor(crosshairFillColor); nvgFill(); end -- Crosshair 4 if consoleGetVariable("cl_crosshair") == 5 then nvgBeginPath(); nvgCircle(0, 0, crosshairSize / 4) nvgStrokeColor(crosshairFillColor); nvgStrokeWidth(crosshairStrokeWeight / 2); nvgStroke(); end end Edit:Fixed formatting error Edit2: Added link to video