Raised This Month: $29 Target: $400
 7% 

AttachView (1.0) - Look through other players eyes


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
Drak
Veteran Member
Join Date: Jul 2005
Old 04-20-2011 , 15:37   AttachView (1.0) - Look through other players eyes
Reply With Quote #1

This plugin allows you to see out other players "eye's". Similar to spectating. But you can be alive and do it as well.


Commands:
tjd_view_attach <target> - attaches the camera to a player
tjd_view_reset - resets your view
tjd_view_switch - switches to another players view



ConVars
tjd_view_allow 1/0 - Enable/Disable the plugin
tjd_view_hideviewer 1/0 - If enabled. The viewer will become invisible/hidden, while viewing another player.


Author(s):
Drak

Changelog:
4/20/11:
Release

6/6/11:
You can now hear sounds from the player you are viewing.
Added newround events for Counter-Strike
View removes upon death.

6/7/11:
Added a disable/enable CVar (AMXX_View_Enable 1/0)
Added support for ot_207's "block wallhack" plugin.

7/31/16: !!!It's be along time
Removed the need for engine. Pure fakemeta, added additional hide feature/changed commands
Attached Files
File Type: sma Get Plugin or Get Source (AttachView_New.sma - 1533 views - 9.2 KB)
__________________
Oh yeah

Last edited by Drak; 07-31-2016 at 19:20.
Drak is offline
Send a message via MSN to Drak
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
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 04-23-2011 , 16:29   Re: AttachView - Look through other players eyes
Reply With Quote #3

Can't you directly do attach_view(id,Target); ?
__________________
xPaw is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 04-24-2011 , 01:46   Re: AttachView - Look through other players eyes
Reply With Quote #4

You mean target = other player ? You can't: http://www.amxmodx.org/funcwiki.php?go=func&id=374
__________________
Hunter-Digital is offline
kNowo
Senior Member
Join Date: Apr 2011
Location: Malaysia
Old 05-01-2011 , 08:58   Re: AttachView - Look through other players eyes
Reply With Quote #5

In metamod eye plugin, we hear sound only from our own position. What about this one?
kNowo is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 05-03-2011 , 13:01   Re: AttachView - Look through other players eyes
Reply With Quote #6

hey remove the task when RemoveAttach !

edited:
and need to hook Player death event to set g_AttachedViews[id] false when was killed !
set g_AttachedViews[id] false when new round

I think there was more to be fixed !

and a good idea !
__________________
QQ:116268742

Last edited by K.K.Lv; 05-03-2011 at 13:15.
K.K.Lv is offline
Send a message via MSN to K.K.Lv
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 05-16-2011 , 19:11   Re: AttachView - Look through other players eyes
Reply With Quote #7

Nice plugin, i had the idea of this plugin one year ago, but never finished xd.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
Drak
Veteran Member
Join Date: Jul 2005
Old 06-06-2011 , 14:38   Re: AttachView - Look through other players eyes
Reply With Quote #8

Quote:
Originally Posted by kNowo View Post
In metamod eye plugin, we hear sound only from our own position. What about this one?
I added this. You can now hear the sounds emitted near the player you are viewing.
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 06-07-2011 , 06:04   Re: AttachView - Look through other players eyes
Reply With Quote #9

You didn't add support for anti-wallhack tough
__________________
Hunter-Digital is offline
Drak
Veteran Member
Join Date: Jul 2005
Old 06-07-2011 , 20:36   Re: AttachView - Look through other players eyes
Reply With Quote #10

Quote:
Originally Posted by Hunter-Digital View Post
You didn't add support for anti-wallhack tough
There we go.
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
Reply


Thread Tools
Display Modes

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:43.


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