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

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


Post New Thread Reply   
 
Thread Tools Display Modes
kot4404
Senior Member
Join Date: Mar 2013
Old 03-28-2013 , 10:16   Re: [ANY/CSS] EntControl(like grabbermod) (Updated 2012-12-24 v1.60 dev 4)
Reply With Quote #361

Btw is it possible to spawn npcs like gman in tf2?
Nvm I didn't read everything

Last edited by kot4404; 04-01-2013 at 13:10.
kot4404 is offline
melaf
Senior Member
Join Date: Aug 2011
Old 04-17-2013 , 14:26   Re: [ANY/CSS] EntControl(like grabbermod) (Updated 2012-12-24 v1.60 dev 4)
Reply With Quote #362

After the upgrade CS:S, expansion is not working
Code:
sm exts list
[SM] Displaying 13 extensions:
[01] <FAILED> file "smrcon.ext.2.css.so": /lib32/libm.so.6: version `GLIBC_2.15' not found (required by bin/libvstdlib.so)
[02] CS Tools (1.5.0-dev+3832): CS extended functionality
[03] BinTools (1.5.0-dev+3832): Low-level C/C++ Calling API
[04] SDK Tools (1.5.0-dev+3832): Source SDK Tools
[05] Top Menus (1.5.0-dev+3832): Creates sorted nested menus
[06] Client Preferences (1.5.0-dev+3832): Saves client preference settings
[07] SQLite (1.5.0-dev+3832): SQLite Driver
[08] SDK Hooks (1.5.0-dev+3832): Source SDK Hooks
[09] <FAILED> file "entcontrol.ext.so": /lib32/libm.so.6: version `GLIBC_2.15' not found (required by bin/libvstdlib.so)
[10] DHooks (1.0.12-alpha): Allows basic dynamic hooks
[11] SteamTools (0.8.3): SteamWorks for SourceMod.
[12] GeoIP (1.5.0-dev+3832): Geographical IP information
[13] MySQL-DBI (1.5.0-dev+3832): MySQL driver implementation for DBI
__________________
melaf is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 04-18-2013 , 07:47   Re: [ANY/CSS] EntControl(like grabbermod) (Updated 2012-12-24 v1.60 dev 4)
Reply With Quote #363

Have not used this plugin in a long while, but im pretty sure you do not need the extension, as it monly allows you to get button outputs or smething like that. Most things will function fine without it. It is optional.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 05-10-2013 , 07:35   Re: [ANY/CSS] EntControl(like grabbermod) (Updated 2012-03-01 v1.60)
Reply With Quote #364

Hey, NPCs of this plugin continue working well?

Quote:
Originally Posted by Franc1sco View Post
I love the NPCs of this mod (Unique NPCs compatible with linux )


You can add a natives (for developers) for spawn NPCs please?
Ok, if nobody will do it, then I will do it myself because currently no exist other extension or plugin (for linux) to make NPCs appear, right?
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 05-11-2013 , 08:09   Re: [ANY/CSS] EntControl(like grabbermod) (Updated 2012-12-24 v1.60 dev 4)
Reply With Quote #365

The plugin doesnt close handles on some traces or kvs, someone should fix that. Also, some of the loops do not compare <= maxclients, so some players get skipped. Entities are not referenced, so there are a lot of errors, specifically when they are destroyed, ot turn into scripted scenes in tf2.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Dim_oK
AlliedModders Donor
Join Date: Feb 2011
Location: Mother Russia
Old 05-12-2013 , 02:22   Re: [ANY/CSS] EntControl(like grabbermod) (Updated 2012-12-24 v1.60 dev 4)
Reply With Quote #366

Welcome correct plug a lot of errors and server crashes.

L 05/12/2013 - 047:09: [SM] Native "GetEntPropVector" reported: Entity 715 (715) is invalid
L 05/12/2013 - 047:09: [SM] Displaying call stack trace for plugin "entcontrol.smx":
L 05/12/2013 - 047:09: [SM] [0] Line 466, entcontrol.sp::OnPlayerRunCmd()
L 05/12/2013 - 047:10: [SM] Native "GetEntPropVector" reported: Entity 715 (715) is invalid
L 05/12/2013 - 047:10: [SM] Displaying call stack trace for plugin "entcontrol.smx":
L 05/12/2013 - 047:10: [SM] [0] Line 466, entcontrol.sp::OnPlayerRunCmd()
L 05/12/2013 - 047:11: [SM] Native "GetEntPropVector" reported: Entity 715 (715) is invalid
L 05/12/2013 - 047:11: [SM] Displaying call stack trace for plugin "entcontrol.smx":
L 05/12/2013 - 047:11: [SM] [0] Line 466, entcontrol.sp::OnPlayerRunCmd()

And a lot of other bugs...
__________________
Sorry for my bad english

Last edited by Dim_oK; 05-12-2013 at 02:23.
Dim_oK is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 07-24-2013 , 12:48   Re: [ANY/CSS] EntControl(like grabbermod) (Updated 2012-03-01 v1.60)
Reply With Quote #367

Quote:
Originally Posted by Franc1sco View Post
Hey, NPCs of this plugin continue working well?



Ok, if nobody will do it, then I will do it myself because currently no exist other extension or plugin (for linux) to make NPCs appear, right?
Standalone version with NPCs -> https://forums.alliedmods.net/showthread.php?t=221633
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
LeGone
Senior Member
Join Date: Dec 2006
Location: Germany
Old 08-06-2013 , 05:59   Re: [ANY/CSS] EntControl(like grabbermod) (Updated 2012-12-24 v1.60 dev 4)
Reply With Quote #368

Never thought that this plugin would be in use anymore ^^
Sounds like there are a few bugs out there
To fix these bugs as soon as possible, i could use some help. Your help.

There is far too much "chaos" in this thread, so I´m going to post everything into some bugtracking-service (mantisbt;http://exp-clan.com/bugs).
I could need some help with inserting all bugs into that system.
So the best way to let me know about a bug: always post them into the bugtracker

Also someone should make some new documentation. Most of the users don´t even now how many features this plugin has.

Quote:
Originally Posted by kot4404 View Post
I spawned soda in wrong place then I wanted to remove it but when I used "remove entity" on it it kicked me with

I used it in TF2
You selected yourself. That´s why you get kicked
Will be removed in the next version.
Edit:Fixed

Quote:
Originally Posted by friagram View Post
Youncan use entcontrol to spawn the prop, and Save its location to a file, and input those coordinates into stripper. Probably the easiest way.. Aside from making a mod that manipulates props and writes out stripper friendly keyvalues. I stillthink stripper is your best bet because it will let you spawn and manipulate entities sourcemod will not.
Use the second page of the main-plugin-menu. There is a function to "store the entity". This will work with most of the available entities.
Next time you load the map, these entities should appear right away.

Last edited by LeGone; 08-07-2013 at 15:17.
LeGone is offline
LeGone
Senior Member
Join Date: Dec 2006
Location: Germany
Old 08-11-2013 , 10:09   Re: [ANY/CSS] EntControl(like grabbermod, npcs, ...) (Updated 2013-8-9 v1.60 dev 5)
Reply With Quote #369

Extension is working again.
Thanks to pimpinjuice´s navigation-code (https://forums.alliedmods.net/showthread.php?t=211257) the NPCs can now be spawned on random places in maps. I´m using the hiding spots(afaik they´re used by the bots) of the nav-mesh to do so.
CMD: sm_entcontrol_randomnpcs "100" // Will spawn 100 NPCs on round-start

And the natives are:
Quote:
native bool:EC_Nav_Load(); // Load the nav-mesh of the current map
native bool:EC_Nav_CachePositions(); // Store all the positions (for the performance)
native bool:EC_Nav_GetRandomSpawnPosition(Float:rand omSpawnPosition[3]); // Get random position
There is still a bug with the CS:S-Bots: spawning a few (about 15) hostage_entities, than add a bot, will result in a crash.
This has nothing to do with the entcontrol plugin. Here is my test-plugin.
If you want to reproduce the error:
Start a server (bot_quota 0), write the cmd "hostages", then write "add_bot".
This will result in a crash. I´m yet too stupid to understand, why this is happing. If someone knows more about this issue, please tell me what I´m doing wrong ...

Code:
#include <sourcemod>
#include <sdktools>

public Plugin:myinfo = 
{
    name = "HostageCrash",
    author = "LeGone",
    description = "HostageCrash",
    version = SOURCEMOD_VERSION,
    url = "http://www.exp-clan.com/"
};

public OnPluginStart()
{
    RegConsoleCmd("hostages", Command_Test);
}

public hostage_spawn(Float:pos[3])
{
    new hostage = CreateEntityByName("hostage_entity");
    TeleportEntity(hostage, pos, NULL_VECTOR, NULL_VECTOR);
    DispatchSpawn(hostage);
}

public Action:Command_Test(client, args)
{
    // Get Position
    new Float:pos[3];
    
    new ent=-1, count=0;
    while ((ent = FindEntityByClassname(ent, "info_player_terrorist")) != -1)  
    {
        count++;
        if (count == 20) // Change to see where the limit is
            break;
        
        GetEntPropVector(ent, Prop_Send, "m_vecOrigin", pos);
        hostage_spawn(pos);
    }
    
    // de_dust -> 15
    // cs_assault -> 8 + 4 = 12
    // cs_office -> 10 + 4 = 14
}
__________________
Want to control Entities? Spawn NPCs? Create Portals?
EntControl

Last edited by LeGone; 08-11-2013 at 17:20.
LeGone is offline
LeGone
Senior Member
Join Date: Dec 2006
Location: Germany
Old 08-14-2013 , 10:50   Re: [ANY/CSS] EntControl(like grabbermod, npcs, ...) (Updated 2013-8-14 v1.60 dev 6)
Reply With Quote #370

Updated ^^
This should help deathmatch-plugin-makers to find random spawn-points

Code:
/* 
    ------------------------------------------------------------------------------------------
    EntControl::NativeSamples::RandomPlayerSpawnPlaces
    by Raffael 'LeGone' Holz
    
    This sample demonstrates the ability, to spawn players on random spawnplaces
    using the nav-mesh. There is no need to create extra-playerstarts this way.
    ------------------------------------------------------------------------------------------
*/

#include <sourcemod>
#include <sdktools>
#include <entcontrol>

new bool:navMeshLoaded = false;

public OnPluginStart()
{
    HookEvent("player_spawn", OnPlayerSpawn);
    RegAdminCmd("sm_teletoranpos", Command_TeleportToRandomPos, ADMFLAG_GENERIC);
}

public OnEventShutdown()
{
    UnhookEvent("player_spawn", OnPlayerSpawn);
}

/* 
    ------------------------------------------------------------------------------------------
    OnMapStart
    Store all the positions once. Only if there is a valid navmesh.
    ------------------------------------------------------------------------------------------
*/
public OnMapStart()
{
    // Load the nav-mesh of the current map
    if (EC_Nav_Load())
    {
        // Cache positions
        if (EC_Nav_CachePositions())
        {
            // Positions stored
            navMeshLoaded = true;
        }
        else
        {
            PrintToServer("Unable to cache positions!");
        }
    }
    else
    {
        PrintToServer("No Navigation loaded! Make sure the .nav is not packed in one of the .vpk-files.");
    }
}

public OnMapEnd()
{
    navMeshLoaded = false;
}

/* 
    ------------------------------------------------------------------------------------------
    OnPlayerSpawn
    Teleport player to a "random" spawn position after has been spawned
    ------------------------------------------------------------------------------------------
*/
public Action:OnPlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{
    new client = GetClientOfUserId(GetEventInt(event, "userid"));

    TeleToRandomPosition(client);
    
    return (Plugin_Continue);
}

public TeleToRandomPosition(client)
{
    new Float:position[3];
    if (navMeshLoaded && EC_Nav_GetNextHidingSpot(position))
    {
        position[2] += 10.0;
        
        TeleportEntity(client, position, NULL_VECTOR, Float:{10.0, 10.0, 10.0});
        
        new checksum = RoundToFloor(position[0] + position[1] + position[2]);
        
        new Handle:data;
        CreateDataTimer(0.1, CheckStuckTimer, data, TIMER_FLAG_NO_MAPCHANGE);
        WritePackCell(data, client);
        WritePackCell(data, checksum);
    }
}

public Action:CheckStuckTimer(Handle:Timer, Handle:data)
{
    new Float:position[3];
    
    ResetPack(data);
    new client = ReadPackCell(data);
    new checksum = ReadPackCell(data);

    GetEntPropVector(client, Prop_Send, "m_vecOrigin", position);
    
    new checksumNow = RoundToFloor(position[0] + position[1] + position[2]);
    
    checksumNow = checksum-checksumNow;
    
    if (checksumNow > -1 && checksumNow < 1)
        TeleToRandomPosition(client);
    
    return (Plugin_Stop);
}

/* 
    ------------------------------------------------------------------------------------------
    COMMAND_TELEPORTTORANDOMPOS
    THis function will spawn a zombie on the players-aim-position
    ------------------------------------------------------------------------------------------
*/
public Action:Command_TeleportToRandomPos(client, args)
{
    TeleToRandomPosition(client);

    return (Plugin_Handled);
}
__________________
Want to control Entities? Spawn NPCs? Create Portals?
EntControl

Last edited by LeGone; 08-14-2013 at 10:52.
LeGone 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 08:59.


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