if you shoot a player he will be knocked back by bullet
i want to disable it but i can't found the hook about that
i see the wiki about damageinfo and found something like dmginfo.Force but it have no connection to knock back
and in bullet i found a force too but that force only can deal with prop or entities dose not work on player
CTakeDamageInfo/SetDamageForce
this can only set a Vector i can't set it to 0
he means
CTakeDamageInfo:SetDamageForce( Vector(0,0,0) )
https://files.facepunch.com/forum/upload/398940/bc3a4ab0-79da-4d39-9547-1ce5f564ca6d/image.png
set this will not work i have tried before i post this
hook.Add("EntityTakeDamage", "NoDamageForce", function( target, dmginfo )
if ( target:IsPlayer() ) then
target:SetHealth(target:Health() - dmginfo:GetDamage());
dmginfo:SetDamage(0);
end
end)
yes now i am using this , but still want to ask , why the "DamageForce" can not effect players?
Sorry, you need to Log In to post a reply to this thread.