AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [SOLVED] Aiming and making players glow (https://forums.alliedmods.net/showthread.php?t=48361)

Shaman 12-10-2006 13:14

[SOLVED] Aiming and making players glow
 
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

VEN 12-10-2006 13:29

Re: Aiming and making players glow
 
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

Shaman 12-10-2006 14:16

Re: Aiming and making players glow
 
Thanks VEN. I will try that ASAP.

mateo10 12-10-2006 16:41

Re: Aiming and making players glow
 
Shouldn't he use kRenderGlow instead of kRenderNormal if he wants the person to glow?

Shaman 12-11-2006 14:25

Re: Aiming and making players glow
 
It worked. Thanks. (God save Potti! It really helps me with tests!)

Edit:
Aim worked too:up:


All times are GMT -4. The time now is 06:59.

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