.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > SDK Programming discussions > Half-Life 1 SDK
Half-Life 1 SDK For developments focused around Half-Life (and its mods) Half-Life

Reply
 
Thread Tools
WON id code in 1.6
Old
  (#1)
Austin
Moderator
 
Austin's Avatar
 
Status: Offline
Posts: 403
Join Date: Nov 2003
Default WON id code in 1.6 - 25-08-2004

I was using the following code in 1.5 to check for certain players.

char WONID[32];
sprintf (WONID, "%d\n", g_engfuncs.pfnGetPlayerWONId(pPlayer));
if (strcmp ("3058868", WONID) == 0)
// matched

Does this work in 1.6?
I noticed that HLSW now shows WONid like this.
STEAM_0:0:3363193
  
Reply With Quote
Re: WON id code in 1.6
Old
  (#2)
dstruct2k
 
dstruct2k's Avatar
 
Status: Offline
Posts: 225
Join Date: Feb 2004
Default Re: WON id code in 1.6 - 25-08-2004

That might have something to do with the fact that there is no WON anymore.

It's called "Steam", and it's about as new as the news that HL2 was delayed the first time. 9_9

(Just playin man lol)

For clarification in your code, I suggest replacing "WONID" with "STEAMID" and strcmp'ing for STEAM_0:0:3363193 (or whatever player's SteamID you're looking for)
  
Reply With Quote
Re: WON id code in 1.6
Old
  (#3)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: WON id code in 1.6 - 25-08-2004

use pfnGetPlayerAuthId() instead.
(can't remember the function name exactly but it has "authid" in it)
  
Reply With Quote
Re: WON id code in 1.6
Old
  (#4)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: WON id code in 1.6 - 25-08-2004

that's it.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: WON id code in 1.6
Old
  (#5)
Austin
Moderator
 
Austin's Avatar
 
Status: Offline
Posts: 403
Join Date: Nov 2003
Default Re: WON id code in 1.6 - 27-08-2004

Tx, everyone.
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com