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

[CS:GO] All fields from events


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 11-15-2018 , 05:43   [CS:GO] All fields from events
Reply With Quote #1

After today's update, when someone disconnects, player_death will be called.
How can i see if there's a new field in player_death (maybe "disconnect") besides userid, attacker, assister etc.
Ilusion9 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-15-2018 , 05:56   Re: [CS:GO] All fields from events
Reply With Quote #2

*edit
sm_cvar net_showevents 2

Spoiler




http://blog.counter-strike.net/index.php/2018/11/21495/

Quote:
Release Notes for 11/14/2018

2018.11.14 -*

[Skill Groups Sticker Capsule]
– Introducing Skill Groups Sticker Capsule featuring 9 designs from community artist daniDem.

[Misc]
– Ammo panel hides burst and bullet icons in “simplified” mode.
– Game icons hud (bomb / hostage icons) respects cl_drawhud and cl_draw_only_deathnotices.

– Human players now go through the death sequence when they disconnect, dropping their items instead of taking them with them into the ether. Server operators can disable this feature with the convar mp_disconnect_kills_players 0. If you find a way to abuse this feature to get extra items / money in Competitive, please send an email to [email protected] with the subject “Player disconnect exploit”.

[Maps]
– Added loading screen credits for Biome and Subzero.

SUBZERO:
– Stability fix for client precipitation rendering
– Simplified B Upper
– Made floor in Vent flat
– Made pit brighter
– Mid entrance for T’s narrowed
– Widened Mid
– Improved clipping
– General optimizations
__________________
Do not Private Message @me

Last edited by Bacardi; 11-15-2018 at 06:12.
Bacardi is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 11-15-2018 , 06:08   Re: [CS:GO] All fields from events
Reply With Quote #3

I need to see if there's a new field, not to disable that feature.
It's for my rank plugin and maybe for other scripters.

Checking if attacker is world or attacker == victim is not ideal for disconnect kills.

Last edited by Ilusion9; 11-15-2018 at 06:08.
Ilusion9 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-15-2018 , 06:27   Re: [CS:GO] All fields from events
Reply With Quote #4

Code:
event player_disconnect
OnClientDisconnect(int client)
event player_death
Game will not start until both teams have players.
OnClientDisconnect_Post(int client)
Dropped Bacardi from server: Disconnect
how about this way ?
PHP Code:
public void OnPluginStart()
{
    
HookEvent("player_disconnect"player_death);
    
HookEvent("player_death"player_death);

}


public 
void player_death(Event event, const char[] namebool dontBroadcast)
{
    static 
disconnect[MAXPLAYERS+1];
    
int userid event.GetInt("userid");
    
int client GetClientOfUserId(userid);

    if(
StrEqual(name"player_disconnect"false))
    {
        
disconnect[client] = userid;
        return;
    }

    
bool disconnecting disconnect[client] == userid;
    
disconnect[client] = 0// reset

    
if(disconnectingPrintToServer("player_death disconnect! %N"client);

__________________
Do not Private Message @me

Last edited by Bacardi; 11-15-2018 at 06:28.
Bacardi is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 11-17-2018 , 05:22   Re: [CS:GO] All fields from events
Reply With Quote #5

It's a solution. I'm tired of tricks like that. I asked valve to create a new field for diconnect deaths. We have a "disconnect" field in player_team, why not for player_death?
Ilusion9 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-17-2018 , 05:55   Re: [CS:GO] All fields from events
Reply With Quote #6

Quote:
Originally Posted by Ilusion9 View Post
.... I'm tired of tricks like that. ...
welcome to SourceMod scripting section
__________________
Do not Private Message @me
Bacardi 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 19:57.


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