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

[ANY/CSS] EntControl(like grabbermod,NPCs,BuildIn-WEBSERVER,...) (Updated 2014-05-09)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
LeGone
Senior Member
Join Date: Dec 2006
Location: Germany
Plugin ID:
2338
Plugin Version:
0.0.1.8
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    52 
    Plugin Description:
    The 'EntControl' plug-in is for people who want to control their serverīs as good as possible. By editing/spawning/grabbing the worldīs entities.
    Old 05-15-2011 , 19:51   [ANY/CSS] EntControl(like grabbermod,NPCs,BuildIn-WEBSERVER,...) (Updated 2014-05-09)
    Reply With Quote #1

    Ent-Control-System

    • Feature list
    • Spawn things like props, weapons, bombzone, NPCs, ...
    • You can easily add new Entities by editing the configfile - NO need to recompile the plugin!
    • Modify every entity ... make it breakable, invisible, unsolid, remove it, touch it, ...
    • Rotate entities
    • Use one of the powerful weapons (shoot rockets, fire ioncannon, TV-MISSILE)
    • Reads Entity-Outputs like the OnPressed Event from a func_button
    • None-Admins are able to pickup props with +USE
    • And much more :)
    • Spawn Portals
    • Fixed Guns
    • Extract files from .vpk-files
    • Webinterface using an integrated webserver.
    • Accessing hiding-spots from .nav-files
    • Description
    The 'EntControl' plug-in is for people who want to control their servers as good as possible.
    By editing/spawning/grabbing entities.

    The idea came from L. Dukeīs Grabber:SM-Plugin (Grabbermod).

    This plugin might be a little complicated, but itīs worth the time :)
    Iīve never had so much fun playing CS:S.

    Duo to the huge amount of features, many features are at some "experimental-state" right now.
    But most of the features are stable.
    • So what can I do?
      • Spawn a train, smash a player with it
      • Spawn GMAN and let him kill everyone with his briefcase
      • Spawn a bunch of zombies and let them slaughter their enemies
      • Make every entity unsolid -> players can move through doors, without opening them
      • Lock doors! Itīs not possible to open them anymore
      • Grab players and place them somewhere else. Or just teleport them.
      • Control every entity.
        • Open/Close/Toggle/Lock/Unlock/Unsolid/Solid/Delete/invisible/... doors
        • Start/Stop/... trains
        • Change the skin of everything to everything! Make a player look like a plant. Every wanted a walking hostage-plant? :)
        • Change your own skin to everything. Like Hide And Seek.
      • Spawn lights
      • Create Smoke ... huge smoke-clouds
      • Open doors from miles away, without even seeing them
      • Shoot homing rockets
      • ION-Cannons with much damage, shaking, ...
      • Control who can do what. Use flags (a-z) to control the level. You can even let it empty. This will let everyone use a function.
      • Place npc_antlion,npc_antlionguard,npc_barney,npc_d og,npc_gman,npc_headcrab,npc_police,npc_soldi er,npc_sentrygun,npc_vortigaunt,npc_synth,npc _zombie,... ... and even store them. They will appear everytime the map loads and respawn on every round-start.
      • Shoot TV-Missiles: You see what the rocket sees.
      • Portals! Even Props will be teleported!
      • Place the bomb in cs_assault -> Place Bombzones everywhere
      • Rescue hostages in de_dust -> Place Rescuezones everywhere
      • Place static-weapons. Everyone can use them. Laserpointer support :D
      • Spawn weapons and store them. Next time the map loads, the weapons will appear.
      • Same goes for Props. Ever wanted a tree in the middle of poolparty? :P
      • Youīre a mapper? You can place NPCs in the hammer-editor!
      • Coder? Use one of the natives, to spawn NPCs, get entity-outputs or get access to the navpoints (like hidingspots) used by bots/hostages
      • Itīs possible to parent things together. Like magnifying everything. Even doors.
    • Supported mods
      • CS:S
    • Not fully supported mods
      • DOD (I donīt own it, but it should work)
      • TF2
      • Obsidian Conflict
    • Unsupported mods (Itīs not possible to run EC on these Mods)
      • Dystopia
      • L4D / L4D2 <- I donīt own these games, so I will not support them.
      • CS:GO <- Thanks to Valve, most functions will not work in CS:GO. But you can still use the plugin in CS:GO at your own risk ...
    • Video
    http://www.youtube.com/watch?v=CDtgppoIXa4
    http://www.youtube.com/watch?v=zCq5LWri8uo
    (Old version!)
    • Important Commands
    Grab things by using the command:
    +sm_entcontrol_grab

    Open the Menu by using:
    sm_entcontrol_menu

    Write !entcontrol in chat to see the ingame-documentation

    You can find all other commands in the "Documentation-Section".

    For the nearly full list of commands: Old Documentation
    • CVARs
    For informations about the flags please have a look at:
    http://wiki.alliedmods.net/Adding_Admins_(SourceMod)#Levels

    You can also set the Flag to ""
    Example:
    sm_entcontrol_grab_fl ""

    This will allow everyone to use the grab command.
    • Natives
    Code:
    // + Entities
    native EC_Entity_GetOutputCount(entity, String:sOutputName[]);
    native bool:EC_Entity_GetOutputFirst(entity, String:sOutputName[]);
    native bool:EC_Entity_GetOutputAt(entity, String:sOutputName[], i);
    // - Entities
    
    // + Navigation(.nav needed) - Used to spawn players/npcs/...
    // Thanks to AnthonyIacono - https://github.com/AnthonyIacono for his navigation-parsing-code
    native bool:EC_Nav_Load(); // .nav-files will automatically extracted from .vpk file
    native bool:EC_Nav_CachePositions();
    native bool:EC_Nav_GetNextHidingSpot(Float:randomPosition[3]);
    // - Navigation
    
    // + Webserver
    forward Action:EC_OnWebserverCallFunction(const String:function[], const String:arg[], String:result[], maxresultlength);
    native EC_Web_GetPort();
    native EC_Web_GetIP(string:address[]);
    // - Webserver
    
    // + HLLib - http://nemesis.thewavelength.net/index.php?p=35
    native bool:EC_HLLib_OpenFile(const String:function[]); // BSP, GCF, NCF, PAK, VPK, WAD, XZP and uncompressed ZIP package formats are supported.
    native bool:EC_HLLib_ItemExist(const String:item[]);
    native bool:EC_HLLib_Extract(const String:source[], const String:destination[]);
    native EC_HLLib_Close();
    // - HLLib
    
    // + Dlib - http://dlib.net/
    native EC_Dlib_CRC32(const String:text[]);
    native EC_Dlib_MD5(String:text[]); // text is input and output
    native EC_Dlib_HammingDistance(num1, num2);
    native EC_Dlib_Hash(String:text[]); // text is input and output
    native Float:EC_Dlib_GaussianRandomHash(num1, num2, num3);
    // - Dlib
    
    // + NPCs
    // Possible NPC-Names:
    // npc_antlion,npc_antlionguard,npc_barney,npc_dog,npc_gman,npc_headcrab,npc_police,npc_soldier,npc_sentrygun,npc_vortigaunt,npc_synth,npc_zombie,...
    native EC_NPC_Spawn(String:sNPCName[], Float:x, Float:y, Float:z);
    // - NPCs
    • Credits
    L. Dukeīs -> For his grabbermod:sm code
    javalia -> Stocklib and Tactical Gun (Used for the weapons code)
    <eVa>Dog -> Antlion-Flames
    Davis E. King -> For his Dlib - http://www.dlib.net

    If I missed someone -> Iīm going to give you credits for sure!

    • Changelog (This is a copy from Mantisbt - Bugtracker)
    Quote:
    2014-05-09 (0.0.1.8)
    - Support for NMRIH
    2013-10-12 (0.0.1.7dev)
    - 0000022: [General] Check for new versions (LeGone) - resolved.
    - 0000021: [General] Ability to list and modify entities from outside the game, using the Webserver-module (LeGone) - resolved.
    - 0000020: [General] Ability to enable or disable the boundingbox (LeGone) - resolved.
    - 0000019: [General] m_flDamage not found on hl2dm (LeGone) - resolved.
    - 0000018: [General] Spawn <count> NPCs on random-navigation-hiding-spots (LeGone) - resolved.
    - 0000017: [General] Not possible to reopen the menu (LeGone) - resolved.
    - 0000016: [General] Build-In-Webserver-Module (LeGone) - resolved.
    - 0000015: [General] Make lights storeable (LeGone) - resolved.

    2013-08-14 (v1.6 - dev 6)
    - 0000001: [General] Recompile extension against the latest SDK (LeGone) - resolved.
    - 0000012: [General] Get access to the .nav-points (LeGone) - resolved.
    - 0000011: [General] Grab sth then open the menu (LeGone) - resolved.

    2013-08-08 (v1.6 - dev 5)
    - 0000008: [General] Spawn random NPCs in random Place on roundstart (LeGone) - resolved.
    - 0000002: [General] friagramīs improvements (LeGone) - resolved.
    - 0000005: [General] NPC-Natives (LeGone) - resolved.
    - 0000004: [General] Move from pluginautoupdater to Updater (LeGone) - resolved.
    - 0000003: [General] Remove entity on active players (LeGone) - resolved.

    2012-12-24 (v1.6 - dev 4)
    * HL2MP - Support
    * Obisidan Conflict - Support
    * Weapons can now be stored/loaded
    * Fixed a few bugs

    2012-03-01 (v1.6)
    * Portals
    * Fixed Guns
    * TV-Missile
    * Just too much Oo

    2011-12-04 (v1.56)
    * None-Admins are now able to pickup props with +USE
    -> Can be disabled: sm_entcontrol_noneadminsusegrab 0
    * Faster rockets
    * While looking at nothing (none-entity), the menu will now select yourself!
    * Headcrabs should work fine for now ... but untested so far ...
    * Improved Mines

    2011-10-13 (v1.55)
    * Shows now the output of a func_button-entity
    -> This will need the EntControl-Extension
    * Fixed the "rocket-donīt-explode"-bug
    * Added new flag: sm_entcontrol_grab_pl_fl <<< Flag to grab player

    2011-10-03 (v1.541)
    * Fixed support for SDK-Hooks (TF)

    2011-09-30 (v1.54)
    * The admin-threaded plugin is now fully working.
    * SDKHooks is no longer required
    * Now works on other mods like Obsidian Conflict, Synergy, ...

    2011-07-11 (v1.53)
    * Hostages are now able to break the func_breakable entities.
    * Fixed the store-function
    * Added the parent-function
    * Fixed a few bugs

    2011-07-07 (v1.52)
    * Weapons and the Sentrygun are now working under TF2
    * A few Bugfixes

    2011-06-18 (v1.50)
    * Rewritten the menu (Look at an entity to edit it)
    * Save & load -> Props & NPCs
    * Place NPCs via Hammer Editor (info_target -> Name = "npc_...")
    * Workaround for the "NPC-Resuezone-Bug"
    * Headcrab now able to attach to player
    * A few other things

    2011-06-06 (v1.45)
    * Removed hostage sounds from npcs (thanks to Nail)
    * Added Weapons & Props for DoD:S (thanks to Kjaer)
    * Fixed a few Bugs
    * NPC-ConfigFile-Section
    * Moved the needed Stocklib-Functions to stocks.sp (thanks to javalia)

    2011-05-28 (v1.45pre)
    * Fixed an important security-hole
    * Added Police with Stunstick and Barney (Can pickup weapon_deagle or any other physics entity and throws it at the player)

    2011-05-25 (v1.4)
    * Added ClassicZombie, CombineSoldier with Plasmaweapon
    * Updated the NPC BaseCode

    2011-05-23 (v1.342)
    * Fixed a few bugs

    2011-05-22 (v1.34)
    * Fixed the not working Ioncannon

    2011-05-22 (v1.33)
    * Spawn weapons under TF2
    * Updated Config-Loading-Code and the Config-File

    2011-05-20 (v1.3)
    * Translationfile (english, german)
    * Added NPCs (Gman, Headcrab)

    2011-05-19 (v1.252)
    * Added CVARS (sm_entcontrol_throw_self, sm_entcontrol_mod_self)

    2011-05-18 (v1.251)
    * Added Gamefolder-Checks

    2011-05-18 (v1.25)
    * New Commands (sm_entcontrol_grab_toggle, sm_entcontrol_unfreeze)
    * Fixed a few bugs
    * Added Menu-Back-Buttons

    2011-05-17 (v1.2)
    * New CVARS (sm_entcontrol_grab_self, sm_entcontrol_spawn_prop_override)
    * New configfile

    2011-05-16 (v1.1a)
    * Fixed Bots-Are-Crashing-Server-Bug.

    2011-05-16 (v1.1)
    * Fixed a few bugs
    * Flag "" can now be set. (Allows non-admins to use a command)
    * Weapons now have 150 ammo after have been spawned

    2011-05-16 (v1.0)
    * Initial release.
    You donīt have to edit the plugin yourself ... just post your ideas and Iīm going to update the plugin :)
    Also check out the barney =)


    Donīt die while shooting the TVMissile xD

    DO NOT USE NPC WITH BOTS!
    This is only related to the npc and might crash your server. Just donīt spawn NPC and bots. The issues seems to be related to the CS:S-Code itself :(
    PLUGIN on GITHUB
    Extension-Sourcecode on GITHUB
    Attached Files
    File Type: zip entcontrol-1-08.zip (2.80 MB, 4575 views)
    File Type: 7z entcontrol-sourcecode.7z (84.4 KB, 1623 views)

    Last edited by LeGone; 03-08-2016 at 10:02. Reason: Updated
    LeGone is offline
    Snaggle
    AlliedModders Donor
    Join Date: Jul 2010
    Location: England
    Old 05-15-2011 , 20:28   Re: [ANY] Ent-Control
    Reply With Quote #2

    Could you link us to the documentation page or clean it up a bit? It's a bit hard to read through it. Seems like a fun plugin, i'll test it out properly soon.
    Snaggle is offline
    DaRk56
    Senior Member
    Join Date: Jul 2009
    Location: France
    Old 05-16-2011 , 00:48   Re: [ANY] Ent-Control
    Reply With Quote #3

    Great plugin
    DaRk56 is offline
    LeGone
    Senior Member
    Join Date: Dec 2006
    Location: Germany
    Old 05-16-2011 , 02:55   Re: [ANY] Ent-Control
    Reply With Quote #4

    Quote:
    Originally Posted by Snaggle View Post
    Could you link us to the documentation page or clean it up a bit? It's a bit hard to read through it. Seems like a fun plugin, i'll test it out properly soon.
    I really have to update the documentation.
    Here is the link:
    http://exp-clan.de/entcontrol.html

    Quote:
    Originally Posted by DaRk56 View Post
    Great plugin
    Thanks ^^
    LeGone is offline
    uK4160
    Junior Member
    Join Date: Jan 2011
    Old 05-16-2011 , 04:04   Re: [ANY] Ent-Control
    Reply With Quote #5

    You are truly a god ^^

    Just wondering if there is away to spawn climbable ladders.

    Please pm me if this is able to be done. (I would pay for this sort of project + other small things)

    Thanks,

    uK
    uK4160 is offline
    LeGone
    Senior Member
    Join Date: Dec 2006
    Location: Germany
    Old 05-16-2011 , 10:49   Re: [ANY] Ent-Control
    Reply With Quote #6

    Quote:
    Originally Posted by uK4160 View Post
    You are truly a god ^^

    Just wondering if there is away to spawn climbable ladders.

    Please pm me if this is able to be done. (I would pay for this sort of project + other small things)

    Thanks,

    uK
    I would like to do this, but ... I cannot use func_ladder (or func_useableladder) and I currently donīt know how to make a ladder =(
    LeGone is offline
    Kin2InuYasha
    Member
    Join Date: Nov 2010
    Old 05-17-2011 , 00:28   Re: [ANY] EntControl(like grabbermod) (Updated 2011-05-16 v1.1a)
    Reply With Quote #7

    Great Plugin!!!

    A couple of things,

    an NPC turret killing a bot will cause a server crash. When I attempt to grab something, if the crosshairs are not fixed on a physics object, it will propel me in whatever direction I am looking. (It's kind of cool like high jump, but inconvenient at times)

    Also, could you add static props? and maybe a .txt file so the server owner can add/remove props?

    If that can't be done, maybe cleaning up the prop list a bit? It looks greek.

    This is an awesome plugin though, just some constructive criticism.

    Good job!!

    Last edited by Kin2InuYasha; 05-17-2011 at 00:41.
    Kin2InuYasha is offline
    LeGone
    Senior Member
    Join Date: Dec 2006
    Location: Germany
    Old 05-17-2011 , 09:38   Re: [ANY] EntControl(like grabbermod) (Updated 2011-05-16 v1.1a)
    Reply With Quote #8

    Quote:
    Originally Posted by Kin2InuYasha View Post
    Great Plugin!!!
    Thanks ^^

    Quote:
    Originally Posted by Kin2InuYasha View Post
    an NPC turret killing a bot will cause a server crash.
    I tested that ... but it didnīt crash my server

    Quote:
    Originally Posted by Kin2InuYasha View Post
    When I attempt to grab something, if the crosshairs are not fixed on a physics object, it will propel me in whatever direction I am looking. (It's kind of cool like high jump, but inconvenient at times)
    I fixed that with a new cvar:
    sm_entcontrol_grab_self 0/1 // 1 -> player can grab himself

    Quote:
    Originally Posted by Kin2InuYasha View Post
    Also, could you add static props? and maybe a .txt file so the server owner can add/remove props?

    If that can't be done, maybe cleaning up the prop list a bit? It looks greek.
    First ... you can set the new override cvar to something other than "":
    Like: sm_entcontrol_spawn_prop_override "prop_physics"

    Or use the new implemented config-file:

    Code:
    "EntControl"
    {
        "Spawns"
        {
            "Props"
            {
                "train1"
                {
                    "model"    "models/props_trainstation/train001.mdl"
                    "entity" "phys_magnet"
                    "height" "100"
                }
                "train2"
                {
                    "model"    "models/props_trainstation/train002.mdl"
                    "entity" "phys_magnet"
                    "height" "100"
                }
                "train3"
                {
                    "model"    "models/props_trainstation/train003.mdl"
                    "entity" "phys_magnet"
                    "height" "100"
                }
                "soda"
                {
                    "model"    "models/props_interiors/VendingMachineSoda01a.mdl"
                    "entity" "phys_magnet"
                    "height" "10"
                }
                "roller"
                {
                    "model"    "models/roller_spikes.mdl"
                    "entity" "phys_magnet"
                    "height" "10"
                }
                "infospeech"
                {
                    "model"    "models/extras/info_speech.mdl"
                    "entity" "phys_magnet"
                    "height" "10"
                }
                "tree"
                {
                    "model"    "models/props_foliage/oak_tree01.mdl"
                    "entity" "phys_magnet"
                    "height" "10"
                }
                "container"
                {
                    "model"    "models/props_wasteland/cargo_container01b.mdl"
                    "entity" "phys_magnet"
                    "height" "50"
                }
                "dryer_box"
                {
                    "model"    "models/props/cs_assault/dryer_box.mdl"
                    "entity" "phys_magnet"
                    "height" "10"
                }
                "strider"
                {
                    "model"    "models/Combine_Strider.mdl"
                    "entity" "phys_magnet"
                    "height" "30"
                }
                "radiator"
                {
                    "model"    "models/props_interiors/Radiator01a.mdl"
                    "entity" "phys_magnet"
                    "height" "20"
                }
            }
            
            "Light"
            {
                "entity" "light_dynamic"
                "input1" "TurnOn"
    
                "_light"
                {
                    "string" "100 255 100 255"
                }
                "brightness"
                {
                    "float" 5.0
                }
                "spotlight_radius"
                {
                    "float" 255.0
                }
                "distance"
                {
                    "float" 255.0
                }
                "style"
                {
                    "string" "6"
                }
            }
            
            "SmokeEffect"
            {
                "entity" "env_smokestack"
                "input1" "TurnOn"
                "deleteafter" "5" // Delete after 5 Seconds
                
                "BaseSpread"
                {
                    "string" "20"
                }
                "SpreadSpeed"
                {
                    "string" "10"
                }
                "Speed"
                {
                    "string" "30"
                }
                "StartSize"
                {
                    "string" "10"
                }
                "EndSize"
                {
                    "string" "100"
                }
                "Rate"
                {
                    "string" "40"
                }
                "JetLength"
                {
                    "string" "100"
                }
                "SmokeMaterial"
                {
                    "string" "particle/SmokeStack.vmt"
                }
                "RenderColor"
                {
                    "string" "255 0 0"
                }
                "Renderamt"
                {
                    "string" "100"
                }
                
            }
            
            "Hostage"
            {
                "entity" "hostage_entity"
            }
    
            "Fire"
            {
                "entity" "env_fire"
                "input1" "StartFire"
    
                "firesize"
                {
                    "string" "128"
                }
                "fireattack"
                {
                    "string" "1"
                }
                "firetype"
                {
                    "string" "normal"
                }
                "ignitionpoint"
                {
                    "string" "10"
                }
                "health"
                {
                    "string" "10"
                }
                "damagescale"
                {
                    "string" "5"
                }
                "spawnflags"
                {
                    "string" "128"
                }
            }
            
            "Tesla"
            {
                "entity" "point_tesla"
                "input1" "TurnOn"
                "input2" "DoSpark"
                "height" "20"
    
                "m_flRadius"
                {
                    "float" 200.0
                }
                "m_SoundName"
                {
                    "string" "DoSpark"
                }
                "beamcount_min"
                {
                    "string" "4"
                }
                "beamcount_max"
                {
                    "string" "6"
                }
                "texture"
                {
                    "string" "sprites/physbeam.vmt"
                }
                "m_Color"
                {
                    "string" "255 255 255"
                }
                "thick_min"
                {
                    "float" 10.0
                }
                "thick_max"
                {
                    "float" 11.0
                }
                "lifetime_min"
                {
                    "float" 0.3
                }
                "lifetime_max"
                {
                    "float" 0.3
                }
                "interval_min"
                {
                    "float" 0.1
                }
                "interval_max"
                {
                    "float" 0.2
                }
            }
        }
    }
    Quote:
    Originally Posted by Kin2InuYasha View Post
    This is an awesome plugin though, just some constructive criticism.

    Good job!!
    Thanks for your help ;)
    Plugin updated...

    Last edited by LeGone; 05-17-2011 at 10:04.
    LeGone is offline
    lascage
    Member
    Join Date: Nov 2010
    Old 05-17-2011 , 11:47   Re: [ANY] EntControl(like grabbermod) (Updated 2011-05-17 v1.2)
    Reply With Quote #9

    Can you write a Translation ? French, or other langage ...
    lascage is offline
    Fearts
    ferts of daeth
    Join Date: Oct 2008
    Old 05-17-2011 , 13:15   Re: [ANY] EntControl(like grabbermod) (Updated 2011-05-17 v1.2)
    Reply With Quote #10

    very cool very powerful stuff here good job
    __________________
    Fearts 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 05:42.


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