Jump to content

Shirk

Members
  • Posts

    63
  • Joined

  • Last visited

Posts posted by Shirk

  1. I havent dealt much with lua before, so Im trying to learn a bit of it by picking apart the code from the given files. There is no HUD or anything that comes with the example fpsweapon.lua so I decided I wanted to try and make one.

     

    Ive added the following function to fpsweapon.lua, but it doesn't seem to work at all.

     

    function Script:Loop()
    self.context:SetBlendMode(Blend.Alpha)
    self.context:SetColor(1,1,1,1)
    self.context:DrawText("Ammo ",92,92)
    return true
    end
    

  2. Id still prefer having an option for lightmapping as I find it looks better majority of the time, and it can also calculate radiosity which deferred lighting cant (Not in leadwerks atleast) I also cant seem to change the ambient brightness.

    • Upvote 1
×
×
  • Create New...