Garry's Mod

Garry's Mod

92 个评价
SCP - 682 SWEP
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 武器
插件标签: 快乐, 角色扮演
文件大小
发表于
更新日期
100.431 KB
2017 年 5 月 9 日 上午 10:32
2017 年 5 月 11 日 上午 9:57
3 项改动说明 ( 查看 )

订阅以下载
SCP - 682 SWEP

描述
Description
63 条留言
Wekyc  [作者] 2 月 7 日 上午 11:53 
i have no idea tbh, it could be releated to legacy code and some garrys updates
Alex 2 月 7 日 上午 11:43 
[ERROR] lua/weapons/scp-682.lua:94: attempt to compare number with nil
1. unknown - lua/weapons/scp-682.lua:94
Wekyc  [作者] 2 月 7 日 上午 11:38 
im kinda clueless
Wekyc  [作者] 2 月 7 日 上午 11:37 
hmm i think that SWEP has to be somehow initialized but i don't remember how

this is rest of my code https://pastebin.com/HpF3h5ck

thh i have no idea wthat could be a problem
Alex 2 月 7 日 上午 11:21 
all my code ?
Wekyc  [作者] 2 月 7 日 上午 11:18 
ye, but entire weapon code
Wekyc  [作者] 2 月 7 日 上午 11:15 
could you show me an entire code?
Alex 2 月 7 日 上午 10:51 
[ERROR] lua/weapons/scp-682.lua:94: attempt to index global 'SWEP' (a nil value)
1. unknown - lua/weapons/scp-682.lua:94
Wekyc  [作者] 2 月 7 日 上午 10:44 
https://pastebin.com/wjVDEVQR pasetbin for better format
Wekyc  [作者] 2 月 7 日 上午 10:43 
SWEP.NextAttackW = 30
SWEP.AttackDelay2 = 45
function SWEP:SecondaryAttack()
if self.NextAttackW > CurTime() then
if SERVER then
self.Owner:PrintMessage(3, "Ability 'burst' is still on cooldown!")
return
end
end
self.NextAttackW = CurTime() + self.AttackDelay2
local ply = self.Owner

ply:SetWalkSpeed(300)
ply:SetRunSpeed(300)
ply:SetMaxSpeed(300)
ply:SetJumpPower(300)
local function RemoveBuff()
ply:SetWalkSpeed(115)
ply:SetRunSpeed(115)
ply:SetMaxSpeed(115)
ply:SetJumpPower(200)
end
timer.Create("SCP_PLAYER_WILL_LOSE_BUFF", 5, 1, RemoveBuff)
end

This should work