My first issue is that I can't create a fake-bullet without it creating a decal, even though I set the number of bullets to 0.
[lua]
bullet = {}
bullet.Num = 0
bullet.Force = 0
bullet.Damage = 0
bullet.Spread = Vector(0, 0, 0)
bullet.Src = self.Owner:GetShootPos()
bullet.Dir = self.Owner:GetAimVector()
[/lua]
I know I could change the Src and Dir so that the decal would be placed elsewhere, though I'd rather do it another way if I can.
My second issue is that when I look at myself through a camera ( Not sure if its because I'm using a camera or not ) my hands appear to be holding an invisible pistol even though I've set the hold type to "melee", however in 1st person I can see the animation and hold type just fine, what do I need to do to fix this?
[lua]
self.Weapon:SendWeaponAnim(ACT_VM_HITCENTER)
self.Owner:SetAnimation( PLAYER_ATTACK1 )
self:SetWeaponHoldType("melee")
[/lua]
Any thoughts..?
im not very good with lua so...
[lua]
SWEP.dontcreatedecal = true
SWEP.workplease
[/lua] :buddy:
It looks like this is for a melee SWEP. Don't use FireBullets. Use one of the following:
[b][url=http://wiki.garrysmod.com/?title=Util.TraceHull]Util.TraceHull [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
[b][url=http://wiki.garrysmod.com/?title=Player.TraceHullAttack]Player.TraceHullAttack [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
[b][url=http://wiki.garrysmod.com/?title=Trace]Trace from ShootPos [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
[quote=mrtwicks;26525300]im not very good with lua so...
[lua]
swep.dontcreatedecal = true
swep.workplease
[/lua] :buddy:[/quote]
lol
Sorry, you need to Log In to post a reply to this thread.