AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   AttachView (1.0) - Look through other players eyes (https://forums.alliedmods.net/showthread.php?t=155338)

Drak 04-20-2011 15:37

AttachView (1.0) - Look through other players eyes
 
1 Attachment(s)
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

Hunter-Digital 04-21-2011 01:08

Re: AttachView - Look through other players eyes
 
Quote:

Originally Posted by Drak (Post 1454323)
// 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 (Post 905038)
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.

xPaw 04-23-2011 16:29

Re: AttachView - Look through other players eyes
 
Can't you directly do attach_view(id,Target); ?

Hunter-Digital 04-24-2011 01:46

Re: AttachView - Look through other players eyes
 
You mean target = other player ? You can't: http://www.amxmodx.org/funcwiki.php?go=func&id=374

kNowo 05-01-2011 08:58

Re: AttachView - Look through other players eyes
 
In metamod eye plugin, we hear sound only from our own position. What about this one?

K.K.Lv 05-03-2011 13:01

Re: AttachView - Look through other players eyes
 
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 !

Alucard^ 05-16-2011 19:11

Re: AttachView - Look through other players eyes
 
Nice plugin, i had the idea of this plugin one year ago, but never finished xd.

Drak 06-06-2011 14:38

Re: AttachView - Look through other players eyes
 
Quote:

Originally Posted by kNowo (Post 1461318)
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. :bacon!:

Hunter-Digital 06-07-2011 06:04

Re: AttachView - Look through other players eyes
 
You didn't add support for anti-wallhack tough :P

Drak 06-07-2011 20:36

Re: AttachView - Look through other players eyes
 
Quote:

Originally Posted by Hunter-Digital (Post 1482851)
You didn't add support for anti-wallhack tough :P

There we go. :grrr:


All times are GMT -4. The time now is 15:44.

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