Is there any addons which will let me freeze players with a physgun and without using ulx?
You could try to spawn a ragdoll and pretend it's a player
I'm using EvolveMod to physgun a player, you just need to modify it a bit to freeze/unfreeze player by grabbing/ungrabbing him.
Do you already have an addon/mod/plugin to grab players ?
you might be able to use the OnPhysgunFreeze hook, cheek of if it is a player and set the move type to movetype_none
Maybe im alittle late on this but if you need this still (ULX Only)
[QUOTE]function FGod( ply, dmginfo )
if(ply:GetNetworkedVar("FGod") == 1) then
dmginfo:ScaleDamage( 0 )
end
end
hook.Add("EntityTakeDamage", "FGod", FGod)
hook.Add("PhysgunDrop", "ply_physgunfreeze", function(pl, ent)
hook.Remove( "PhysgunDrop", "ulxPlayerDrop" ) --This hook from ULX seems to break this script that's why we are removing it here.
ent._physgunned = false
if( ent:IsPlayer() ) then
-- predicted?
ent:SetMoveType(pl:KeyDown(IN_ATTACK2) and MOVETYPE_NOCLIP or MOVETYPE_WALK)
if(pl:KeyDown(IN_ATTACK2)) then
ent:Freeze(true)
ent:SetNetworkedVar("FGod", 1)
else
ent:Freeze(false)
ent:SetNetworkedVar("FGod", 0)
end
if SERVER then
-- NO UUUU FKR
if !ent:Alive() then
ent:Spawn()
self:PlayerSpawn(ent)
ent:SetPos(pl:GetEyeTrace().HitPos)
end
end
return --self.BaseClass:PhysgunDrop( pl , ent )
end
end)
hook.Add( "PhysgunPickup", "ply_physgunned", function(pl, ent)
ent._physgunned = true
end)
function playerDies( pl, weapon, killer )
if(pl._physgunned) then
return false
else
return true
end
end
hook.Add( "CanPlayerSuicide", "playerNoDeath", playerDies )[/QUOTE]
[QUOTE=StaTiiKxKALEb;42677569]Maybe im alittle late on this but if you need this still (ULX Only)[/QUOTE]
Where i put this in lua/autorun ?
[highlight](User was banned for this post ("Dumb bump" - Big Dumb American))[/highlight]
[QUOTE=Swarzox;50567607]Where i put this in lua/autorun ?[/QUOTE]
best necromancers come from france
check thread dates
woW
Sorry, you need to Log In to post a reply to this thread.