DarkCoveR / darkrp

Automatically exported from code.google.com/p/darkrp
0 stars 0 forks source link

Pickup props with Pocket #240

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What is the problem?
Pocket can pick up other players props with pocket in that way they can
gain access to peoples houses that has built up a base very very easily.

What steps will reproduce the problem?
To make so its not available to pickup props.

Do you have any errors? serverside or clientside? if you do, which ones?
ERROR: GAMEMODE:'EntityRemoved' Failed:
DarkRP\gamemode\sv_gamemode_functions.lua:106: attempt to index field 'dt'
(a nil value)

I do not believe that has anything to do with the pocket, more with what I
have added to entities

Are you using the downloaded version or an SVN revision (if SVN, which
revision number)?
DarkRP svn 532

Please provide any additional information below.

You basicly just can add peoples props into your pocket and if they are
welded they will return to same spot when u take it out, Possible you will
get killed or someone else killed in the process.

hopefully this has a easy fix or just turn on some setting i missed

Original issue reported on code.google.com by kmz...@gmail.com on 15 Mar 2010 at 9:33

GoogleCodeExporter commented 8 years ago
Can paste your line sv_gamemode_functions or atleast a snip so we have a better 
idea
of the problem.

Original comment by c_u_late...@hotmail.com on 15 Mar 2010 at 9:43

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
function GM:EntityRemoved(ent)
    self.BaseClass:EntityRemoved(ent)
    if ent:IsVehicle() then
        local found = ent.Owner
        if ValidEntity(found) then
            found.Vehicles = found.Vehicles or 1
            found.Vehicles = found.Vehicles - 1
        end
    end

    for k,v in pairs(DarkRPEntities) do
        if ent:IsValid() and ent:GetClass() == v.ent and ValidEntity(ent.dt.owning_ent) and
not ent.IsRemoved then
            local ply = ent.dt.owning_ent
            local cmdname = string.gsub(v.ent, " ", "_")
            if not ply["max"..cmdname] then
                ply["max"..cmdname] = 1
            end
            ply["max"..cmdname] = ply["max"..cmdname] - 1
            ent.IsRemoved = true
        end
    end
end

As I see that doesnt have anything to do with the posted problem, and I havent
noticed any other problem yet

Original comment by kmz...@gmail.com on 15 Mar 2010 at 9:59

GoogleCodeExporter commented 8 years ago
Suggestion: Add rp_allowproppocket

Original comment by ch...@watersideway.plus.com on 15 Mar 2010 at 4:52

GoogleCodeExporter commented 8 years ago
Unknown command "rp_allowproppocket"

Original comment by kmz...@gmail.com on 15 Mar 2010 at 4:59

GoogleCodeExporter commented 8 years ago
the pocket is based on the gravgun protection. Can players pick up other 
people's props 
with the gravity gun? (look in the FPP options, Q>utilities>FPP admin settings)

Original comment by fpeijnen...@gmail.com on 15 Mar 2010 at 6:56

GoogleCodeExporter commented 8 years ago
I'm not saying that command exists, I'm just suggesting it should be added.

But Falco, the gravgun doesn't work on welded or frozen props, the pocket does.

Maybe make the pocket only work on unwelded or unfrozen props? Like the gravgun?

Original comment by ch...@watersideway.plus.com on 15 Mar 2010 at 7:25

GoogleCodeExporter commented 8 years ago
I will check the gravity gun settings and report back in about 8hours, I hope 
it is
as simple as that.

@ post before this. I dont think play owned props should be allowed to put in 
pocket
at all since it can be abuse heavily. after 30min of this discovery people 
started to
use this "glitch" to break in everywhere and it was complete chaos, I had no 
other
option then shut down server and set rp_pocket 0. 

Original comment by kmz...@gmail.com on 15 Mar 2010 at 9:56

GoogleCodeExporter commented 8 years ago
Okey so I just woke up and tested to pocket my props and it worked, there wasnt 
any
on the server at the moment so i couldnt test on other peoples props... so I 
went to
another server, I could pocket my own props but not others so it has to be some 
kind
of setting that i missed. The settings are default on FPP, except i added stuff 
to
blacklist on physgun

in the gravity gun settings, I only had that people can pick up world props 
with the
gravgun

Could it be something else?

Original comment by kmz...@gmail.com on 16 Mar 2010 at 6:17

GoogleCodeExporter commented 8 years ago
Or maybe could blacklist props in the pocket? I mean its better if cant pick up 
any
props at all, i tried to disable all in gravgun except gravgun protection in 
the FPP

Original comment by kmz...@gmail.com on 16 Mar 2010 at 6:34

GoogleCodeExporter commented 8 years ago
It just hit to my head all i had to do was to put prop_physics into the 
blacklist on
gravgun xD anyways im sry about wasting your time about this, I really thought 
it was
something wrong...

since this aint a issue I guess you can remove this and thanks for telling me 
the
pocket was based on rhe gravgun protection.

Original comment by kmz...@gmail.com on 16 Mar 2010 at 11:07

GoogleCodeExporter commented 8 years ago

Original comment by fpeijnen...@gmail.com on 16 Mar 2010 at 3:18

GoogleCodeExporter commented 8 years ago
Still think you should have the pocket mimic the grav guns settings, so it can 
only
work on unfrozen and unwelded props..

Original comment by ch...@watersideway.plus.com on 16 Mar 2010 at 5:22