Raised This Month: $12 Target: $400
 3% 

tf2: check if a user is ubered


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 09-07-2008 , 16:13   tf2: check if a user is ubered
Reply With Quote #1

How can I check to see if a user is ubered or not with their client index? Thanks!
__________________
pheadxdll is offline
Muridias
Member
Join Date: Feb 2008
Old 09-07-2008 , 16:18   Re: tf2: check if a user is ubered
Reply With Quote #2

new m_nPlayerCond = FindSendPropInfo("CTFPlayer","m_nPlayerCond") ;

new cond = GetEntData(client, m_nPlayerCond);
if(cond == 32)
{
//do something
}
Muridias is offline
The JCS
AlliedModders Donor
Join Date: Jan 2007
Location: Brazil
Old 09-07-2008 , 16:57   Re: tf2: check if a user is ubered
Reply With Quote #3

Uber: if( cond & 32 ) ...
KK: if( cond & 2048 ) ...
The JCS is offline
Send a message via MSN to The JCS
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 09-07-2008 , 17:27   Re: tf2: check if a user is ubered
Reply With Quote #4

exactly what I needed thanks! +karma once I get on a real computer


I wonder if it's possible to set the playercond to give someone an uber
__________________
pheadxdll is offline
The JCS
AlliedModders Donor
Join Date: Jan 2007
Location: Brazil
Old 09-07-2008 , 17:29   Re: tf2: check if a user is ubered
Reply With Quote #5

I think the player conditions are only indicators. So, you can't uber a playerby changing his conditions =/

Try create a fake uber event...
The JCS is offline
Send a message via MSN to The JCS
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 09-08-2008 , 06:35   Re: tf2: check if a user is ubered
Reply With Quote #6

Events are indicators too. They won't trigger the action.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
Tf2Ownage
Junior Member
Join Date: Mar 2009
Old 03-03-2009 , 14:48   Re: tf2: check if a user is ubered
Reply With Quote #7

I have recently played a server where in the bonus round, players are all ubered so that they cannot be killed, if there is no way to change the playercond, then how could this have been achieved? Is it at all possible to combine 'GodMode' with the 'Uber effect', so that when a player is given GodMode, they will look like they are ubered.

Last edited by Tf2Ownage; 03-03-2009 at 15:47.
Tf2Ownage is offline
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 03-03-2009 , 19:53   Re: tf2: check if a user is ubered
Reply With Quote #8

Its possible, but you have to do it with c++.
__________________
CrimsonGT is offline
voogru
Inspector Javert
Join Date: Oct 2004
Old 03-05-2009 , 01:15   Re: tf2: check if a user is ubered
Reply With Quote #9

Quote:
Originally Posted by Tf2Ownage View Post
I have recently played a server where in the bonus round, players are all ubered so that they cannot be killed, if there is no way to change the playercond, then how could this have been achieved? Is it at all possible to combine 'GodMode' with the 'Uber effect', so that when a player is given GodMode, they will look like they are ubered.
Chances are you saw this on my server, it is god mode with the uber effect applied. Normal TF2 uber does not work during the humiliation round.
voogru is offline
naris
AlliedModders Donor
Join Date: Dec 2006
Old 03-05-2009 , 16:11   Re: tf2: check if a user is ubered
Reply With Quote #10

Quote:
Originally Posted by pheadxdll View Post
I wonder if it's possible to set the playercond to give someone an uber
Nope, doesn't work -- I've tried
naris is offline
Reply



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


All times are GMT -4. The time now is 21:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode