Hey,
Im "trying" to fix zoeys knockdown addon, but i cant
Do anyone have fixed version of this addon for gmod 13?
link for zoeys addons: [url]http://filesmelt.com/dl/zoeys_addons.zip[/url]
Bye
Nope, actually looked for a bunch of Zoey's old addons for a while, but I could never find it.
[QUOTE=code_gs;42287381]Nope, actually looked for a bunch of Zoey's old addons for a while, but I could never find it.[/QUOTE]
I have most of zoeys addons, and VideahGams guy on youtube fixed this, but he dont respond,
So, can you help me?
It's just something you'd have to convert on your own. Here's some documents outlining the major changes:
[url]https://docs.google.com/document/d/1KJTi7-krLUcJP0ALz8dC5deNdn2-FUcc6WMsRvkYjDw[/url]
[url]https://docs.google.com/document/d/1khSuIYrAMkqXu7wlH5YRJNwz6hOH6Xqi5lqBhE3x6gA[/url]
Other than that, go into the game with the addon in and just see what kind of errors arise in console. From there, it's just fixing the errors.
[QUOTE=code_gs;42287654]It's just something you'd have to convert on your own. Here's some documents outlining the major changes:
[url]https://docs.google.com/document/d/1KJTi7-krLUcJP0ALz8dC5deNdn2-FUcc6WMsRvkYjDw[/url]
[url]https://docs.google.com/document/d/1khSuIYrAMkqXu7wlH5YRJNwz6hOH6Xqi5lqBhE3x6gA[/url]
Other than that, go into the game with the addon in and just see what kind of errors arise in console. From there, it's just fixing the errors.[/QUOTE]
Hey, my Eng. is bad, for what is that first google drive link?
They are links to some of the major lua changes from GM12 to 13.
[QUOTE=code_gs;42289439]They are links to some of the major lua changes from GM12 to 13.[/QUOTE]
still
[ERROR] lua/autorun/server/getup_sv.lua:110: attempt to index local 'attacker' (a nil value)
1. v - lua/autorun/server/getup_sv.lua:110
2. unknown - lua/includes/modules/hook.lua:82
i dont know how to fix it..
Post lines 100-120 of getup_sv.lua
[QUOTE=code_gs;42293870]Post lines 100-120 of getup_sv.lua[/QUOTE]
There you go
[CODE]if ent:IsPlayer() and (attacker:GetClass() == "npc_antlionguard" or (amount >= 50 and (dmginfo:IsFallDamage() or dmginfo:GetDamageType() == DMG_BLAST))) and ent.KnockImmunity and CurTime() >= ent.KnockImmunity then
if ent.Incapped == true then return end
ent:SetPos(ent:GetPos() + Vector(0,0,1))
ent:SetVelocity(Vector(0,0,150))
ent.KnockImmunity = CurTime() + 2
ent.GUReset = CurTime() + 0.75
if ent:GetActiveWeapon():IsValid() then
ent:GetActiveWeapon():SendWeaponAnim(ACT_VM_RELOAD)
end
timer.Simple(0.05,function()
if ent:Alive() then[/CODE]
[editline]24th September 2013[/editline]
[QUOTE=code_gs;42293870]Post lines 100-120 of getup_sv.lua[/QUOTE]
There is full
[CODE]local FUCKOFFWEAPONS = {
"weapon_physgun",
"weapon_physcannon",
"weapon_pistol",
"weapon_crowbar",
"weapon_slam",
"weapon_357",
"weapon_smg1",
"weapon_ar2",
"weapon_crossbow",
"weapon_shotgun",
"weapon_frag",
"weapon_stunstick",
"weapon_rpg",
"gmod_camera",
"gmod_toolgun"}
function GETUP_Spawn(ply)
ply.KnockedDown = false
ply.KnockImmunity = CurTime() + 2
ply.GetUp = false
ply:GetViewModel():SetNoDraw(false)
ply:ConCommand("-duck")
umsg.Start("SpawnedGUPMS",ply)
umsg.End()
end
hook.Add("PlayerSpawn","GETUP_Spawn",GETUP_Spawn)
function GETUP_Death(ply)
ply.KnockedDown = false
ply.GetUp = false
umsg.Start("SpawnedGUPMS",ply)
umsg.End()
end
hook.Add("DoPlayerDeath","GETUP_Death",GETUP_Death)
function GETUP_Ground(ply)
if ply.KnockedDown == true then
ply.KnockedDown = false
ply.GetUpReal = CurTime() + 1.3
umsg.Start("GetUpMS",ply)
umsg.End()
end
end
hook.Add("OnPlayerHitGround","GETUP_Ground",GETUP_Ground)
local FUCKOFFWEAPONS = {
"weapon_physgun",
"weapon_physcannon",
"weapon_pistol",
"weapon_crowbar",
"weapon_slam",
"weapon_357",
"weapon_smg1",
"weapon_ar2",
"weapon_crossbow",
"weapon_shotgun",
"weapon_frag",
"weapon_stunstick",
"weapon_rpg",
"gmod_camera",
"gmod_toolgun"}
KnockDownInstalled = true
function GETUP_Think()
for k,v in pairs (player.GetAll()) do
if v:WaterLevel() >= 1 and v.KnockedDown == true then
v.GUReset = nil
v.KnockedDown = false
v.GetUpReal = CurTime() + 1
umsg.Start("GetUpMS",v)
umsg.End()
end
if v.GetUpReal and CurTime() >= v.GetUpReal then
v:ConCommand("-duck")
if v:GetActiveWeapon():IsValid() then
if table.HasValue(FUCKOFFWEAPONS,v:GetActiveWeapon():GetClass()) then
v:GetActiveWeapon():SendWeaponAnim(ACT_VM_DRAW)
else
v:GetActiveWeapon():Deploy()
end
end
v:GetViewModel():SetNoDraw(false)
v.GetUpReal = nil
v.GetUp = true
end
if v.KnockedDown == true and v.GUReset and CurTime() >= v.GUReset and v:OnGround() then
if v:OnGround() or v:WaterLevel() >= 1 then
v.GUReset = nil
v.KnockedDown = false
v:SetFOV(0,0.3)
v.GetUpReal = CurTime() + 1
umsg.Start("GetUpMS",v)
umsg.End()
end
end
end
end
hook.Add("Think","GETUP_Think",GETUP_Think)
local ShieldDamageSuccess = {
"weapons/fx/rics/ric1.wav",
"weapons/fx/rics/ric2.wav",
"weapons/fx/rics/ric3.wav",
"weapons/fx/rics/ric4.wav",
"weapons/fx/rics/ric5.wav"}
function GETUPTakeDamage(ent, inflictor, attacker, amount, dmginfo)
if ent:IsPlayer() and (attacker:GetClass() == "npc_antlionguard" or (amount >= 50 and (dmginfo:IsFallDamage() or dmginfo:GetDamageType() == DMG_BLAST))) and ent.KnockImmunity and CurTime() >= ent.KnockImmunity then
if ent.Incapped == true then return end
ent:SetPos(ent:GetPos() + Vector(0,0,1))
ent:SetVelocity(Vector(0,0,150))
ent.KnockImmunity = CurTime() + 2
ent.GUReset = CurTime() + 0.75
if ent:GetActiveWeapon():IsValid() then
ent:GetActiveWeapon():SendWeaponAnim(ACT_VM_RELOAD)
end
timer.Simple(0.05,function()
if ent:Alive() then
ent:GetViewModel():SetNoDraw(true)
end
end)
ent.KnockedDown = true
ent:ConCommand("+duck")
umsg.Start("KnockedDownMS",ent)
umsg.End()
end
end
hook.Add("EntityTakeDamage","GETUPTakeDamage2",GETUPTakeDamage)[/CODE]
Sorry, you need to Log In to post a reply to this thread.