Raised This Month: $ Target: $400
 0% 

[SOLVED] Aiming and making players glow


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Shaman
Senior Member
Join Date: Dec 2006
Location: Istanbul, Turkey
Old 12-10-2006 , 13:14   [SOLVED] Aiming and making players glow
Reply With Quote #1

Q1-
How can I show info about the aimed player?
For Example:
I aim at Mike and I see a HUD message like "You aimed at Mike. He has a crossbow."

Q2-
How can I make a player glow?
I used this code to make 'id' glow blue:
Code:
set_user_rendering(id,kRenderFxNone,0,0,255,kRenderNormal,25)
but it doesn't work

Note: I am working on Half-Life

Last edited by Shaman; 12-13-2006 at 11:31.
Shaman is offline
Send a message via ICQ to Shaman Send a message via AIM to Shaman Send a message via MSN to Shaman Send a message via Yahoo to Shaman
VEN
Veteran Member
Join Date: Jan 2005
Old 12-10-2006 , 13:29   Re: Aiming and making players glow
Reply With Quote #2

1. For example:
get_user_aiming (in player prethink)
if aim at alive player
get_user_name
get_user_weapon
get_weaponname
set_hudmessage
show_hudmessage
Don't display a hudmessage everu prethink if still aiming at the same player to not flood the clients.

2. Use kRenderFxGlowShell instead of kRenderFxNone

Last edited by VEN; 12-10-2006 at 13:33.
VEN is offline
Shaman
Senior Member
Join Date: Dec 2006
Location: Istanbul, Turkey
Old 12-10-2006 , 14:16   Re: Aiming and making players glow
Reply With Quote #3

Thanks VEN. I will try that ASAP.
Shaman is offline
Send a message via ICQ to Shaman Send a message via AIM to Shaman Send a message via MSN to Shaman Send a message via Yahoo to Shaman
mateo10
Veteran Member
Join Date: Jan 2006
Old 12-10-2006 , 16:41   Re: Aiming and making players glow
Reply With Quote #4

Shouldn't he use kRenderGlow instead of kRenderNormal if he wants the person to glow?
mateo10 is offline
Old 12-11-2006, 01:52
VEN
This message has been deleted by VEN. Reason: messed with the other thread
Shaman
Senior Member
Join Date: Dec 2006
Location: Istanbul, Turkey
Old 12-11-2006 , 14:25   Re: Aiming and making players glow
Reply With Quote #5

It worked. Thanks. (God save Potti! It really helps me with tests!)

Edit:
Aim worked too

Last edited by Shaman; 12-11-2006 at 14:29.
Shaman is offline
Send a message via ICQ to Shaman Send a message via AIM to Shaman Send a message via MSN to Shaman Send a message via Yahoo to Shaman
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 06:59.


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