Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here

NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Author Topic: [CoD4-PB] General information that might come in handy  (Read 9612 times)

Offline CmdrKeen

  • Newbie
  • *
  • Posts: 2
    • Skull and Bones
[CoD4-PB] General information that might come in handy
« on: January 05, 2009, 08:14:49 PM »
I've been lurking on this forum for a while and have been using B3 on my CoD4
server for a while now. Thanks for making my life, admin-wise, easier.
To give something back I'm posting some information I discovered in finetuning
my bot.

Some problems I've been having is having to wait until someone violates the no
martyrdom rule or the grenade launcher rule I have put in place on my server.
I've been looking for a way to find out if someone has those perks enabled and I
have found the following:

rcon pb_sv_cvarval ui_perk2_selection:
PunkBuster Server: [From #6 6e40(VALID) Kutty] ui_perk2_selection = "151"
PunkBuster Server: [From #1 1526(VALID) Cmdr. Keen] ui_perk2_selection = ""
PunkBuster Server: [From #13 78d8(VALID) Ledernacke] ui_perk2_selection = ""
PunkBuster Server: [From #10 58b9(VALID) UL|Doc Holliday] ui_perk2_selection = ""
PunkBuster Server: [From #3 b40f(VALID) Sweet Pussy] ui_perk2_selection = ""
PunkBuster Server: [From #9 ee5d(VALID) Raven7] ui_perk2_selection = ""
PunkBuster Server: [From #4 bdfa(VALID) ikkes] ui_perk2_selection = ""
PunkBuster Server: [From #14 5f2d(VALID) --__Tias__--] ui_perk2_selection = ""
PunkBuster Server: [From #12 67a9(VALID) Cassis] ui_perk2_selection = ""
PunkBuster Server: [From #11 60c7(VALID) SharpShooter] ui_perk2_selection = ""
PunkBuster Server: [From #5 e45a(VALID) LrdGanja] ui_perk2_selection = "160"
PunkBuster Server: [From #8 9095(VALID) |*GJ*|chriss233] ui_perk2_selection = ""
PunkBuster Server: [From #7 ade2(VALID) XxDiAbLoxX] ui_perk2_selection = ""


rcon pb_sv_cvarval ui_perk1_slot:
PunkBuster Server: [From #14 5f2d(VALID) --__Tias__--] ui_perk1_slot = ""
PunkBuster Server: [From #4 893b(VALID) [ESPB] Eismann] ui_perk1_slot = ""
PunkBuster Server: [From #5 e45a(VALID) LrdGanja] ui_perk1_slot = "185"
PunkBuster Server: [From #3 4d2c(VALID) |DDV|Ebola] ui_perk1_slot = ""
PunkBuster Server: [From #9 02ea(VALID) eSp#Danette] ui_perk1_slot = ""
PunkBuster Server: [From #13 78d8(VALID) Ledernacke] ui_perk1_slot = ""
PunkBuster Server: [From #7 ade2(VALID) XxDiAbLoxX] ui_perk1_slot = ""


It is still unclear to me why these variables are not filled in for each player.
The bitmasks that are contained in the variable can be deciphered using the game
scripts.

When I looked through the game scripts I also found an internal variable called
"scr_perkdebug". This showed me which perks were selected for each user but I
have not managed to get it working again. Perhaps I put my server into developer
mode when testing out these variables by mistake.


For adding extra information to the statistics page you could issue the
following commands:

rcon pb_sv_cvarval ui_stat_rankxp:
PunkBuster Server: [From #12 67a9(VALID) Cassis] ui_stat_rankxp = "125490"
PunkBuster Server: [From #13 78d8(VALID) Ledernacke] ui_stat_rankxp = "4437"
PunkBuster Server: [From #11 60c7(VALID) SharpShooter] ui_stat_rankxp = "47109"
PunkBuster Server: [From #9 02ea(VALID) eSp#Danette] ui_stat_rankxp = "125490"
PunkBuster Server: [From #3 b40f(VALID) Sweet Pussy] ui_stat_rankxp = "125490"
PunkBuster Server: [From #6 6e40(VALID) Kutty] ui_stat_rankxp = "21034"
PunkBuster Server: [From #4 bdfa(VALID) ikkes] ui_stat_rankxp = "125490"
PunkBuster Server: [From #14 5f2d(VALID) --__Tias__--] ui_stat_rankxp = "125490"
PunkBuster Server: [From #7 ade2(VALID) XxDiAbLoxX] ui_stat_rankxp = "98647"
PunkBuster Server: [From #8 86e9(VALID) oix666] ui_stat_rankxp = "125490"


rcon pb_sv_cvarval sys_gpu:
PunkBuster Server: [From #9 02ea(VALID) eSp#Danette] sys_gpu = "NVIDIA GeForce 9800 GTX/9800 GTX+"

rcon pb_sv_cvarval sys_cpughz:
PunkBuster Server: [From #9 02ea(VALID) eSp#Danette] sys_cpughz = "3.16672"

All hardware related system information variables I found:
- sys_gpu: GPU description
- sys_sysMB: Physical memory in the system
- sys_configureGhz: Normalized total CPU power, based on cpu type, count, and speed used in autoconfigure
- sys_SSE: Operating system allows Streaming SIMD Extensions
- sys_cpuGHz: Measured CPU speed
- sys_cpuName: CPU name description

Unfortunately I haven't found a way to execute commands on the client via the
punkbuster commands. While it may seem unethical to do, you could do some nifty
stuff like "g_scriptMainMenu class_marines" to force a player onto a different
team, or to spectator unless he deselects martyrdom.

I hope this information can help anyone. If someone has any suggestions on the
forced team switching or the perk variables I'd love to hear it.
« Last Edit: January 05, 2009, 08:56:13 PM by xlr8or »

Offline xlr8or

  • [ www.xlrstats.com ]
  • Project Lead
  • Hero Member
  • *
  • Posts: 2057
    • The Art of Tactical Gaming
Re: [CoD4-PB] General information that might come in handy
« Reply #1 on: January 05, 2009, 08:57:19 PM »
This looks like valuable information for those who are interested in doing more PB related stuff on CoD4 servers through a punkbuster plugin of some kind.

Thanks for your contribution!

Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: [CoD4-PB] General information that might come in handy
« Reply #2 on: January 05, 2009, 09:09:56 PM »
that's a great idea!
xlr8or, i think you can do punkbuster commands through normal rcon, so they can be found instantly. This is almost as good as the Urt kit code!

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: [CoD4-PB] General information that might come in handy
« Reply #3 on: January 05, 2009, 09:21:25 PM »
woa, that's a golden first post. N1!

Offline Master_Jochen

  • Full Member
  • ***
  • Posts: 77
Re: [CoD4-PB] General information that might come in handy
« Reply #4 on: January 14, 2009, 11:10:16 AM »
hi i trying stuff with those commands but if i use
Code: [Select]
self.console.say('%s'% self.send('pb_sv_cvarval ui_perk2_selection'))
i only get this back
Code: [Select]
 1 Cvar Query Sent

but if i type it to the server console i get the rest information

how can i get the second line of this rcon ?

Offline Master_Jochen

  • Full Member
  • ***
  • Posts: 77
Re: [CoD4-PB] General information that might come in handy
« Reply #5 on: January 14, 2009, 05:58:38 PM »
 ;D i found some more but none of them seems to store the team  >:(

http://nex.leetz.eu/cod4/server/dvarlist.txt

Offline CmdrKeen

  • Newbie
  • *
  • Posts: 2
    • Skull and Bones
Re: [CoD4-PB] General information that might come in handy
« Reply #6 on: January 14, 2009, 08:50:56 PM »
Perhaps you could poll ui_uav_client and ui_uav_axis / ui_uav_allies.

From what I could remember, ui_uav_client is set when the uav is active on the client screen and ui_uav_axis is set when the axis have a uav active.
I've not confirmed that this works and it's not foolproof since both teams can have a uav active.

Maybe some day I'll find a proper solution for this :)

Offline Lolzumad

  • Full Member
  • ***
  • Posts: 50
Re: [CoD4-PB] General information that might come in handy
« Reply #7 on: February 12, 2009, 06:02:50 PM »
Quote
I know it isn't possible for the bot to differentiate between a last stand pistol kill and a normal pistol kill.  I had an idea, however, that I think the bot can do...and if so, I know MANY of you would probably want the plugin if it can work.

Would it be possible for B3 to "pm" a person on an event like ROUND_START if they have the last stand perk WITHOUT modding a COD4 server? 

Basically, could a plugin be made so that the bot checks perks at a round start (or even on CLIENT_CONNECT), and pm's them something like "Please take off last stand" every X minutes (or every ROUND_START)?

I would be very interested in this, as I am sure many others would.  I'm sure my clan would be more than willing to give a donation to your clan or business if you could make this plugin!

Please let me know if you can do this.  I'm sure we can work out an arrangement to compensate you for your time!

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: [CoD4-PB] General information that might come in handy
« Reply #8 on: July 16, 2010, 08:50:40 AM »
This is excellent. Would love to see a plugin that can detect the martyrdom perk on spawn in and warn/kick the person.
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline Miramar

  • Sr. Member
  • ****
  • Posts: 200
Re: [CoD4-PB] General information that might come in handy
« Reply #9 on: June 16, 2011, 04:18:13 PM »
any further progress on this stuff here right now?

 


Rate this page +1 at Google Search