Debriefing > Questions, Help, & How To's

Question for devs regarding a 3.1 change

(1/2) > >>

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


--- Quote ---Added HLStatsX server messages for player hurt and gun fired
--- End quote ---

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?

Doc.NO:
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]
   }
--- End quote ---

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 :)

psychonic:
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)

Doc.NO:

--- Quote from: psychonic on February 24, 2009, 09:53:37 pm ---For the weapon property on the above two events, will that be the same name the weapons have in the game logs?
--- End quote ---
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
--- End quote ---
Note: player_shoot is not triggered with mines (remote, prox, timed) grenades, slap, knifes (hunting/throwing).



--- Quote from: psychonic on February 24, 2009, 09:53:37 pm ---Also, are you able to provide a list of possible values for the ident property on the player_changeident?
--- End quote ---


--- Quote ---jaws // Jaws
bond // Bond
boris // Boris
Mayday // May Day
Mishkin // Mishkin
oddjob // Oddjob
ourumov // Ourumov
samedi // Samedi
valentin // Valentin
--- End quote ---
May Day and Miskin have cap, others not.

Kujo:
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"
//      }
//   }

--- End quote ---

REMOTE_MINE should be REMOTEMINE

Not a huge deal, but might confuse someone at some point ( almost confused me :P ).

Navigation

[0] Message Index

[#] Next page

Go to full version