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

Cordinate, color and animate text


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
webbhelp
Member
Join Date: Jan 2010
Old 02-12-2010 , 02:44   Cordinate, color and animate text
Reply With Quote #1

Hi!

I want to do like this: When a player kill another player they got a green text which content like: 10+, and the player who died got the text 10- or something.

How I write text to the players isn't the problem I now how to do that but the thing is how to place a text on special cordinates on the screen, I want to place the text right to the player or something and then I want the text to move slowly up on screen and fade out in opacity.

Is this even possible?
Where shall I start?

Thanks!
webbhelp is offline
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Old 02-12-2010 , 19:17   Re: Cordinate, color and animate text
Reply With Quote #2

Unless the game your coding for has messages in it like you described, it's not possible.
__________________
Greyscale is offline
webbhelp
Member
Join Date: Jan 2010
Old 03-17-2010 , 06:45   Re: Cordinate, color and animate text
Reply With Quote #3

to bad

Not even possbile to cordinate text?
animation is only a huge bonus but, cordinate text next to the player?
webbhelp is offline
webbhelp
Member
Join Date: Jan 2010
Old 03-24-2010 , 17:54   Re: Cordinate, color and animate text
Reply With Quote #4

Sry but is it possible to give a text a position, like left corner, or something? =)
webbhelp is offline
noodleboy347
AlliedModders Donor
Join Date: Mar 2009
Old 03-24-2010 , 17:56   Re: Cordinate, color and animate text
Reply With Quote #5

Are you using center chat? If you're using HudText yo can set the coordinates.
noodleboy347 is offline
webbhelp
Member
Join Date: Jan 2010
Old 03-24-2010 , 18:01   Re: Cordinate, color and animate text
Reply With Quote #6

What do you mean, I don't want to use the center text, I want to set my own cordinates on the text like... in the center right or top right.

HudText sounds like the text who shows HP, ammo and things like that, I want to place it by my self
webbhelp is offline
Dr.G
Senior Member
Join Date: Nov 2008
Old 03-25-2010 , 11:50   Re: Cordinate, color and animate text
Reply With Quote #7

look at halflife.inc -> SetHudTextParams..
__________________
Dr.G is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 03-25-2010 , 12:14   Re: Cordinate, color and animate text
Reply With Quote #8

Only games that support HUD text are TF2, HL2MP, and SourceForts.
__________________
For admins: My plugins

For developers: Colors library

Last edited by exvel; 03-25-2010 at 12:28.
exvel is offline
Send a message via ICQ to exvel
strontiumdog
Veteran Member
Join Date: Jan 2007
Location: BC, Canada
Old 03-25-2010 , 12:23   Re: Cordinate, color and animate text
Reply With Quote #9

Sounds like you want to make something like the 'critical' text in TF2, attached to the player.

You could create a custom particle and then attach it to the player using L.Duke's particle code:
http://forums.alliedmods.net/showpos...60&postcount=3
__________________
Plugins | TheVille
Zombie Mod for DoD:S - l4dod.theville.org
strontiumdog is offline
psychonic

BAFFLED
Join Date: May 2008
Old 03-25-2010 , 16:09   Re: Cordinate, color and animate text
Reply With Quote #10

Quote:
Originally Posted by exvel View Post
Only games that support HUD text are TF2, HL2MP, and SourceForts.
As well as Insurgency, Pirate Vikings and Knights, Age of Chivalry, Zombie Panic Source, CSProMod, GoldenEye Source, Zombie Master, Battle Grounds 2, and Obsidian
psychonic 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 07:14.


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