Raised This Month: $85 Target: $400
 21% 

[ANY] Dev Cmds (1.14) [30-Sep-2020]


Post New Thread Reply   
 
Thread Tools Display Modes
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 09-17-2019 , 21:23   Re: [ANY] Dev Cmds (1.4.1) [28-Jun-2019]
Reply With Quote #21

Oh sorry, NOW I understand, I was mistaken, thank you Silvers.
__________________
Marttt is offline
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Old 10-30-2019 , 17:21   Re: [ANY] Dev Cmds (1.5) [30-Oct-2019]
Reply With Quote #22

Quote:
1.5 (30-Oct-2019)
- Added command "sm_clients" to list client indexes/userids and some other data.
- Added command "sm_weapons" to list your own weapons or that of the target you're aiming at or specified index by command arg.
- Added command "sm_range" to find how far away an object is.
- Added command "sm_near" to list nearby object classnames.
- Added various vector commands provided by "Dragokas": "sm_dist", "sm_distdir", "sm_distfloor", "sm_distroof", "sm_size", "sm_sizee".
- Changed "sm_ent" and "sm_ente" to add more info. Provided by "Marttt".
- Changed "sm_box" laser outlines to use smlib draw box with correct angles matrix rotation. Provided by "disawar1".
- The "sm_box" changes work when the smlib include is present, or defaults to old version, no edits required.
- Various fixes and changes.
Quote:
1.6 (01-Nov-2019)
- Changed "sm_input", "sm_inputent" and "sm_inputme" to accept activator and caller params.
- Fixed commands "sm_ledge", "sm_spit" and "sm_nv" failing with ProcessTargetString. Thanks to "Marttt".
__________________

Last edited by Silvers; 10-31-2019 at 22:20.
Silvers is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine
Old 11-24-2019 , 16:06   Re: [ANY] Dev Cmds (1.7) [02-Nov-2019]
Reply With Quote #23

Can you please link your topic dependency to a "transitional syntax" branch of smlib:
https://github.com/bcserv/smlib/tree...itional_syntax

otherwise it can't be compiled on sm 1.10.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch)
[My plugins] [My tools] [GitHub] [Articles]
Dragokas is offline
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Old 03-02-2020 , 09:11   Re: [ANY] Dev Cmds (1.8) [02-Mar-2020]
Reply With Quote #24

Code:
1.8 (02-Mar-2020)
    Update by "Dragokas":
    - Appended "sm_find" <classname> <maxdist> (2nd argument filters entities located in specified radius).
    - Added command "sm_damage" <client> - to track damage info dealt to this client or by this client. Use -1 or empty to track everybody.
    - (L4D & L4D2) Added command "sm_nospawn" to prevent all types of infected from spawning.
    - (L4D & L4D2) Added command "sm_slayall" to slay all common and special infected and witches.

    Update by "Silvers":
    - Added command "sm_scmd" to execute a server command.
    - Changed command "sm_count" to work better and sort the classnames list.
__________________

Last edited by Silvers; 03-02-2020 at 11:36.
Silvers is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine
Old 03-17-2020 , 12:08   Re: [ANY] Dev Cmds (1.8) [02-Mar-2020]
Reply With Quote #25

PHP Code:
public Action StopAngle(int clientint args)
{
    ...
            
CreateTimer(0.1Time_StopAngledpTIMER_FLAG_NO_MAPCHANGE TIMER_HNDL_CLOSE);

Isn't TIMER_REPEAT required here or something...
Also, missing return Plugin_Handled;

I found sometimes "sm_ice" very requested command.

PHP Code:
RegAdminCmd("sm_ice",        CmdFreeze,        ADMFLAG_ROOT"<entity> (optional). Freeze / unfreeze aim target or specified entity.");

...

public 
Action CmdFreeze(int clientint args)
{
    
char sEnt[16];
    
int target;
    
    if( 
args )
    {
        
GetCmdArg(1sEntsizeof sEnt);
        
target StringToInt(sEnt);
        if( !
IsValidEntity(target) )
        {
            
PrintToChat(client"Entity %i is invalid."target);
            return 
Plugin_Handled;
        }
    }
    else {
        
target GetClientAimTarget(clientfalse);
        if( 
target )
        {
            
PrintToChat(client"Entity is not aimed.");
            return 
Plugin_Handled;
        }
    }
    
    if ( !
HasEntProp(targetProp_Send"movetype") )
    {
        
PrintToChat(client"Entity %i cannot be freezed."target);
    }
    else {
        
int mt GetEntProp(targetProp_Send"movetype");
        
        if ( 
mt == view_as<int>(MOVETYPE_NONE) )
        {
            
SetEntProp(targetProp_Send"movetype"MOVETYPE_WALK);
            
PrintToChat(client"Entity %i is un-freezed."target);
        }
        else {
            
SetEntProp(targetProp_Send"movetype"MOVETYPE_NONE);
            
PrintToChat(client"Entity %i is freezed."target);
        }
    }
    return 
Plugin_Handled;

I noticed sourcemod already has sm_freeze in funcommands.sp, but it is not convenient:
Code:
sm_freeze <#userid|name> [time]
- it does not allow aim target
- it does not allow target non-client entity
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch)
[My plugins] [My tools] [GitHub] [Articles]
Dragokas is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine
Old 03-17-2020 , 20:26   Re: [ANY] Dev Cmds (1.8) [02-Mar-2020]
Reply With Quote #26

Also, suggest to update sm_anim with

PHP Code:
RegAdminCmd("sm_anim",            CmdAnim,        ADMFLAG_ROOT"<sequence> (optional). Show aimed entities animation sequence number (for 6 * 0.5 seconds) or your own if not aimed. Optionally, it can set sequence.");

...

public 
Action CmdAnim(int clientint args)
{
    
int target GetClientAimTarget(clientfalse);
    
    if ( 
target )
    {
        
target client;
    }
    
    if ( !
HasEntProp(targetProp_Send"m_nSequence") )
    {
        
PrintToChat(client"%i entity doesn't have m_nSequence property!"target);
        return 
Plugin_Handled;
    }
    
    if ( 
args )
    {
        
char sTemp[16];
        
GetCmdArg(1sTempsizeof sTemp);
        
int iSeq StringToInt(sTemp);
        
SetEntProp(targetProp_Send"m_nSequence"iSeq);
        return 
Plugin_Handled;
    }
    
    
CreateTimer(0.5tmrAnimEntIndexToEntRef(target), TIMER_REPEAT);
    return 
Plugin_Handled;
}

public 
Action tmrAnim(Handle timerany targetRef)
{
    static 
int animCount;
    
animCount++;
    
int target EntRefToEntIndex(targetRef);
    if( 
animCount <= && (target != INVALID_ENT_REFERENCE) )
    {
        
int seq GetEntProp(targetProp_Send"m_nSequence");
        
PrintToChatAll("[SM] %i Anim: %d"targetseq);
        return 
Plugin_Continue;
    }
    
animCount 0;
    return 
Plugin_Stop;

allowing to see other (aimed) entities' anim. seq, not only client itself.
And optionally set the sequence.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch)
[My plugins] [My tools] [GitHub] [Articles]
Dragokas is offline
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Old 03-17-2020 , 20:43   Re: [ANY] Dev Cmds (1.8) [02-Mar-2020]
Reply With Quote #27

Nice thank you, good ideas will add changes. Both features which I've wanted but end up using nb_stop or editing simple test plugin to retrieve 3rd party sequences.
__________________
Silvers is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine
Old 03-18-2020 , 10:32   Re: [ANY] Dev Cmds (1.8) [02-Mar-2020]
Reply With Quote #28

Also, when I !halt, then disconnect the server (as the only user) then, connect again, sb_stop ConVar is automatically reset to 0 for me, but plugin still thinking it is 1. So after round start I forced to enter !halt command twice to stop the bots.

OnMapStart() is not called in my case:
Quote:
L 03/18/2020 - 10:171: EVENT_HAPPENED ---> "player_disconnect". Client: 1 (тШг Drakoshka тШг). Team: 2
L 03/18/2020 - 10:171: {Forward} OnClientDisconnect. Client: 1. InGame? 1
L 03/18/2020 - 10:171: EVENT_HAPPENED :::: "player_connect"
L 03/18/2020 - 10:171: {Forward} OnClientConnect. Client: 5. rejectmsg: . Maxlen: 255
L 03/18/2020 - 10:171: {Forward} OnClientConnected. Client: 5
L 03/18/2020 - 10:171: {Forward} OnClientAuthorized. Client: 5, BOT
L 03/18/2020 - 10:171: {Forward} OnClientPutInServer. Client: 5 (), team: 0
L 03/18/2020 - 10:171: {Forward} OnClientPreAdminCheck. Client: 5
L 03/18/2020 - 10:171: {Forward} OnClientPostAdminFilter. Client: 5
L 03/18/2020 - 10:171: {Forward} OnClientPostAdminCheck. Client: 5
L 03/18/2020 - 10:171: {Forward} OnClientSettingsChanged. Client: 5
L 03/18/2020 - 10:171: EVENT_HAPPENED :::: "player_activate"
L 03/18/2020 - 10:171: EVENT_HAPPENED ---> "player_team"
L 03/18/2020 - 10:171: EVENT_HAPPENED ---> "item_pickup"
...
L 03/18/2020 - 10:174: EVENT_HAPPENED :::: "round_start"
so this part of reset code is not executed:
PHP Code:
public void OnMapStart()
{
...
        
g_bHalt false
and g_bHalt remains true.

I would suggest to do something like:
PHP Code:
public Action CmdHalt(int clientint args)
{
    if( 
FindConVar("sb_stop").IntValue == 
for now. I dunno, maybe something specific to my settings only. I'm using:
Code:
sm_cvar sb_all_bot_team 1
sm_cvar sv_hibernate_when_empty 1
together with command buffer fix.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch)
[My plugins] [My tools] [GitHub] [Articles]
Dragokas is offline
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Old 03-19-2020 , 09:37   Re: [ANY] Dev Cmds (1.9) [19-Mar-2020]
Reply With Quote #29

All changes added. Thanks.

Code:
1.9 (19-Mar-2020)
    Update with changes provided by "Dragokas":
    - Added command "sm_ice" to freeze any client/entity from moving.
    - Changed command "sm_anim" to allow getting the sequence for a specified entity.
    - Fixed command "sm_stopang" from not repeating.
    - Fixed commands "sm_halt", "sm_hold" and "sv_cheats" from not accurately detecting the cvar setting being changed.
Code:
1.10 (25-Mar-2020)
    - Changed "sm_range" to add an optional arg for specifying an entity.
    - Fixed command "sm_cheats" not toggling "sv_cheats".
    - Some text changes from previously added commands.
__________________

Last edited by Silvers; 03-25-2020 at 10:15.
Silvers is offline
Tonblader
Senior Member
Join Date: Jul 2011
Old 04-17-2020 , 04:56   Re: [ANY] Dev Cmds (1.10) [25-Mar-2020]
Reply With Quote #30

In Listen - Windows Server:
Not work sm_cheats.

] sm_cheats
Can't use cheats now; please exit to main menu and start your own listen server with "map mapname" so that you could enable cheats.
[sv_cheats] enabled!
El cvar 'sv_cheats' del servidor se ha cambiado por 0
Tonblader is offline
Reply


Thread Tools
Display Modes

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 17:21.


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