You are here: Big Brother Bot ForumCommunity DevelopersPlugin Developers[CoD4-PB] General information that might come in handy
Pages: [1]   Go Down
  Print  
Author Topic: [CoD4-PB] General information that might come in handy  (Read 3879 times) Bookmark and Share
Newbie
*
Posts: 2
Offline Offline
WWW
« on: January 05, 2009, 11:14:49 AM »

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, 11:56:13 AM by xlr8or » Logged


[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2022
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #1 on: January 05, 2009, 11:57:19 AM »

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!
Logged

B3 Contrib/Support
*
OS: --No B3 installed--
Type: --No B3 installed--
Posts: 1225
Offline Offline
Support Specialty: B3-Core, CoD/BFBC2 parsers, FTP-functionality, Plugin development
« Reply #2 on: January 05, 2009, 12: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!
Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #3 on: January 05, 2009, 12:21:25 PM »

woa, that's a golden first post. N1!
Logged

Full Member
***
Posts: 77
Offline Offline
« Reply #4 on: January 14, 2009, 02:10:16 AM »

hi i trying stuff with those commands but if i use
Code:
self.console.say('%s'% self.send('pb_sv_cvarval ui_perk2_selection'))
i only get this back
Code:
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 ?
Logged
Full Member
***
Posts: 77
Offline Offline
« Reply #5 on: January 14, 2009, 08:58:38 AM »

 Grin i found some more but none of them seems to store the team  Angry

http://nex.leetz.eu/cod4/server/dvarlist.txt
Logged
Newbie
*
Posts: 2
Offline Offline
WWW
« Reply #6 on: January 14, 2009, 11:50:56 AM »

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 Smiley
Logged

Full Member
***
Posts: 50
Offline Offline
« Reply #7 on: February 12, 2009, 09:02:50 AM »

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!
Logged
Support Hero
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2627
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #8 on: July 15, 2010, 10:50:40 PM »

This is excellent. Would love to see a plugin that can detect the martyrdom perk on spawn in and warn/kick the person.
Logged

Need B3 Bot hosting? Check out Host4B3.com
Check Twitter.com/Host4B3 for updates if the site it down.

Help will be given to those with a b3.log

System: Python 2.7.1 - B3 Source Code - Locally hosted MySQL & Apache - Win 2k3
Sr. Member
****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: COD2, COD4, COD5WaW, Homefront
Posts: 173
Offline Offline
« Reply #9 on: June 16, 2011, 06:18:13 AM »

any further progress on this stuff here right now?
Logged
Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal