This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[Edited]:Hud Message Position & register_forward


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
thebobjones34
Member
Join Date: Oct 2006
Old 08-22-2007 , 01:56   [Edited]:Hud Message Position & register_forward
Reply With Quote #1

Okay is it possible to find the X position of the last char displayed on a hud message? Like if i displayed.... Welcome to my Server!i would be able to find the x position of the "!". I mean counting the characters then adding so many pixels isn't every accurate.

Now when it says in the func wiki...
Quote:
register_forward - Registers a forward in the HL engine
This will hook a function in the HL engine or mod DLL and forward it to a function in an AMXx plugin.
I know that does not mean any function in the HL Engine. So um exactly how much power does that have?
__________________

Last edited by thebobjones34; 08-22-2007 at 04:23.
thebobjones34 is offline
Send a message via AIM to thebobjones34
_Master_
Senior Member
Join Date: Dec 2006
Old 08-22-2007 , 12:16   Re: [Edited]:Hud Message Position & register_forward
Reply With Quote #2

HL coordinates span from 0 to 1. There are no pixels.
There is no hook that can help you with what you want. You can however find out the start position of that text using register_message.
Check with fakemeta docs on what hooks are available and how to use them. As a side-note: not all engine functions can be hooked.
_Master_ 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 13:59.


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