Raised This Month: $32 Target: $400
 8% 

Entity Tools 1.1


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Plugin ID:
486
Plugin Version:
1.1
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Provides tools and a queue system to modify certain entities, block point_servercommand, etc.
    Old 08-01-2008 , 16:53   Entity Tools 1.1
    Reply With Quote #1

    Entity Tools
    Version 1.1

    Requirements:
    Description:
    This plugin allows you to change minor things about a map (namely it's entities) by doing things such as blocking point_servercommand, which stops map console spam or modify datamaps on entities and fire inputs on certain classnames. It comes with a queue system that queues an entity to either have a datamap property changed or fire an input on it. Keep in mind this plugin is for modifying entities only when making a feature request.

    Todo:
    (Strikethrough = Completed)
    • Open for suggestions
    Commands:
    • et_entity mm_entity <datamap/entinput> <entity> <datamap prop/input> <value/set variant> - Change a datamap property or fire an input on a given classname
    • et_entity_queue <datamap/entinput> <delay> <entity> <datamap prop/input> <value/set variant>- Starts a delay from the start of the round and then calls et_entity on a classname (cleared on map change)
    • et_entity_queue_remove <index> - Removed a queued entity
    • et_entity_queue_clear - Removed all queued entities
    • et_entity_queue_list - Lists all queue entries, their status, and index
    Config:
    cfg/sourcemod/entitytools/entitytools.cfg
    Code:
    //
    //
    // Entity Tools Settings
    //
    //
    
    //
    // Blocking point_servercommand
    //
    
    // Block point_servercommand so maps can't execute commands from console (like annoying console text)
    et_psc_block "1"
    
    //
    // Entity Queuing
    //
    
    // et_entity_queue entinput 20 func_breakable Break // Breaks all breaks after 20 seconds from the round starting
    
    // et_entity_queue datamap 5 weapon_m4a1 m_iClip1 1 // sets "clip1" of all m4a1's to have 1 bullet 5 seconds after the round starts
    // et_entity_queue datamap 5 weapon_m4a1 m_iClip2 1 // sets "clip2" of all m4a1's to have 1 bullet 5 seconds after the round starts
    
    
    // et_entity_queue entinput 0 func_bomb_target Kill // Kills bombzones
    Installation:
    • Extract the contents of the zip file into cstrike
    • Navigate to <yourgamedir>/cfg/sourcemod/entitytools/entitytools.cfg and configure the default options
    • Create cfg files in this directory with the name of the map you are making the config for (example de_dust.cfg) and change the cvars to your liking
    • Your done!
    Changelog:

    August 1st
    • Released
    August 26th
    • Name changed to Entity Tools
    • Changed all cvar/cmd prefixes to et_
    • Removed option to break func breakables as firing ent inputs on entities covers that too
    • Added et_entity to change entity datamaps or fire an input on a specified classname
    • Added et_entity_queue to queue entities to have et_entity called on them after a delay starting from when the round starts
    • Added et_entity_queue_remove which removes a queued item
    • Added et_entity_queue_clear which removes all queued items
    • Added et_entity_queue_list which lists all queued items and info about them, you need to use this to find the index of a queued item to remove it
    Attached Files
    File Type: zip entitytools.zip (11.9 KB, 1236 views)
    __________________

    Last edited by Greyscale; 08-26-2008 at 19:27.
    Greyscale is offline
    DiscoBBQ
    Veteran Member
    Join Date: Jan 2005
    Location: Clemson, South Carolina
    Old 08-01-2008 , 17:02   Re: Map Modifier 1.0
    Reply With Quote #2

    Possibly godmoding breakables as a future request,
    Anyways sounds cool
    __________________
    "Every man is guilty of all the good he did not do"
    DiscoBBQ is offline
    Greyscale
    SourceMod Plugin Approver
    Join Date: Dec 2007
    Location: strYoMommasHouse[you];
    Old 08-01-2008 , 17:05   Re: Map Modifier 1.0
    Reply With Quote #3

    Very possible.

    Thanks for the request
    __________________
    Greyscale is offline
    DJ Tsunami
    DJ Post Spammer
    Join Date: Feb 2008
    Location: The Netherlands
    Old 08-05-2008 , 07:07   Re: Map Modifier 1.0
    Reply With Quote #4

    Could you make it possible to change values on certain entities? For example, if I wanted to change the setup time on a TF2 map, I'd run a command like: mm_setvalue team_round_timer setup_length 90
    It would then loop through all team_round_timer entities on map start, and set the value of setup_length with DispatchKeyValue. Now to be honest I don't know if TF2 resets any of those values during the map, but it's worth a shot.

    Thanks in advance
    __________________
    Advertisements | REST in Pawn - HTTP client for JSON REST APIs
    Please do not PM me with questions. Post in the plugin thread.
    DJ Tsunami is offline
    Greyscale
    SourceMod Plugin Approver
    Join Date: Dec 2007
    Location: strYoMommasHouse[you];
    Old 08-05-2008 , 13:58   Re: Map Modifier 1.0
    Reply With Quote #5

    Sure, good idea
    __________________
    Greyscale is offline
    Greyscale
    SourceMod Plugin Approver
    Join Date: Dec 2007
    Location: strYoMommasHouse[you];
    Old 08-22-2008 , 01:02   Re: Map Modifier 1.0
    Reply With Quote #6

    I don't think there is any way to set key values on entities after they have already been created unfortunately. I coded the entire queue system and I don't want that to go to waste. Is there any other way to set entity values on already created entities?
    __________________
    Greyscale is offline
    DJ Tsunami
    DJ Post Spammer
    Join Date: Feb 2008
    Location: The Netherlands
    Old 08-26-2008 , 15:23   Re: Map Modifier 1.0
    Reply With Quote #7

    You can try making it so we can set them using the datamaps instead. To take my example: mm_setint team_round_timer m_nSetupTimeLength 90
    You'd have to code seperate functions for bools/ints/floats/strings etc, or you could try checking if the datamap starts with m_b/m_n/m_fl/m_

    I think a kind of similar useful function would be to be able to fire inputs on an entity, either with or without passing a value. So use one of the SetVariant* natives if a value was passed, and then run AcceptEntityInput.
    __________________
    Advertisements | REST in Pawn - HTTP client for JSON REST APIs
    Please do not PM me with questions. Post in the plugin thread.

    Last edited by DJ Tsunami; 08-26-2008 at 15:31.
    DJ Tsunami is offline
    Greyscale
    SourceMod Plugin Approver
    Join Date: Dec 2007
    Location: strYoMommasHouse[you];
    Old 08-26-2008 , 15:41   Re: Map Modifier 1.0
    Reply With Quote #8

    Hm first suggestion should be done pretty quick just need to detect the datatype. I see m_b is bool, m_n is what?(int?), m_fl is float, m_ is? (string?)

    EDIT: Nevermind I just detect datatype in the value given. Took a while but I made some functions that check a string if it's a float, vector (then convert it to an array), an int, or an actual string. Might be a bit messy but it works like a charm ;)

    I just gotta change somethings and add a way to remove item(s) from the queue and then a direct cmd instead of queue'ing it.
    __________________

    Last edited by Greyscale; 08-26-2008 at 17:15.
    Greyscale is offline
    Greyscale
    SourceMod Plugin Approver
    Join Date: Dec 2007
    Location: strYoMommasHouse[you];
    Old 08-26-2008 , 19:24   Re: Entity Tools 1.1
    Reply With Quote #9

    Update
    • Name changed to Entity Tools
    • Changed all cvar/cmd prefixes to et_
    • Removed option to break func breakables as firing ent inputs on entities covers that too
    • Added et_entity to change entity datamaps or fire an input on a specified classname
    • Added et_entity_queue to queue entities to have et_entity called on them after a delay starting from when the round starts
    • Added et_entity_queue_remove which removes a queued item
    • Added et_entity_queue_clear which removes all queued items
    • Added et_entity_queue_list which lists all queued items and info about them, you need to use this to find the index of a queued item to remove it
    By the way Pinkfairie I believe with this version you will be able to godmode breakables.
    __________________
    Greyscale is offline
    Greyscale
    SourceMod Plugin Approver
    Join Date: Dec 2007
    Location: strYoMommasHouse[you];
    Old 09-05-2008 , 23:26   Re: Entity Tools 1.1
    Reply With Quote #10

    Any reason this has been left in new plugins?

    I made the changes requested is there something wrong with it?
    __________________
    Greyscale 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 22:48.


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