----------------------------------------------------------------------------
//GUI\\
SWEP.WepSelectIcon = Material( "flags/cn_16.png" ) //拨到12345栏的图片
SWEP.Slot= 2 //在12345栏的栏位
----------------------------------------------------------------------------
//Coding 下面如果你会你就填,不会别瞎填\\
function SWEP:Initialize()
end
function SWEP:DrawWeaponSelection( x, y, wide, tall, alpha )
surface.SetDrawColor( 255, 255, 255, alpha )
surface.SetMaterial( self.WepSelectIcon )
surface.DrawTexturedRect( x + 64, y, 128, 128 )
end
function SWEP:PrimaryAttack()
if ( !self:CanPrimaryAttack() ) then return end
local bullet = {}-- Set up the shot
bullet.Num = self.Primary.NumShots
bullet.Src = self.Owner:GetShootPos()
bullet.Dir = self.Owner:GetAimVector()
bullet.Spread = Vector( self.Primary.Cone / 90, self.Primary.Cone / 90, 0 )
bullet.Tracer = self.Primary.Tracer
bullet.Force = self.Primary.Force
bullet.Damage = self.Primary.Damage
[为游戏媒体贡献点力量呗]
赞赏还没有赞赏,快来当第一个赞赏的人吧!
格林先生
《向僵尸开炮》全部关卡通关攻略 手把手保姆级攻略超详细
格林先生
《行侠仗义五千年》新手入门保姆级详细攻略来了
格林先生
《名将》中国玩家再次刷新世界速通纪录,全程精彩无限帅到爆炸视频攻略
格林先生
《星空 Starfield》哨所建设干货小知识分享星空游戏攻略
格林先生
《永劫无间》 三排思路教学攻略 转火拆火 实战演示