Skip to content

Commit

Permalink
main water gun localization
Browse files Browse the repository at this point in the history
  • Loading branch information
meetric1 committed Jan 11, 2025
1 parent cd09e13 commit 2ae7405
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lua/weapons/weapon_gw2_watergun.lua
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ end
function SWEP:PostDrawViewModel(vm, weapon, ply)
if !gwater2 then
cam.Start2D()
local a = 255 * (math.sin(CurTime() * 2) + 1) / 2
draw.DrawText("Failed to load GWater2!", "Trebuchet24", ScrW() / 2, ScrH() / 2 - 36, Color(255, 50, 50, a), TEXT_ALIGN_CENTER)
local a = 255*(math.sin(CurTime()*2)+1)/2
draw.DrawText(language.GetPhrase("gwater2.gun.adv.notloaded"), "Trebuchet24", ScrW() / 2 + 1, ScrH() / 2 - 36 + 1, Color(0, 0, 0, a), TEXT_ALIGN_CENTER)
draw.DrawText(language.GetPhrase("gwater2.gun.adv.notloaded"), "Trebuchet24", ScrW() / 2, ScrH() / 2 - 36, Color(255, 0, 0, a), TEXT_ALIGN_CENTER)
cam.End2D()

return
Expand Down

0 comments on commit 2ae7405

Please sign in to comment.