View Single Post
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 04-21-2011 , 01:08   Re: AttachView - Look through other players eyes
Reply With Quote #2

Quote:
Originally Posted by Drak View Post
// Known Bugs: // Some mods have "anti-wallhack" type things. So when you attach your view, you can't see other players // (but you can see what the player is seeing)
ot_207's "block wallhack" plugin supports other plugin's attach view, just add this to your plugin:

Quote:
Originally Posted by ot_207 View Post
Plugin camera compatability!
Add this function after you have used attach_view() or EngFunc_SetView functions
PHP Code:
stock wb_setview(idattachent)
{
    if (!
cvar_exists("wallblocker_version") && !cvar_exists("trwb_version"))
        return 
0

    callfunc_begin
("fw_setview"cvar_exists("wallblocker_version") ? "block_wallhack.amxx" "trblock.amxx")
    
callfunc_push_int(id)
    
callfunc_push_int(attachent)
    
callfunc_end()
    
    return 
1

You should cache cvar_exists() values tough, static or global.
__________________

Last edited by Hunter-Digital; 04-21-2011 at 01:10.
Hunter-Digital is offline