1. 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.

Release Surrender

Discussion in 'DarkRP Addon & Plugin Releases' started by LordiAnders, Nov 4, 2014.

  1. LordiAnders

    LordiAnders Active Member

    Might as well change the Networked variables to DarkRP variables instead when i get this updated. Should fix it
     
  2. n00bmobile

    n00bmobile Active Member

    I just tested and as I can see, the problem is with the NWVars... They stopped working on my addons too, just remove NWVars they suck at this point.
     
  3. LordiAnders

    LordiAnders Active Member

    Update time, nothing special though...

    -Changed networked variables to DarkRP variables instead (Let's face it, networked variables suck)
    -Fixed the dreaded shouting with chat open
    -Hitmenu shouldnt pop up when pressing E on a job classed as a hitman if they are surrendering/tied

    This may be the last update, besides fixing bugs. Who knows though? Maybe ill add more features at some point, but it is highly unlikely
     
  4. The Big Boss

    The Big Boss New Member

    Brilliant mod. However how do you untie a player?
     
  5. LordiAnders

    LordiAnders Active Member

    Look at them and hit E, if it doesn't work, try looking a bit up and hit E again
     
  6. TheGamerDude123

    TheGamerDude123 New Member

    I cant untie anyone whos tied down
     
  7. LordiAnders

    LordiAnders Active Member

    Whoops, thats a mistake on my part
    I made a typo, its fixed now
     
  8. CrazymanNL

    CrazymanNL New Member

    i cant shout plzz help
     
  9. x Drahmah x

    x Drahmah x New Member

    Yeah shout isnt working for m9k
     
  10. LordiAnders

    LordiAnders Active Member

    I smell the sound of someone not reading the thread correctly, or bothering to open up a file labeled "config" with their text editor
     
    Last edited: Apr 22, 2015
  11. x Drahmah x

    x Drahmah x New Member

    i have i edited it all. still isnt working properly.
     
  12. LordiAnders

    LordiAnders Active Member

    Could you at the very least go into detail? Telling me "it doesn't work, help" makes it rather difficult to help.

    In this case, posting your table from the config file would be extremely helpful
     
  13. x Drahmah x

    x Drahmah x New Member

    SurrenderSettings = {}

    --Functionality allowing you to decide whether or not a player should be able to surrender (prevents shouting on player aswell), returning false will stop the player from being surrendered completly
    SurrenderSettings["cansurrender"] = function(ply)
    --if IsAntlion(ply) or IsAntlionG(ply) then return false end
    return true
    end

    --Functionality allowing you to decide whether or not a player should be able to shout
    SurrenderSettings["canshout"] = function(ply,vic)
    --if IsAntlion(ply) or IsAntlionG(ply) then return false end
    --if not ply:isCP() then return false end --Because people like to do this
    --if vic:IsSuperAdmin() then return false end --Im a celebrity! Leave me alone!
    return true
    end

    --Functionality allowing you to decide whether or not a player can be tied. Returning false disallows it, and adding a second stringed argument will add that as a text incase things "go wrong"
    SurrenderSettings["cantie"] = function(ply,vic)
    --if IsAntlion(ply) or IsAntlionG(ply) then return false, "(Antlions cant tie people.)" end
    --if IsAntlion(vic) or IsAntlionG(vic) then return false, "(Antlions cant be tied.)" end
    --if not ply:HasWeapon("weapon_lordi_rope") then return false, "(You dont have rope)" end
    return true
    end

    --Allow players with a valid weapon, to shout at others causing them to surrender? (Only if the victim doesnt have a "valid" weapon out aswell)
    SurrenderSettings["forcesurrender"] = true

    --What messages should be spoken by the player, when they shout, whilst the target is running? (Only if SurrenderSettings["forcesurrender"] is set to true)
    SurrenderSettings["forcesurrender_messages_running"] = {
    "Dont move!",
    "Hold it!",
    "DONT move",
    "Stop running!",
    "Hold it right there!"
    }

    --What messages should be spoken by the player, when they shout, whilst the target is standing still? (Only if SurrenderSettings["forcesurrender"] is set to true)
    SurrenderSettings["forcesurrender_messages_standing"] = {
    "Get down!",
    "Kiss the floor!",
    "Down!",
    "On the ground!",
    "Get down, on the ground!",
    "How about you get down?"
    }

    --What messages should be spoken by the player, when they shout, whilst the target is already surrendering? (Only if SurrenderSettings["forcesurrender"] is set to true)
    SurrenderSettings["forcesurrender_messages_surrendering"] = {
    "And stay down!",
    "Whatd i say?",
    "Dont go anywhere!",
    "Get up, and you get a bullet to the head!",
    "See this? Im gonna introduce it to your head, if you move.",
    "Stand still!",
    "Dont go anywhere, pretty please."
    }

    --How likely is it that a player will surrender, when asked to?
    --1 is always, 4 is 1/4 chance, 50 is 1/50 chance, and so on (Only if SurrenderSettings["forcesurrender"] is set to true)
    SurrenderSettings["forcesurrender_chance"] = 4

    --How long will a player surrender for, when asked to? (in seconds) (Only if SurrenderSettings["forcesurrender"] is set to true)
    SurrenderSettings["forcesurrender_time"] = 15

    --Should SurrenderSettings["intimidatingweapons"] be inverted? This will cause the table to act as a blacklist, rather than a whitelist
    SurrenderSettings["intimidatingweapons_invert"] = false

    --What weapons should be able to cause a player to forcibly surrender, if the wielder shouts at them? (Only if SurrenderSettings["forcesurrender"] is set to true)
    SurrenderSettings["intimidatingweapons"] = {
    ["weapon_ak472"] = true,
    ["weapon_deagle2"] = true,
    ["weapon_fiveseven2"] = true,
    ["weapon_glock2"] = true,
    ["weapon_m42"] = true,
    ["weapon_mac102"] = true,
    ["weapon_mp52"] = true,
    ["weapon_p2282"] = true,
    ["weapon_pumpshotgun2"] = true,
    ["m9k_acr"] = true,
    ["m9k_amd65"] = true,
    ["m9k_fal"] = true,
    ["m9k_m14sp"] = true,
    ["m9k_m16a4_acog"] = true,
    ["m9k_m416"] = true,
    ["m9k_scar"] = true,
    ["m9k_tar21"] = true,
    ["m9k_val"] = true,
    ["m9k_vikhr"] = true,
    ["m9k_winchester73"] = true,
    ["m9k_coltpython"] = true,
    ["m9k_colt1911"] = true,
    ["m9k_hk45"] = true,
    ["m9k_luger"] = true,
    ["m9k_ragingbull"] = true,
    ["m9k_model500"] = true,
    ["m9k_m29satan"] = true,
    ["m9k_model3russian"] = true,
    ["m9k_model627"] = true,
    ["m9k_1887winchester"] = true,
    ["m9k_dbarrel"] = true,
    ["m9k_jackhammer"] = true,
    ["m9k_m3"] = true,
    ["m9k_ithacam37"] = true,
    ["m9k_mossberg590"] = true,
    ["m9k_remington870"] = true,
    ["m9k_1897winchester"] = true,
    ["m9k_barret_m82"] = true,
    ["m9k_m98b"] = true,
    ["m9k_svt40"] = true,
    ["m9k_svu"] = true,
    ["m9k_dragunov"] = true,
    ["m9k_intervention"] = true,
    ["m9k_psg1"] = true,
    ["m9k_aw50"] = true,
    ["m9k_m24"] = true,
    ["m9k_remington7615p"] = true,
    ["m9k_contender"] = true,
    ["m9k_fg42"] = true,
    ["m9k_m60"] = true,
    ["m9k_mp5sd"] = true,
    ["m9k_mp7"] = true,
    ["m9k_mp9"] = true,
    ["m9k_honeybadger"] = true,
    ["m9k_uzi"] = true,
    ["m9k_kac_pdw"] = true,
    ["m9k_magpulpdr"] = true,
    ["m9k_vector"] = true,
    ["m9k_usc"] = true,
    ["m9k_sten"] = true,
    ["m9k_tec9"] = true,
    ["basebat"] = true,
    ["weapon_fists"] = true,
    ["ls_sniper"] = true
    }

    --If a player is surrendering, they can still take damage, this will scale the damage, allowing surrendering people, to have a chance to show that they are surrendering
    --so they wont get killed the minute another player spots them (set to 1 for full damage)
    SurrenderSettings["surrenderdamagescale"] = 0.25

    --Should SurrenderSettings["weapontostrip"] be inverted? This will cause the table to act as a blacklist, rather than a whitelist
    SurrenderSettings["weapontostrip_invert"] = false

    --What weapons should get striped from a player, when their weapons are "removed"? (This will cause the player "removing" the weapons, to receive them
    --and if they already have it, the weapon will drop on the ground)
    SurrenderSettings["weapontostrip"] = {
    ["weapon_ak472"] = true,
    ["weapon_deagle2"] = true,
    ["weapon_fiveseven2"] = true,
    ["weapon_glock2"] = true,
    ["weapon_m42"] = true,
    ["weapon_mac102"] = true,
    ["weapon_mp52"] = true,
    ["weapon_p2282"] = true,
    ["weapon_pumpshotgun2"] = true,
    ["m9k_acr"] = true,
    ["m9k_amd65"] = true,
    ["m9k_fal"] = true,
    ["m9k_m14sp"] = true,
    ["m9k_m16a4_acog"] = true,
    ["m9k_m416"] = true,
    ["m9k_scar"] = true,
    ["m9k_tar21"] = true,
    ["m9k_val"] = true,
    ["m9k_vikhr"] = true,
    ["m9k_winchester73"] = true,
    ["m9k_coltpython"] = true,
    ["m9k_colt1911"] = true,
    ["m9k_hk45"] = true,
    ["m9k_luger"] = true,
    ["m9k_ragingbull"] = true,
    ["m9k_model500"] = true,
    ["m9k_m29satan"] = true,
    ["m9k_model3russian"] = true,
    ["m9k_model627"] = true,
    ["m9k_1887winchester"] = true,
    ["m9k_dbarrel"] = true,
    ["m9k_jackhammer"] = true,
    ["m9k_m3"] = true,
    ["m9k_ithacam37"] = true,
    ["m9k_mossberg590"] = true,
    ["m9k_remington870"] = true,
    ["m9k_1897winchester"] = true,
    ["m9k_barret_m82"] = true,
    ["m9k_m98b"] = true,
    ["m9k_svt40"] = true,
    ["m9k_svu"] = true,
    ["m9k_dragunov"] = true,
    ["m9k_intervention"] = true,
    ["m9k_psg1"] = true,
    ["m9k_aw50"] = true,
    ["m9k_m24"] = true,
    ["m9k_remington7615p"] = true,
    ["m9k_contender"] = true,
    ["m9k_fg42"] = true,
    ["m9k_m60"] = true,
    ["m9k_mp5sd"] = true,
    ["m9k_mp7"] = true,
    ["m9k_mp9"] = true,
    ["m9k_honeybadger"] = true,
    ["m9k_uzi"] = true,
    ["m9k_kac_pdw"] = true,
    ["m9k_magpulpdr"] = true,
    ["m9k_vector"] = true,
    ["m9k_usc"] = true,
    ["m9k_sten"] = true,
    ["m9k_tec9"] = true,
    ["basebat"] = true,
    ["weapon_fists"] = true,
    ["ls_sniper"] = true
    }
     
  14. Heisenberg

    Heisenberg Member

    Would it be possible to make it so that you can't arrest someone unless they're tied down?
     
  15. Lannebro

    Lannebro New Member

    I can run forward and backwards while on knees. Any fix? ( only when holding shift)
     
  16. Heisenberg

    Heisenberg Member

    Yeah, players do this on my server as well.
     
  17. Siick

    Siick New Member

    This is pretty awesome I'm going to check this addon out :) I will review it if all goes well!
     
  18. JvDelicia

    JvDelicia New Member

    This addon does not working on DarkRP 2.6.0+, please fix it, I can't surrender
     
  19. LordiAnders

    LordiAnders Active Member

    Can you explain how it doesnt work?
    Simply saying "Doesnt work, fix it" is really unhelpful
     
  20. Tomelyr

    Tomelyr Active Member

Share This Page