Raised This Month: $51 Target: $400
 12% 

Module: Admin Free Look


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-16-2013 , 11:06   Re: Module: Admin Free Look
Reply With Quote #111

Hmm. Will try to double-check the content of Observer_FindNextPlayer. Something may has been changed.
__________________
Arkshine is offline
FiFiX
Senior Member
Join Date: May 2008
Location: Poland
Old 02-17-2013 , 16:37   Re: Module: Admin Free Look
Reply With Quote #112

Any progress so far?
FiFiX is offline
Send a message via Skype™ to FiFiX
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-01-2013 , 10:24   Re: Module: Admin Free Look
Reply With Quote #113

Updated the orpheu version.
With the latest update, a more simple way can be done to achieve the purpose.

Spoiler


Will do the same as module later.
This way won't require assembly code nor playing with setting player data, which would be a way more robust.
This version will work only under HLDS version after February update.
Attached Files
File Type: zip admin_free_look-2.0.zip (4.1 KB, 179 views)
__________________
Arkshine is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 03-01-2013 , 10:37   Re: Module: Admin Free Look
Reply With Quote #114

Arkshine,You can tell more information about the function Observer_IsValidTarget ?

PHP Code:
int __cdecl CBasePlayer__Observer_IsValidTarget(int a1int a2char a3)
{
  
int result// eax@3
  
int v4// edx@8

  
if ( a2 > *(_DWORD *)(gpGlobals 144)
    || 
a2 <= 0
    
|| (result UTIL_PlayerByIndex(a2), !result)
    || 
result == a1
    
|| *(_BYTE *)(result 144)
    || *(
_DWORD *)(*(_DWORD *)result 580)
    || *(
_BYTE *)(*(_DWORD *)result 280) < 0
    
|| (v4 = *(_DWORD *)(result 476), !v4)
    || 
a3 && v4 != *(_DWORD *)(a1 476) )
    
result 0;
  return 
result;

Why 3 argument is not a string?
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-01-2013 , 11:01   Re: Module: Admin Free Look
Reply With Quote #115

CBasePlayer object (pointer), index to check (int), if the team should be checked (bool).
__________________
Arkshine is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 03-01-2013 , 11:19   Re: Module: Admin Free Look
Reply With Quote #116

I do not know where you get bool

int __cdecl CBasePlayer__Observer_IsValidTarget(int a1, int a2, char a3)
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-01-2013 , 11:33   Re: Module: Admin Free Look
Reply With Quote #117

char is not char* ; and you should not trust what says the decompiled version.
And by looking at IDA on the linux binary, you see well it's header : CBasePlayer::Observer_IsValidTarget(int, bool)
__________________
Arkshine is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 03-01-2013 , 13:00   Re: Module: Admin Free Look
Reply With Quote #118

Arkshine,thanks !
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-01-2013 , 15:47   Re: Module: Admin Free Look
Reply With Quote #119

AMXX module version.

Note : It will work only for HLDS version after February update.

To install : unzip content of adminfreelook-files-xx.zip in your /amxmodx/ folder ; and add adminfreelook in your configs/modules.ini file.
Attached Files
File Type: zip adminfreelook-source-1.3.1.zip (43.3 KB, 143 views)
File Type: zip adminfreelook-files-1.3.1.zip (56.2 KB, 215 views)
__________________

Last edited by Arkshine; 03-03-2013 at 16:45. Reason: Updated 1.3.1
Arkshine is offline
FiFiX
Senior Member
Join Date: May 2008
Location: Poland
Old 03-03-2013 , 16:04   Re: Module: Admin Free Look
Reply With Quote #120

As You said, it loads well:
Code:
 Admin Free Look v1.3 - by Arkshine.
 -
 Loaded with success.
but it still doesn;t work.
FiFiX is offline
Send a message via Skype™ to FiFiX
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 03:13.


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