AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=7)
-   -   %a and %h values in tfc. (https://forums.alliedmods.net/showthread.php?t=59913)

DeviusCreed 08-23-2007 01:22

%a and %h values in tfc.
 
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.

X-Script 08-24-2007 07:30

Re: %a and %h values in tfc.
 
bind j "[Health] %h | [Armor] %a - Good luck next time."
Like that?

M249-M4A1 08-25-2007 19:21

Re: %a and %h values in tfc.
 
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 :D

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

X-Script 08-25-2007 20:14

Re: %a and %h values in tfc.
 
Eh.
:)

Roach 08-27-2007 15:33

Re: %a and %h values in tfc.
 
Quote:

Originally Posted by DeviusCreed (Post 522094)
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.

M249-M4A1 08-29-2007 17:19

Re: %a and %h values in tfc.
 
Don't forget %i is who you last saw!!!


All times are GMT -4. The time now is 10:35.

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