Discord
Steam
/
General
/
Cant change th..
Login/Join
Event Log
Cant change the view model location.
0 replies, posted
Search
In This Thread
Hi, I've been working on a small Project and I can't seem to do a one simple thing. I can't change the view model Position and Angle. the code. AddCSLuaFile() SWEP.Base = "weapon_base" SWEP.PrintName = "Doom Pistol" SWEP.Author = "Noah Cline" SWEP.Spawnable = false SWEP.AdminSpawnable = false SWEP.ViewModelFlip = false SWEP.HoldType = "pistol" SWEP.ViewModel = "models/weapons/v_pistol.mdl" SWEP.WorldModel = "models/weapons/w_pistol.mdl" SWEP.Primary.Recoil = 0 SWEP.Primary.Damage = 10 SWEP.Primary.NumShots = 1 SWEP.Primary.Spread = 0 SWEP.Primary.Cone = 0 SWEP.Primary.ClipSize = 100 SWEP.Primary.DefaultClip = 100 SWEP.Primary.Ammo = "pistol" SWEP.Primary.Automatic = false SWEP.Primary.Delay = 0.2 SWEP.ShowViewModel = true SWEP.ShowWorldModel = true SWEP.Secondary.Clipsize = -1 SWEP.Secondary.DefaultClip = -1 SWEP.Secondary.Automatic = false SWEP.Secondary.Ammo = "none" function SWEP:Initialize() self:SetWeaponHoldType( self.HoldType ) end function SWEP:PrimaryAttack() if ( not self:CanPrimaryAttack() ) then return end local Bullet = {} Bullet.Num = self.Primary.NumShots Bullet.Src = self.Owner:GetShootPos() Bullet.Dir = self.Owner:GetAimVector() Bullet.Spread = Vector( self.Primary.Spread, self.Primary.Spread, 0 ) Bullet.Tracer = 0 Bullet.Damage = self.Primary.Damage Bullet.AmmoType = self.Primary.Ammo self:ShootEffects() self:FireBullets( Bullet ) self:EmitSound( "" ) self:TakePrimaryAmmo( 1 ) self:GetNextPrimaryFire( CurTime() + self.Primary.Delay) end I'm trying to make the gun be in the lower center of your screen (Like playing Doom). Any help?
Sorry, you need to
Log In
to post a reply to this thread.