Raised This Month: $51 Target: $400
 12% 

[Dev] Client Prop Explorer


Post New Thread Reply   
 
Thread Tools Display Modes
Author
necavi
Veteran Member
Join Date: Sep 2010
Plugin ID:
3222
Plugin Version:
2.0
Plugin Category:
Technical/Development
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows the easy retrieval or modification of almost any available client property.
    Old 09-07-2012 , 03:38   [Dev] Client Prop Explorer
    Reply With Quote #1

    Recently a friend asked me if it was possible to add more teams to CS:S (Something which I had done in previous versions, but not the most recent one), so I whipped up a little plugin to set the player's m_iTeamNum. Once I did that I realized that it would be even easier to just make something that gets/sets almost all of a player's properties..

    Using it is as simple as typing set_ent_prop -1 m_iTeamNum 4 (to set your team number to a previously unused fourth team).

    Full list of commands:
    • set_ent_prop <entity> <prop> <value> - sets the value of an entity property (use -1 to target yourself)
    • get_ent_prop <entity> <prop> - gets the value of an entity property (use -1 to target yourself)
    It will work on any platform that sourcemod does. Use sm_dump_netprops_xml <file> to create a file that lists all properties.

    Note: The commands provided by this plugin are extremely powerful and dangerous. This plugin should NEVER be run on anything other than a protected test server (as a single mistake could cause a server crash...this is a plugin solely for ease of development).

    Changelog:

    2.0
    • Almost completely rewritten
    • Removed unnecessary commands - it now will autodetect both the fieldtype (Send/Data) and datatype (int/float/ent/vec/string)
    1.0
    • Initial release

    Source (Github): http://github.com/necavi/prop_test
    Download (Latest Build): http://ci.0xf.org/job/prop_test/lastStableBuild/
    Jenkins: http://ci.0xf.org/job/prop_test

    Last edited by necavi; 11-23-2013 at 09:11.
    necavi is offline
    Root_
    Veteran Member
    Join Date: Jan 2012
    Location: ryssland
    Old 09-07-2012 , 05:49   Re: [Dev] Client Prop Explorer
    Reply With Quote #2

    Interesting. I will try it
    __________________


    dodsplugins.com - Plugins and Resources for Day of Defeat
    http://twitch.tv/zadroot
    Root_ is offline
    necavi
    Veteran Member
    Join Date: Sep 2010
    Old 09-07-2012 , 13:23   Re: [Dev] Client Prop Explorer
    Reply With Quote #3

    For a developer it can REALLY spark ideas. I was playing around with the m_flModelSize property, added m_flStepSize to it and got the idea for a mod that allows a player to "squish" another player if their stepsize and modelsize are larger than the other player by enough.
    necavi is offline
    necavi
    Veteran Member
    Join Date: Sep 2010
    Old 09-09-2012 , 03:55   Re: [Dev] Client Prop Explorer
    Reply With Quote #4

    I haven't had time to test this version yet, but due to a few important improvements I've decided to upload it anyway.

    - Added a CVar to switch all commands between admin (requiring the CHEATS flag) and a normal console command.
    - Added some form of safety to setting/getting props, it now checks to see if the prop exists, providing a helpful message and removing the annoyance of receiving a "command does not exist" message.
    necavi is offline
    341464
    Senior Member
    Join Date: Dec 2010
    Location: GetClientEyePosition
    Old 09-09-2012 , 08:48   Re: [Dev] Client Prop Explorer
    Reply With Quote #5

    This is quite nice, I can use this with tEntDev, since tEntDev doesn't seem to support setting vector and float.
    __________________
    341464 is offline
    Send a message via Skype™ to 341464
    necavi
    Veteran Member
    Join Date: Sep 2010
    Old 09-09-2012 , 17:49   Re: [Dev] Client Prop Explorer
    Reply With Quote #6

    Hmmm...I actually have a mostly complete entity development plugin...maybe I should fold some of that into here...unlike (from what I've seen of) tEntDev, it allowed the creation of entities as well.
    necavi is offline
    341464
    Senior Member
    Join Date: Dec 2010
    Location: GetClientEyePosition
    Old 09-10-2012 , 05:56   Re: [Dev] Client Prop Explorer
    Reply With Quote #7

    Quote:
    Originally Posted by necavi View Post
    Hmmm...I actually have a mostly complete entity development plugin...maybe I should fold some of that into here...unlike (from what I've seen of) tEntDev, it allowed the creation of entities as well.
    Uhm, you need to add appropriate check on creating entities then, few of them could crash the server without proper info.
    __________________
    341464 is offline
    Send a message via Skype™ to 341464
    necavi
    Veteran Member
    Join Date: Sep 2010
    Old 09-10-2012 , 06:12   Re: [Dev] Client Prop Explorer
    Reply With Quote #8

    Well, it always was a "use at your own risk" type of thing, as the idea is to have a completely unlimited system.

    Not to mention that it IS pretty easy to crash a server with this plugin already, this plugin is already geared entirely towards development servers, nothing else. Servers that you REALLY don't care if they crash.

    Last edited by necavi; 09-10-2012 at 06:13.
    necavi is offline
    341464
    Senior Member
    Join Date: Dec 2010
    Location: GetClientEyePosition
    Old 09-10-2012 , 09:33   Re: [Dev] Client Prop Explorer
    Reply With Quote #9

    Quote:
    Originally Posted by necavi View Post
    Well, it always was a "use at your own risk" type of thing, as the idea is to have a completely unlimited system.

    Not to mention that it IS pretty easy to crash a server with this plugin already, this plugin is already geared entirely towards development servers, nothing else. Servers that you REALLY don't care if they crash.
    Yeaah, true.
    EDIT: BTW, can this target to other entities instead of players?
    __________________

    Last edited by 341464; 09-10-2012 at 09:36.
    341464 is offline
    Send a message via Skype™ to 341464
    necavi
    Veteran Member
    Join Date: Sep 2010
    Old 09-10-2012 , 17:33   Re: [Dev] Client Prop Explorer
    Reply With Quote #10

    It can, the ONLY issue is whether or not %N would work on entities other than players, basically.
    necavi is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 15:34.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode