Welcome, Guest. Please login or register.
Did you miss your activation email?
September 20, 2024, 02:45:55 AM
Home Help Login Register
News: Zombie Master 2 discussion

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Another "Looking for LUA Coder"
Pages: [1]
Author Topic: Another "Looking for LUA Coder"  (Read 4411 times)
WhoDat
Poster

Posts: 19


« on: August 13, 2011, 07:12:16 PM »

I'm a bit hesitant on even making this thread since almost everyone I looked at the person just got bashed on; but oh well, it's the internet!

Anyway; very short and simple.

I'm looking for someone who can code and make no more than 2-3 weapons for my TTT Server.

Ummm, of course I would be paying you $$$ - No "You'll get Admin" crap.

Please PM me if your interested.

Thanks  :D
k9rosie
Poster

Posts: 27


« Reply #1 on: August 15, 2011, 01:55:11 AM »

UMP45:
if SERVER then

  AddCSLuaFile( "shared.lua" )
end

SWEP.HoldType = "ar2"
 

if CLIENT then

  SWEP.PrintName = "UMP45"
  SWEP.Slot = 2

  SWEP.Icon = "VGUI/ttt/icon_mac"
end


SWEP.Base = "weapon_tttbase"
SWEP.Spawnable = true
SWEP.AdminSpawnable = true

SWEP.Kind = WEAPON_HEAVY

SWEP.Primary.Delay = 0.1
SWEP.Primary.Recoil = 1.2
SWEP.Primary.Automatic = true
SWEP.Primary.Ammo = "smg1"
SWEP.Primary.Damage = 25
SWEP.Primary.Cone = 0.02
SWEP.Primary.ClipSize = 30
SWEP.Primary.ClipMax = 60
SWEP.Primary.DefaultClip = 30
SWEP.AutoSpawnable      = true
SWEP.AmmoEnt = "item_ammo_smg1_ttt"
SWEP.ViewModel = "models/weapons/v_smg_ump45.mdl"
SWEP.WorldModel = "models/weapons/w_smg_ump45.mdl"

SWEP.Primary.Sound = Sound( "Weapon_UMP45.Single" )

SWEP.IronSightsPos = Vector( 7.3, -5.5, 3.2 )
SWEP.IronSightsAng = Vector( -1.5, 0.35, 2 )


AWP (for traitors):

if SERVER then
  AddCSLuaFile( "shared.lua" )
end

SWEP.HoldType          = "ar2"

if CLIENT then
  SWEP.PrintName          = "AWP"

  SWEP.Slot              = 2

  SWEP.Icon = "VGUI/ttt/icon_scout"
end


SWEP.Base              = "weapon_tttbase"
SWEP.Spawnable = true
SWEP.AdminSpawnable = true

SWEP.Kind = WEAPON_EQUIP1
SWEP.WeaponID = AMMO_RIFLE

SWEP.Primary.Delay          = 1.5
SWEP.Primary.Recoil        = 7
SWEP.Primary.Automatic = true
SWEP.Primary.Damage = 100
SWEP.Primary.Cone = 0.005
SWEP.Primary.ClipSize = 1
SWEP.Primary.ClipMax = 1
SWEP.Primary.DefaultClip = 1


SWEP.AutoSpawnable      = false
SWEP.ViewModel          = Model("models/weapons/v_snip_awp.mdl")
SWEP.WorldModel        = Model("models/weapons/w_snip_awp.mdl")

SWEP.Primary.Sound = Sound(")weapons/awp/awp1.wav")

SWEP.Secondary.Sound = Sound("Default.Zoom")

SWEP.IronSightsPos      = Vector( 5, -15, -2 )
SWEP.IronSightsAng      = Vector( 2.6, 1.37, 3.5 )
SWEP.CanBuy = { ROLE_TRAITOR }
SWEP.InLoadoutFor = nil
SWEP.LimitedStock = true
if CLIENT then
  -- Path to the icon material
  SWEP.Icon = "VGUI/ttt/icon_scout"

  -- Text shown in the equip menu
  SWEP.EquipMenuData = {
      type = "Magnum Sniper",
      desc = "One shot, one kill."
  };
end



function SWEP:SetZoom(state)
    if CLIENT then
      return
    else
      if state then
          self.Owner:SetFOV(20, 0.3)
      else
          self.Owner:SetFOV(0, 0.2)
      end
    end
end

-- Add some zoom to ironsights for this gun
function SWEP:SecondaryAttack()
    if not self.IronSightsPos then return end
    if self.Weapon:GetNextSecondaryFire() > CurTime() then return end
   
    bIronsights = not self:GetIronsights()
   
    self:SetIronsights( bIronsights )
   
    if SERVER then
        self:SetZoom(bIronsights)
    else
        self:EmitSound(self.Secondary.Sound)
    end
   
    self.Weapon:SetNextSecondaryFire( CurTime() + 0.3)
end

function SWEP:PreDrop()
    self:SetZoom(false)
    self:SetIronsights(false)
    return self.BaseClass.PreDrop(self)
end

function SWEP:Reload()
    self.Weapon:DefaultReload( ACT_VM_RELOAD );
    self:SetIronsights( false )
    self:SetZoom(false)
end


function SWEP:Holster()
    self:SetIronsights(false)
    self:SetZoom(false)
    return true
end

if CLIENT then
  local scope = surface.GetTextureID("sprites/scope")
  function SWEP:DrawHUD()
      if self:GetIronsights() then
        surface.SetDrawColor( 0, 0, 0, 255 )
       
        local x = ScrW() / 2.0
        local y = ScrH() / 2.0
        local scope_size = ScrH()

        -- crosshair
        local gap = 80
        local length = scope_size
        surface.DrawLine( x - length, y, x - gap, y )
        surface.DrawLine( x + length, y, x + gap, y )
        surface.DrawLine( x, y - length, x, y - gap )
        surface.DrawLine( x, y + length, x, y + gap )

        gap = 0
        length = 50
        surface.DrawLine( x - length, y, x - gap, y )
        surface.DrawLine( x + length, y, x + gap, y )
        surface.DrawLine( x, y - length, x, y - gap )
        surface.DrawLine( x, y + length, x, y + gap )


        -- cover edges
        local sh = scope_size / 2
        local w = (x - sh) + 2
        surface.DrawRect(0, 0, w, scope_size)
        surface.DrawRect(x + sh - 2, 0, w, scope_size)

        surface.SetDrawColor(255, 0, 0, 255)
        surface.DrawLine(x, y, x + 1, y + 1)

        -- scope
        surface.SetTexture(scope)
        surface.SetDrawColor(255, 255, 255, 255)

        surface.DrawTexturedRectRotated(x, y, scope_size, scope_size, 0)

      else
        return self.BaseClass.DrawHUD(self)
      end
  end

  function SWEP:AdjustMouseSensitivity()
      return (self:GetIronsights() and 0.2) or nil
  end
end


Where's my money, bitch?
BipolarDiZ
Poster

Posts: 101


|:NxS:| Staff! :D


« Reply #2 on: August 15, 2011, 03:33:10 AM »

Hey, I wouldn't mind helping you but truthfully I think its best you learn for yourself. It isn't that hard and what not. If you wanted to add me on steam we could talk more about it. Add bipolardiz.

Just so you know I don't want to code for you but I wouldn't mind helping you learn and get your own code man. Just saying.

BipolarDiZ is bipolar.
|:NxS:| Custom TTT Server: source.nxs-gaming.com:27015
|:NxS:| Vanilla TTT Server: source.nxs-gaming.com:27016
|:NxS:| Fretta: currently offline
WhoDat
Poster

Posts: 19


« Reply #3 on: August 15, 2011, 08:16:39 PM »

@k9rosie - No -.-

@BipolarDiZ - I have sent you a PM.
Willdy
Poster

Posts: 57


« Reply #4 on: August 17, 2011, 11:52:13 PM »

Hey, I wouldn't mind helping you but truthfully I think its best you learn for yourself. It isn't that hard and what not. If you wanted to add me on steam we could talk more about it. Add bipolardiz.

Just so you know I don't want to code for you but I wouldn't mind helping you learn and get your own code man. Just saying.

To the OP: I support this, might be good if u started by editing the current guns. Start with CSS weapons.
WhoDat
Poster

Posts: 19


« Reply #5 on: August 23, 2011, 04:10:54 AM »

Just wanted to bump this saying that I am still looking for a coder to do some weapons; 4 to be exact.

If interested; PM me.
Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Another "Looking for LUA Coder" « previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Page created in 0.01 seconds with 18 queries.