More Stats Logging.

Request a custom addon/script you would like to see made.

More Stats Logging.

Postby wtfaatp » Thu Apr 28, 2011 7:14 am

I know im bring this back up but im still trying to figure it out from what I understand from the script. And would like to request new stats to be logged.

Current Logging list

gg_levelup - Killed/knifed someone (GAINED LEVEL)
gg_leveldown - Kill in console/Committed Suicide (LOST LEVEL)
gg_knife_steal - Stole a level.
gg_win - Won GG
gg_multi_level - Achieved Multi lvl.


Thing I would like to see added.
gg_level_lost - lost a level from Knife or TK
gg_last_level - Reached last level of GG
gg_multi_win - won the game twice in a row
gg_lowdeaths - Winn gg with no death or below x amount
 



Some that are out there
gg_fast_winner - Win gg in x time
gg_most_lvl_lost - lost the most levels this map.
 
wtfaatp

Private
Private
 
Posts: 80
Joined: Fri Mar 04, 2011 4:21 pm
Steam Friends Name: Darkangel2022000

Re: More Stats Logging.

Postby XE_ManUp » Sat Apr 30, 2011 7:39 am

This is a list of all of the events within GunGame as of right now. gg_level_lost is the same as gg_leveldown. Take note that a "reason" (string) is provided as to "why" the player leveled down. gg_last_level would be easy enough to trigger. Most of what you requested would be more of what I could imagine would be useful in an "extended" set of events that I don't imagine many people using, but easily coded into a custom addon.

//
//=========== (C) Copyright 2008 GunGame 5 All rights reserved. ===========
//
// Events triggered by GunGame mod version 1.0.432
//
// No spaces in event names, max length 32
// All strings are case sensitive
// total game event byte length must be < 1024
//
// valid data key types are:
//   none   : value is not networked
//   string : a zero terminated string
//   bool   : unsigned int, 1 bit
//   byte   : unsigned int, 8 bit
//   short  : signed int, 16 bit
//   long   : signed int, 32 bit
//   float  : float, 32 bit

"gungame_events"
{
    "gg_levelup"
    {
        "attacker"  "short"     // The userid of the player that leveled up
        "leveler"   "short"     // The userid of the player that is leveling
        "userid"    "short"     // The userid of victim
        "old_level" "byte"      // The old level of the player that leveled up
        "new_level" "byte"      // The new level of the player that leveled up
        "reason"    "string"    // The reason for the level up
    }
    "gg_leveldown"
    {
        "userid"    "short"     // The userid of player that is leveling down
        "leveler"   "short"     // The userid of the player that is leveling
        "attacker"  "short"     // The userid of the attacker
        "old_level" "byte"      // The old level of the player that leveled down
        "new_level" "byte"      // The new level of the player that leveled down
        "reason"    "string"    // The reason for the level down
    }
    "gg_knife_steal"
    {
        "attacker"          "short" // The userid of the player that stole the level
        "attacker_level"    "byte"  // The new level of the player that stole the level
        "userid"            "short" // The userid of victim
        "userid_level"      "byte"  // The new level of the victim
    }
    "gg_multi_level"
    {
        "userid"    "short" // The userid of the player that multi leveled
        "leveler"   "short" // The userid of the player that is leveling
    }
    "gg_new_leader"
    {
        "userid"        "short"     // The userid of the player that became the new leader
        "leveler"       "short"     // The userid of the player that leveled up to become the new leader
        "leaders"       "string"    // String of current leaders' userids separated by "," e.g. "2,7,9"
        "old_leaders"   "string"    // String of old userids separated by "," e.g. "2,7,9"
        "leader_level"  "short"     // The current leader's level
    }
    "gg_tied_leader"
    {
        "userid"        "short"     // The userid of the player that tied the leader(s)
        "leveler"       "short"     // The userid of the player that leveled up to tie then leaders
        "leaders"       "string"    // String of current leaders' userids separated by "," e.g. "2,7,9"
        "old_leaders"   "string"    // String of old leaders' userids separated by "," e.g. "2,7,9"
        "leader_level"  "short"     // The current leader's level
    }
    "gg_leader_lostlevel"
    {
        "userid"        "short"     // The userid of the leader that lost a level
        "leveler"       "short"     // The userid of the player that is leveling
        "leaders"       "string"    // String of current leaders' userids separated by "," e.g. "2,7,9"
        "old_leaders"   "string"    // String of old leaders' userids separated by "," e.g. "2,7,9"
        "leader_level"  "short"     // The current leader's level
    }
    "gg_leader_disconnect"
    {
        "userid"        "short"     // The userid of the leader that disconnected
        "leaders"       "string"    // String of current leaders' userids separated by "," e.g. "2,7,9"
        "old_leaders"   "string"    // String of old leaders' userids separated by "," e.g. "2,7,9"
        "leader_level"  "short"     // The current leader's level
    }
    "gg_start"
    {
        // Fires at the end of the warmup round
        // Fires on es_map_start if there is no warmup round
    }
    "gg_vote"
    {
        // Fires when a vote starts
    }
    "gg_win"
    {
        "attacker"  "short"     // The userid of the player that won
        "winner"    "short"     // The userid of the player that won
        "userid"    "short"     // The userid of the victim that "gave up" the win
        "loser"     "short"     // The userid of the victim that "gave up" the win
        "round"     "bool"      // 1 if the winner of the round, 0 if the winner of the map
    }
    "gg_map_end"
    {
        // Fires at the end of a map when there is no winner
    }
    "gg_load"
    {
        // Fires when gungame is successfully loaded
    }
    "gg_unload"
    {
        // Fires when gungame is successfully unloaded
    }
    "gg_addon_loaded"
    {
        "addon"     "string"    // The name of the addon that was loaded
        "type"      "string"    // The type of addon that was loaded (included or custom)
    }
    "gg_addon_unloaded"
    {
        "addon"     "string"    // The name of the addon that was unloaded
        "type"      "string"    // The type of addon that was unloaded (included or custom)
    }
}
XE_ManUp

Site Admin
Site Admin
 
Posts: 662
Joined: Sat Sep 06, 2008 3:36 am

Postby wtfaatp » Sat Apr 30, 2011 6:03 pm

My thing with the "gg_knife_steal" and "gg_level_down" or "gg_level_lost" is that when YOU kill your self in any manner. (World kill, Explode or kill in console) Should not be the same as (Killing a teammate or Being knifed.)

Also so if I add "gg_new_leader" to the stats_logging.txt That means i could use it to give points to anyone who becomes the new "Leader?".

I obviously want this all for Hlx:Ce and "GameMe".
wtfaatp

Private
Private
 
Posts: 80
Joined: Fri Mar 04, 2011 4:21 pm
Steam Friends Name: Darkangel2022000

Postby satoon101 » Sun May 01, 2011 2:24 am

It should be fairly easy to make a Custom Addon for gg_bonus_events (or whatever would be a good name for it). I'll do some work on this in the next couple of weeks. Here is an example of just such a Custom Addon I created previously:
viewtopic.php?f=71&t=1543

Satoon
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm



Return to Script Requests

Who is online

Users browsing this forum: No registered users and 3 guests