AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Solved] How to see playernames with semiclip (https://forums.alliedmods.net/showthread.php?t=146717)

Pinatz 12-31-2010 07:45

[Solved] How to see playernames with semiclip
 
Is there a way to see the playernames aiming at while having the semiclipscript beneath activated? All other methods of semiclipping will not function well on higher speed.
PHP Code:

if(!is_user_alive(id))
            return 
PLUGIN_CONTINUE
new iEnts[1], bool:bEntFlagFloat:flRadius 200.0            
find_sphere_class
(id,"trigger_teleport",flRadius,iEnts,1)
if(
iEnts[0])
  
bEntFlag true
        
if(bEntFlag)
  
entity_set_int(id,EV_INT_solid,3)
else
  
entity_set_int(id,EV_INT_solid,0)
return 
PLUGIN_CONTINUE 


gladius 12-31-2010 10:58

Re: How to see playernames with semiclip
 
http://forums.alliedmods.net/showpos...2&postcount=70

Pinatz 01-02-2011 18:04

Re: How to see playernames with semiclip
 
Code:

if (flDistance < 512.0)
At speeds of 2000 Units/s with pings about 50-70 on both sides it won't work I think.
And if one player only has 60 fps or so will it work? As prethink and posthink only are called each frame i read here in the forum. :3

caffeine 01-16-2011 08:13

Re: How to see playernames with semiclip
 
1 Attachment(s)
display name for New Semiclip Method: http://forums.alliedmods.net/showthread.php?t=69728

use aimorigin & origin, display the nearest name:

Pinatz 01-16-2011 12:23

Re: How to see playernames with semiclip
 
Thanks caffeine it works good :)
Btw. There are only 4 layers for hud messages. Is there no way to extend this number?

caffeine 01-16-2011 12:36

Re: [Solved] How to see playernames with semiclip
 
channel = abs(g_hudset.channel % 5);

...
5%5=0
6%5=1
7%5=2
8%5=3
9%5=4
10%5=0
...

Pinatz 01-16-2011 12:46

Re: [Solved] How to see playernames with semiclip
 
Hm okay so there are 5 Layers. Sometimes I have trouble when some other plugins are running and they use the same channel.

Thanks for you help


All times are GMT -4. The time now is 02:11.

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