Raised This Month: $ Target: $400
 0% 

HotVision


Post New Thread Reply   
 
Thread Tools Display Modes
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 10-11-2010 , 04:41   Re: HotVision
Reply With Quote #41

Quote:
Originally Posted by MPNumB View Post
#define means that whenever it is used it's been read from hard drive. Global variables mean that at map start they are read from hard drive, and put to rams, and then when needed are read from rams. I use my string through define, cause even if they are used only 3 times, they are used only at map start, so I don't want unneeded memory usage. I can even call back on you and tell that why don't you then report to bugs that it's better to use:
PHP Code:
new ADMIN_ALL        0    /* everyone */
new ADMIN_IMMUNITY        (1<<0)    /* flag "a" */
new ADMIN_RESERVATION    (1<<1)    /* flag "b" */
new ADMIN_KICK        (1<<2)    /* flag "c" */
new ADMIN_BAN        (1<<3)    /* flag "d" */
new ADMIN_SLAY        (1<<4)    /* flag "e" */
new ADMIN_MAP        (1<<5)    /* flag "f" */
new ADMIN_CVAR        (1<<6)    /* flag "g" */
new ADMIN_CFG        (1<<7)    /* flag "h" */
new ADMIN_CHAT        (1<<8)    /* flag "i" */
new ADMIN_VOTE        (1<<9)    /* flag "j" */
new ADMIN_PASSWORD        (1<<10)    /* flag "k" */
new ADMIN_RCON        (1<<11)    /* flag "l" */
new ADMIN_LEVEL_A        (1<<12)    /* flag "m" */
new ADMIN_LEVEL_B        (1<<13)    /* flag "n" */
new ADMIN_LEVEL_C        (1<<14)    /* flag "o" */
new ADMIN_LEVEL_D        (1<<15)    /* flag "p" */
new ADMIN_LEVEL_E        (1<<16)    /* flag "q" */
new ADMIN_LEVEL_F        (1<<17)    /* flag "r" */
new ADMIN_LEVEL_G        (1<<18)    /* flag "s" */
new ADMIN_LEVEL_H        (1<<19)    /* flag "t" */
new ADMIN_MENU        (1<<20)    /* flag "u" */
new ADMIN_ADMIN        (1<<24)    /* flag "y" */
new ADMIN_USER        (1<<25)    /* flag "z" */ 
instead of original onces, cause much of custom plugins can/do use one FLAG more than once during mapchange time?

---

And about "Don't check if task exists if you only need to remove it." Just I had a need to look at any one of you'r plugins just to abuse you in some thing what you would do your way and cause of that there will be problems with plugin stability. And guess what - I found one. There is an approved plugin by you what doesn't even work! Now the question is should I tell you, hopping you will learn something from it, or should I let you find it yourself guaranteeing that you will learn from your mistakes. I more prefer way #2, but tell me when you'll get tired.
http://wiki.amxmodx.org/Optimizing_P...#Local_Strings

Last time I checked, all my approved plugins worked. It's been a while since I updated any of them, though. Does the one you have in mind not work because of AMXX 1.8.x?

Sorry if you got offended for some reason. I still don't see myself as being wrong about anything, though.
__________________

Last edited by hleV; 10-11-2010 at 04:43.
hleV is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 10-11-2010 , 06:13   Re: HotVision
Reply With Quote #42

Quote:
Originally Posted by DarkGod View Post
Do want.

Been missing that ever since I got hooked on Source, and then started playing reg CS again.
Ok, will make that plugin. But overlooking possibilities, I will not add where enemies are - only where teammates died and c4 is dropped if visible (to avoid confusion of what red dot stands for what). For terrorists I can add only read dot, as for CT I can add blue, red, and mix between (blue,red,pink). So I'll use only teammate death and c4 location.

---

And to hleV, I am not offended. But I will not change "#define" to "new const". And the plugin of yours what isn't working is this one. Inlcude "is_user_connected(Client)" check in it, cause between client_connect() and client_putinserver() player is spawned also. Or instead of client_connect() use client_putinserver(). I would suggest second way. But choose what fits you more.

// EDIT:

Updated to 1.5
Added: Cvar to disable plugins_by_numb feature (set "pbn_simple" to "1").

Downloads retested: 121, 38, 43, 36 = ( 238 )
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.

Last edited by MPNumB; 10-11-2010 at 06:31.
MPNumB is offline
Send a message via Skype™ to MPNumB
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 10-11-2010 , 07:46   Re: HotVision
Reply With Quote #43

Quote:
Originally Posted by MPNumB View Post
And the plugin of yours what isn't working is this one.
Plugin works fine, as there's is_user_alive() check when player spawns.
__________________
hleV is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 10-11-2010 , 08:09   Re: HotVision
Reply With Quote #44

Quote:
Originally Posted by hleV View Post
Plugin works fine, as there's is_user_alive() check when player spawns.
"is_user_alive()" always returns true if players team is UNSIGNED.
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-11-2010 , 08:45   Re: HotVision
Reply With Quote #45

Quote:
Originally Posted by MPNumB View Post
"is_user_alive()" always returns true if players team is UNSIGNED.
Doesn't sound like true for me.. Why is_user_alive returns 0 in Ham_Spawn when player joins server? (the first call when player gets the camera)

PHP Code:
    return ((pPlayer->ingame && pPlayer->IsAlive()) ? 0);

// --

    
inline bool IsAlive(){
        return ((
pEdict->v.deadflag==DEAD_NO)&&(pEdict->v.health>0));
    } 
__________________
xPaw is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 10-11-2010 , 08:50   Re: HotVision
Reply With Quote #46

Quote:
Originally Posted by xPaw View Post
Doesn't sound like true for me.. Why is_user_alive returns 0 in Ham_Spawn when player joins server? (the first call when player gets the camera)

PHP Code:
    return ((pPlayer->ingame && pPlayer->IsAlive()) ? 0);
 
// --
 
    
inline bool IsAlive(){
        return ((
pEdict->v.deadflag==DEAD_NO)&&(pEdict->v.health>0));
    } 
Ok, since when it got fixed? Maybe they did finally fixed the get_players() glitch of also getting the connecting ones?
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-11-2010 , 14:45   Re: HotVision
Reply With Quote #47

Quote:
Originally Posted by MPNumB View Post
Ok, since when it got fixed? Maybe they did finally fixed the get_players() glitch of also getting the connecting ones?
Don't look at me
__________________
xPaw is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-11-2010 , 20:27   Re: HotVision
Reply With Quote #48

It's like that since the start, MPNumB.
__________________
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-03-2010 , 07:14   Re: HotVision
Reply With Quote #49

What about make a .ini file instead of attaching 4 .sma file with only 'commented or not' defines ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 11-05-2010 , 12:35   Re: HotVision
Reply With Quote #50

Quote:
Originally Posted by ConnorMcLeod View Post
What about make a .ini file instead of attaching 4 .sma file with only 'commented or not' defines ?
I don't like file reading and bla-bla-bla. Plus defines take less CPU. And when functions such as AddToFullPack are in place it's much better to use define instead of checking an extra if.
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
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 15:25.


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