Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2024, 07:05:11 AM
Home Help Login Register
News: Zombie Master 2 discussion

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Lua Problems?
Pages: [1]
Author Topic: Lua Problems?  (Read 3336 times)
nrich588
Poster

Posts: 253

WzG Owner


« on: May 21, 2011, 06:05:37 PM »

SWEP.Base				= "weapon_tttbase"

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

if CLIENT then
SWEP.PrintName = "Sig Sauer 552"
SWEP.Slot = 2
SWEP.Icon = "VGUI/ttt/icon_sg552"
end

SWEP.AutoSpawnable = true

SWEP.Primary.Ammo = "Pistol"
SWEP.AmmoEnt = "item_ammo_pistol_ttt"

SWEP.Damage = {}
SWEP.Damage['head'] = {131 , 091}
SWEP.Damage['chest & arm'] = {032 , 022}
SWEP.Damage['stomach'] = {041 , 028}
SWEP.Damage['leg'] = {024 , 024}

SWEP.Primary.Delay = ( 60 / ( 634 - 60 ) )
SWEP.Primary.Recoil = ( 032 )  / 20
SWEP.Primary.Automatic = true
SWEP.Primary.Damage = 024
SWEP.Primary.Cone = ( ( 032 ) / 15 ) / 180
SWEP.Primary.ClipSize = 30
SWEP.Primary.ClipMax = 30 * 3
SWEP.Primary.DefaultClip = 30
SWEP.Primary.Zoom = 35
SWEP.Primary.ZoomTime = 35 / 75
SWEP.Scoped = false
SWEP.Scoped = true
SWEP.ViewModelFlip = true
SWEP.ViewModel = "models/weapons/v_rif_sg552.mdl"
SWEP.WorldModel = "models/weapons/w_rif_sg552.mdl"

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

SWEP.IronSightsPos = Vector( 0 , 0 , 0 )
SWEP.IronSightsAng = Vector( 0 , 0 , 0 )
SWEP.IronSightsLow = Vector( 0 , 0 , 0 )




My code doesnt seem to work :[
Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Lua Problems? « 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.008 seconds with 17 queries.