Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2024, 01:29:22 AM
Home Help Login Register
News: Trouble in Terrorist Town? Site here, forum here.

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Weapon script error?
Pages: [1]
Author Topic: Weapon script error?  (Read 2936 times)
nrich588
Poster

Posts: 253

WzG Owner


« on: August 16, 2011, 03:36:52 AM »

if SERVER then

  AddCSLuaFile( "shared.lua" )
 
end

SWEP.HoldType = "ar2"

if CLIENT then

SWEP.PrintName = "FAMAS"
SWEP.Author = "Evil"
SWEP.Slot = 6
SWEP.SlotPos = 1
SWEP.EquipMenuData = {
  type = "Weapon",
  desc = "Semi-automatic. 9MM ammo."
};   
end


  SWEP.ViewModelFlip = false

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

SWEP.Kind = WEAPON_EQUIP
SWEP.AmmoEnt = "item_ammo_pistol_ttt"
SWEP.Icon = "vgui/ttt/icon_famas"
SWEP.CanBuy = { ROLE_DETECTIVE }
SWEP.NoSights = true

if SERVER then
  resource.AddFile("VGUI/ttt/icon_famas.vmt")
end

SWEP.Primary.Delay          = 0.14
SWEP.Primary.Recoil        = 0.5
SWEP.Primary.Automatic = false
SWEP.Primary.Ammo = "pistol"
SWEP.Primary.Damage = 23
SWEP.Primary.Cone = 0.025
SWEP.Primary.ClipSize = 10
SWEP.Primary.ClipMax = 30-- keep mirrored to ammo
SWEP.Primary.DefaultClip = 20
SWEP.AutoSpawnable      = true
SWEP.ViewModel          = "models/weapons/v_rif_famas.mdl"
SWEP.WorldModel        = "models/weapons/w_rif_famas.mdl"

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


Could anyone be of assistance on this code? I'm not sure why but it does not work.
Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Weapon script error? « 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.009 seconds with 17 queries.