1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Sign up for news, events and more!

    You're currently visiting the official DarkRP Forums as a guest. Sign up now to participate in our community and we'll let you know when we have news.

Anti-Prop kill help.

Discussion in 'DarkRP Modding Questions & Help' started by pvtpuffball, Oct 15, 2013.

  1. pvtpuffball

    pvtpuffball New Member

    So I got this from a friend, but we have different versions...
    Where exactly would I add this to prevent prop kill/surf in the 2.5 DarkRP?
    And is it even correctly coded?

    Code (Text):
    hook.Add("PhysgunPickup", "PreventPropSurfPickup", function(ply, ent)
    if ent:GetClass() == "prop_physics" then
    ent:SetNWFloat("collision", ent:GetCollisionGroup())
    local r, g, b, a = ent:GetColor()
    ent:SetNWInt("alpha", a)
    a = a/2
    ent:SetColor(r, g, b, a)
    return false



    Code (Text):
    function PlayerHit( ent, dmginfo ) --No Prop Damage
        if ent:IsPlayer() and dmginfo:GetDamageType() == DMG_CRUSH then
            dmginfo:ScaleDamage( 0.0 )
    hook.Add( "EntityTakeDamage", "PlayerHit", PlayerHit )
    Code (Text):
    function AMS.PropKill( ply, ent ) --No Throwing Props
    if not IsValid(ent) then return end
    hook.Add("PhysgunDrop", "Anti PropKill", AMS.PropKill
  2. (FPtje) Atheos

    (FPtje) Atheos Main Developer Staff Member

    Seriously, don't put it anywhere. Anti prop kill scripts are annoying and they don't work.
    flamecow likes this.
  3. Scottie

    Scottie ~ Ent:King Dev ~ Contributor

    Doesn't FPP have an anti-propkill thign worked in? I think it was prop/entity damage or something similar.
  4. (FPtje) Atheos

    (FPtje) Atheos Main Developer Staff Member

    Of course it doesn't
  5. computer22

    computer22 Community Staff Staff Member Server Owner

    Background: Falco likes propkilling :D
    Scottie likes this.
  6. (FPtje) Atheos

    (FPtje) Atheos Main Developer Staff Member

    That's not the biggest reason why I hate anti prop kill systems.
    What I hate about them is that they don't work AND they're god damn annoying.
    Pab14567 likes this.

Share This Page