Raised This Month: $32 Target: $400
 8% 

%a and %h values in tfc.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DeviusCreed
Junior Member
Join Date: Dec 2006
Old 08-23-2007 , 01:22   %a and %h values in tfc.
Reply With Quote #1

Is there a way to change these values on the client? So if they have them binded, and press it after being shot, instead of saying "A 25 H 90", it would say "<whatever> <whatever>"? I thought perhaps you could amx_exec something like %a = <whatever> similar to how setinfo does it, but i don't think there is anyway to have console command variables.
DeviusCreed is offline
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 08-24-2007 , 07:30   Re: %a and %h values in tfc.
Reply With Quote #2

bind j "[Health] %h | [Armor] %a - Good luck next time."
Like that?
X-Script is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 08-25-2007 , 19:21   Re: %a and %h values in tfc.
Reply With Quote #3

Don't think you can change %a and %h. %a and %h are replaced only by a numerical value, so, like X-Script posted, you can put any text you want around it to make it sound good.

Of course, the above example doesn't work because it's missing say

bind j "say [Health] %h | [Armor] %a - Good luck next time, %i."

Last edited by M249-M4A1; 08-25-2007 at 19:24.
M249-M4A1 is offline
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 08-25-2007 , 20:14   Re: %a and %h values in tfc.
Reply With Quote #4

Eh.
X-Script is offline
Roach
Writes love letters to sawce Daily
Join Date: Jul 2006
Location: Internet
Old 08-27-2007 , 15:33   Re: %a and %h values in tfc.
Reply With Quote #5

Quote:
Originally Posted by DeviusCreed View Post
Is there a way to change these values on the client? So if they have them binded, and press it after being shot, instead of saying "A 25 H 90", it would say "<whatever> <whatever>"? I thought perhaps you could amx_exec something like %a = <whatever> similar to how setinfo does it, but i don't think there is anyway to have console command variables.
%h and %a are built into TFC, not so much into AMXX, and they are designed to return the current users Health and Armor at that point in time. So whatever you would end up binding to someone for a %h and %a command, it would always return their current health and armor status.
__________________
Quote:
Originally Posted by Brad View Post
That sounds like a really good idea!
Now replace the word "good" with "dumb".
What was your rationale for proposing such a thing?
Roach is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 08-29-2007 , 17:19   Re: %a and %h values in tfc.
Reply With Quote #6

Don't forget %i is who you last saw!!!
M249-M4A1 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 23:41.


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