1. Post #1
    Eusion's Avatar
    January 2009
    75 Posts
    This is another one of my client side scripts.

    This script will warn you if a member of the Civil Protection has their DarkRP arrest baton out.

    Features:

    * Intelligent system with very little (if any) FPS strain.

    * Can be disabled with the console command bc_abw (and likewise it can be enabled via this).

    * If the entity isn't an arrest baton, then the script will display a tick under the players feat (Will only display ticks and crosses for members of the Civil Protection, so it wont show for everyone).

    * Checks for valid entities so the script won't ever crash.

    Please do not re-distribute this script in any way without my permission.

    Have fun :).

    Screenshots:








  2. Post #2
    Gold Member
    Carlisle's Avatar
    March 2009
    1,164 Posts
    If only I still used DarkRP...

    Still, cool idea

  3. Post #3
    Eusion's Avatar
    January 2009
    75 Posts
    If only I still used DarkRP...

    Still, cool idea
    Thank you.
    I might release another version if i get some good feedback like yours :).

  4. Post #4
    Gold Member
    hexpunK's Avatar
    August 2008
    15,344 Posts
    FPtjes scripts have had this for a long while, I'm not sure if it actually works though as I forget to activate it. But it's nice ot have a standalone version.

  5. Post #5
    hockeyboi's Avatar
    October 2007
    62 Posts
    Sorry if I don't get the point of this but...

    In my eyes, the stun baton being OUT is more obvious than a small red X. I just see this as useless but I don't "RP", so do you mind explaining why the red x is important? To me, the stun baton makes it obvious enough already.

  6. Post #6
    Gold Member
    l337k1ll4's Avatar
    September 2007
    3,972 Posts
    Because he may not have the Arrest Baton out, he may have the stunstick out, you don't know which one it is.

  7. Post #7
    Gold Member
    Dennab
    July 2009
    4,483 Posts
    Why is it important to know if he has it out? If you've done something wrong, you should be running from them no matter what swep is out, right?

  8. Post #8
    Eusion's Avatar
    January 2009
    75 Posts
    Sorry if I don't get the point of this but...

    In my eyes, the stun baton being OUT is more obvious than a small red X. I just see this as useless but I don't "RP", so do you mind explaining why the red x is important? To me, the stun baton makes it obvious enough already.
    True, but how would you know if it is the arrest baton or the stun?
    Also with this system you can tell who is approaching.

  9. Post #9
    hockeyboi's Avatar
    October 2007
    62 Posts
    Because he may not have the Arrest Baton out, he may have the stunstick out, you don't know which one it is.
    Thanks for explaining, makes sense now :)

  10. Post #10
    insert long title here
    SEKCobra's Avatar
    January 2009
    15,135 Posts
    I want that thing on the left side of the screen D:

  11. Post #11
    Gold Member
    Lexic's Avatar
    March 2009
    6,123 Posts
    I want that thing on the left side of the screen D:
    throw it in a clientside autorun file.
    function EntInFront()
    
    	local trace = LocalPlayer():GetEyeTrace();
    	
    	if(trace.Entity and trace.Entity:IsValid()) then return trace.Entity end
    	
    end
    
    local function Notify(words)
    	if GAMEMODE.AddNotify then
    		GAMEMODE:AddNotify( tostring( words ), NOTIFY_GENERIC, 3)
    	else
    		LocalPlayer():ChatPrint(tostring(words))
    	end
    end
    
    function math.DecimalPlaces(numb,places)
    	return math.Round(numb*10^places)/10^places
    end
    local a = "-- %-10s: %-73s --"
    function f(b,c)
    	print(string.format(a,b,c))
    end
    concommand.Add( "propinfo", function ( pl, cmd, args )
    	ent = EntInFront()
    	if( !ent or !ent:IsValid() ) then Notify( "No Entity" ) return end	
    	print( "-------------------------------------------------------------------------------------------" )
    	print( "--                                      Prop info                                        --" )
    	print( "-------------------------------------------------------------------------------------------" )
    	f( "tostring",tostring( ent ) )
    	
    	f( "Model",'"'..tostring( ent:GetModel() )..'"' )
    	print( "-------------------------------------------------------------------------------------------" )
    	Notify( tostring( ent ).."["..ent:GetModel().."]")
    	if( ent:IsPlayer() ) then
    		pl:ChatPrint( "-- Name: "..tostring( ent:GetName() ) )
    	print( "-------------------------------------------------------------------------------------------" )
    	end
    	local pos = ent:GetPos()
    	f( "Position","Vector("..math.DecimalPlaces(pos.x,4)..", "..math.DecimalPlaces(pos.y,4)..", "..math.DecimalPlaces(pos.z,4)..")" )
    	local ang = ent:GetAngles()
    	f( "Angle","Angle("..math.Round(ang.p)..", "..math.Round(ang.y)..", "..math.Round(ang.r)..")" )
    	local r,g,b,a = ent:GetColor()
    	f( "Colour","Color("..r..", "..g..", "..b..", "..a..")" )
    	f( "Material",tostring( ent:GetMaterial() ) )
    	f("Size",tostring( ent:OBBMaxs() - ent:OBBMins() ) )
    	f("Radius",tostring( ent:BoundingRadius() ) )
    	print( "-------------------------------------------------------------------------------------------" )
    end )
    edit: updated it to the version I just made.

  12. Post #12
    TehPeeMast3r's Avatar
    October 2008
    811 Posts
    True, but how would you know if it is the arrest baton or the stun?
    Also with this system you can tell who is approaching.
    You get hit with one of the two and fine out. :flashfap:

    Still a good idea though