AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Zooming Plugin for HL2DM(or anyothers) (https://forums.alliedmods.net/showthread.php?t=90886)

nargis 04-24-2009 03:41

Zooming Plugin for HL2DM(or anyothers)
 
2 Attachment(s)
Zooming Plugin for HL2DM




Attack2 (ex. press mouse right button) -> Zooming view

My English is bad ^^;;


Author : Nargis
Steam ID : nalsis_v


Thx for using my plugin ^^

exvel 04-24-2009 10:23

Re: Zooming Plugin for HL2DM(or anyothers)
 
Nice plugin but...
PHP Code:

public OnGameFrame()
{
    
decl MaxPlayer;
    
MaxPlayer GetMaxClients(); 

This part of the code is very bad for frequency because it is doing the same work on every frame. You can simply use MaxClients that is supported since sm 1.1.0:
PHP Code:

public OnGameFrame()
{
    for(new 
Client 1Client <= MaxClientsClient++)
    {
        
// some stuff
    
}



SAMURAI16 05-16-2009 01:57

Re: Zooming Plugin for HL2DM(or anyothers)
 
use MaxClients variable predefined in SM Core

nargis 05-17-2009 11:33

Re: Zooming Plugin for HL2DM(or anyothers)
 
Thanks for your advice
lol


All times are GMT -4. The time now is 21:46.

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