GoldenEye: Source Forums

  • April 20, 2024, 12:14:14 am
  • Welcome, Guest
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Question for devs regarding a 3.1 change  (Read 5930 times)

0 Members and 1 Guest are viewing this topic.

psychonic

  • Agent
  • *
  • Posts: 15
  • Reputation Power: 0
  • psychonic has no influence.
  • Offline Offline
Question for devs regarding a 3.1 change
« on: February 24, 2009, 03:34:18 pm »

In the changelog for what's coming, I see this

Quote
Added HLStatsX server messages for player hurt and gun fired

Is this done through the "modevents", and if so, would a dev be able to post the modevents.res file from 3.1 or pm it to me so that I can start on a weapon_logging plugin for ges beta 3.1 now instead of waiting until it is able to be released?
Logged
HLstatsX Community Edition - Free HLstatsX version supporting GE:S and much more
http://www.hlxcommunity.com

Doc.NO

  • 00 Agent
  • ***
  • Posts: 836
  • Reputation Power: 0
  • Doc.NO hides in shadows.
  • Offline Offline
Re: Question for devs regarding a 3.1 change
« Reply #1 on: February 24, 2009, 08:50:36 pm »

Hey psychonic! It's nice to see someone interested in adding GES capability in his software. Thanks a lot for that.

Yes this is done with modevents. The two new added events are as follow:

Quote
   "player_hurt"
   {
      "userid"   "local" // user ID who was hurt
      "attacker"   "local" // user ID who attacked
      "weapon"   "local" // weapon name attacker used
      "health"   "local" // health remaining
      "armor"      "local" // armor remaining
      "damage"   "local" // how much damage in this attack
      "hitgroup"   "local" // what hitgroup was hit
   }

   "player_shoot" // player shoot his weapon
   
   {
         "userid"   "local" // user ID on server
      "weapon"   "local" // weapon name
      "mode"      "local"    // weapon mode [0 normal, 1 aimed]
   }

I would also suggest you to use, if possible, player_changeident (which is already in modevents in 3.01) to get a role page in HLX CE.

If you need any help, fire me a PM, might be able to help you :)
« Last Edit: February 24, 2009, 09:50:27 pm by Doc.NO »
Logged

psychonic

  • Agent
  • *
  • Posts: 15
  • Reputation Power: 0
  • psychonic has no influence.
  • Offline Offline
Re: Question for devs regarding a 3.1 change
« Reply #2 on: February 24, 2009, 09:53:37 pm »

Thank you for this, and I shall see about the roles.

For the weapon property on the above two events, will that be the same name the weapons have in the game logs?

Also, are you able to provide a list of possible values for the ident property on the player_changeident? (this will save me a little bit of time as I have to find them all to add to the system before they are recognized)
Logged
HLstatsX Community Edition - Free HLstatsX version supporting GE:S and much more
http://www.hlxcommunity.com

Doc.NO

  • 00 Agent
  • ***
  • Posts: 836
  • Reputation Power: 0
  • Doc.NO hides in shadows.
  • Offline Offline
Re: Question for devs regarding a 3.1 change
« Reply #3 on: February 24, 2009, 10:09:49 pm »

For the weapon property on the above two events, will that be the same name the weapons have in the game logs?
This is what I have:

Quote
weapon_slappers
weapon_knife
weapon_knife_throwing
weapon_pp7
weapon_pp7_silenced
weapon_dd44
weapon_klobb
weapon_cmag
weapon_kf7
weapon_zmg
weapon_d5k
weapon_d5k_silenced
weapon_phantom
weapon_AR33
weapon_rcp90
weapon_shotgun
weapon_auto_shotgun
weapon_sniper_rifle
weapon_grenade
weapon_timedmine
weapon_proximitymine
weapon_remotemine
weapon_golden_gun
weapon_silver_pp7
weapon_golden_gun
Note: player_shoot is not triggered with mines (remote, prox, timed) grenades, slap, knifes (hunting/throwing).


Also, are you able to provide a list of possible values for the ident property on the player_changeident?

Quote
jaws // Jaws
bond // Bond
boris // Boris
Mayday // May Day
Mishkin // Mishkin
oddjob // Oddjob
ourumov // Ourumov
samedi // Samedi
valentin // Valentin
May Day and Miskin have cap, others not.
« Last Edit: February 24, 2009, 10:42:08 pm by Doc.NO »
Logged

Kujo

  • Tester
  • Secret Agent
  • **
  • Posts: 67
  • Reputation Power: 0
  • Kujo has no influence.
  • Offline Offline
Re: Question for devs regarding a 3.1 change
« Reply #4 on: February 24, 2009, 10:57:12 pm »

On a somewhat similar note, while looking through weapon_sets_custom.txt, i saw the example weaponset as follows:

Quote
//   "example"
//   {
//      "print_name"   "Example Weapon Set"
//      "weapons"
//      {
//         "1"   "D5K"
//         "2"   "KLOBB"
//         "3"   "DD44"
//         "4"   "PP7"
//         "5"   "GRENADE_LAUNCHER"
//         "6"   "ROCKET_LAUNCHER"
//         "7"   "REMOTE_MINE"
//      }
//   }

REMOTE_MINE should be REMOTEMINE

Not a huge deal, but might confuse someone at some point ( almost confused me :P ).
« Last Edit: February 24, 2009, 10:59:37 pm by Gigawatts »
Logged

psychonic

  • Agent
  • *
  • Posts: 15
  • Reputation Power: 0
  • psychonic has no influence.
  • Offline Offline
Re: Question for devs regarding a 3.1 change
« Reply #5 on: February 24, 2009, 11:06:19 pm »

Great, thank you.
Logged
HLstatsX Community Edition - Free HLstatsX version supporting GE:S and much more
http://www.hlxcommunity.com

Doc.NO

  • 00 Agent
  • ***
  • Posts: 836
  • Reputation Power: 0
  • Doc.NO hides in shadows.
  • Offline Offline
Re: Question for devs regarding a 3.1 change
« Reply #6 on: February 24, 2009, 11:49:05 pm »

Gigawatts, this is a known bug, and is fixed in 3.1. This has nothing to do with weapon logging though :P
Logged

killermonkey

  • GES Programmer
  • Retired Lead Developer
  • GE:S Fanatic
  • *
  • Posts: 5,473
  • Reputation Power: 346
  • killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!
  • Offline Offline
    • DroidMonkey Apps
Re: Question for devs regarding a 3.1 change
« Reply #7 on: February 25, 2009, 02:20:17 am »

A little sidenote about the player_shoot message... I didn't fire this message on mine, nades, knifes, etc. because any successful strike with those would be factored into the player_killed message. Since I believe that you intend to use the player_shoot message as a simple accuracy counter then this will suffice quite well. If not, please let me know where else i should fire this message (and SOON).

Logged

psychonic

  • Agent
  • *
  • Posts: 15
  • Reputation Power: 0
  • psychonic has no influence.
  • Offline Offline
Re: Question for devs regarding a 3.1 change
« Reply #8 on: February 25, 2009, 02:30:48 am »

If not, please let me know where else i should fire this message (and SOON).
Nope, this is perfect. Thank you!

Though i do have a question about player_changeident. Is the playerid property userid? or clientid?
Logged
HLstatsX Community Edition - Free HLstatsX version supporting GE:S and much more
http://www.hlxcommunity.com

killermonkey

  • GES Programmer
  • Retired Lead Developer
  • GE:S Fanatic
  • *
  • Posts: 5,473
  • Reputation Power: 346
  • killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!
  • Offline Offline
    • DroidMonkey Apps
Re: Question for devs regarding a 3.1 change
« Reply #9 on: February 25, 2009, 04:23:25 am »

userid as in 1 -> 32
Logged
Pages: [1]   Go Up