Raised This Month: $ Target: $400
 0% 

Module: Admin Free Look


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-26-2013 , 18:59   Re: Module: Admin Free Look
Reply With Quote #141

I hate linuxxxxxxxxxxxxxxxxxxxxx.
__________________
Arkshine is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 03-26-2013 , 22:55   Re: Module: Admin Free Look
Reply With Quote #142

Quote:
Originally Posted by Arkshine View Post
I hate linuxxxxxxxxxxxxxxxxxxxxx.
shout it loud
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Zapy
SourceMod Donor
Join Date: Oct 2004
Location: Stockholm, Sweden
Old 04-14-2013 , 19:37   Re: Module: Admin Free Look
Reply With Quote #143

Quote:
Originally Posted by Arkshine View Post
I hate linuxxxxxxxxxxxxxxxxxxxxx.
haha, did you give up on this?
__________________
Community Admin for Warzone.nu
http://www.warzone.nu
Swedish Gaming Community since 2000
Zapy is offline
Send a message via Skype™ to Zapy
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-15-2013 , 03:58   Re: Module: Admin Free Look
Reply With Quote #144

Not yet. Just have some trouble to understand the problem. Needs mor time.

But lately I've been busy on others things (like updating Ham, Orpheu). I will try again today.
__________________

Last edited by Arkshine; 04-15-2013 at 04:03.
Arkshine is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-15-2013 , 06:21   Re: Module: Admin Free Look
Reply With Quote #145

It would seem I've found an easy fix.
Still orpheu version for now, and did not test under linux, but it should work.

Try that :


EDIT: Obviously, under windows it works fine, but under linux, I get FATAL ERROR (shutting down): Bad entity in IndexOfEdict()
. trying to understand. -_-
EDIT2: It does seem a problem with Orpheu and Cz bots
EDIT3: Found the problem. Orpheu problem. Now, trying to understand why it happens.
EDIT4: Found and fixed Orpheu, will update soon.
EDIT5: Orpheu fixed, ok, but there is still a problem with linux. Finally understood what's wrong. Because of optilmization, the function I want to hook Observer_SetMode is "cut" in 2 inside the memory (really not lucky!) and orpheu doesn't handle such case. Using Orpheu, there are some others possibilites, like patching memory. I can try also to udpate the module and seeing if I can hook the function with CHooker. Anyway, there are solutions, I have to test them and seeing what is the best. Will see tomorrow.
__________________

Last edited by Arkshine; 04-15-2013 at 18:31.
Arkshine is offline
Zapy
SourceMod Donor
Join Date: Oct 2004
Location: Stockholm, Sweden
Old 04-16-2013 , 18:58   Re: Module: Admin Free Look
Reply With Quote #146

Quote:
Originally Posted by Arkshine View Post
It would seem I've found an easy fix.
Still orpheu version for now, and did not test under linux, but it should work.

Try that :


EDIT: Obviously, under windows it works fine, but under linux, I get FATAL ERROR (shutting down): Bad entity in IndexOfEdict()
. trying to understand. -_-
EDIT2: It does seem a problem with Orpheu and Cz bots
EDIT3: Found the problem. Orpheu problem. Now, trying to understand why it happens.
EDIT4: Found and fixed Orpheu, will update soon.
EDIT5: Orpheu fixed, ok, but there is still a problem with linux. Finally understood what's wrong. Because of optilmization, the function I want to hook Observer_SetMode is "cut" in 2 inside the memory (really not lucky!) and orpheu doesn't handle such case. Using Orpheu, there are some others possibilites, like patching memory. I can try also to udpate the module and seeing if I can hook the function with CHooker. Anyway, there are solutions, I have to test them and seeing what is the best. Will see tomorrow.
Great news, i will wait patiently
thx for the hard work!
__________________
Community Admin for Warzone.nu
http://www.warzone.nu
Swedish Gaming Community since 2000
Zapy is offline
Send a message via Skype™ to Zapy
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-27-2013 , 14:04   Re: Module: Admin Free Look
Reply With Quote #147

I don't forget you, I can do for sure make something working under windows, but under linux, it's a pain, really. It would have been easy for binaries before the valve update, but now and because of optimization, I can't really hook this function (Observer_SetMode) and I'm struggling trying things + since it needs to check if player is admin complicates things. I don't give up but for now, I'm kind of stuck for linux. Just telling.
__________________

Last edited by Arkshine; 04-27-2013 at 14:06.
Arkshine is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-30-2013 , 16:42   Re: Module: Admin Free Look
Reply With Quote #148

Well, since I'm actually awesome, I take back what said above.

Here v1.5.1, fully working and tested under windows/linux.
It's the module version only and only for hlds version after feb-2013 update. I won't be able to do it with Orpheu.

Thanks to Zapy who has helped to test under linux.

mp_forcechasecam to 2 is now working properly.

A new cvar (as per-request) named amx_adminfreelookmode has been added to force a non-admin players to use specific modes only.
  • 0 : None
  • a : Chase Locked
  • b : Chase Free
  • c : Roaming
  • d : In Eye
  • e : Map Free
  • f : Map Chase
Flags are additives. Example : for Chase Free and In Eye, you will use amx_adminfreelookmode "bd"

Installation instructions / Source code : https://github.com/Arkshine/AdminFreeLook
__________________

Last edited by Arkshine; 03-12-2014 at 09:01. Reason: Updated to 1.5.2
Arkshine is offline
Zapy
SourceMod Donor
Join Date: Oct 2004
Location: Stockholm, Sweden
Old 04-30-2013 , 16:50   Re: Module: Admin Free Look
Reply With Quote #149

Arkshine!
This is some awesome work, really, thank you a billion times!

Requires metamod 1.20-am+
Latest can be found here: http://www.amxmodx.org/downloads.php

I correct my self, the module works with metamod 1.20 but nut as intended (mp_forcechasecam 2 or 3 makes free chase look to locked chase look)

For this plugin to work perfectly, use metamod 1.21-am+ downloadable from the link above.
__________________
Community Admin for Warzone.nu
http://www.warzone.nu
Swedish Gaming Community since 2000

Last edited by Zapy; 05-04-2013 at 13:54.
Zapy is offline
Send a message via Skype™ to Zapy
lqlqlq
Senior Member
Join Date: Jan 2008
Old 05-01-2013 , 03:36   Re: Module: Admin Free Look
Reply With Quote #150

I get an error with this version:
Code:
hlds_linux: malloc.c:2451: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed.
Aborted
When i disabled its OK.

Here is some info:
version:5956

meta list:
Code:
[ 1] AMX Mod X        RUN   -    amxmodx_mm_i386.  v1.8.2-d  ini   Start ANY  
 [ 2] CStrike          RUN   -    cstrike_amxx_i38  v1.8.2-d  pl1   ANY   ANY  
 [ 3] CSX              RUN   -    csx_amxx_i386.so  v1.8.2-d  pl1   ANY   ANY  
 [ 4] MySQL            RUN   -    mysql_amxx_i386.  v1.8.2-d  pl1   ANY   ANY  
 [ 5] FakeMeta         RUN   -    fakemeta_amxx_i3  v1.8.2-d  pl1   ANY   ANY  
 [ 6] Fun              RUN   -    fun_amxx_i386.so  v1.8.2-d  pl1   ANY   ANY  
 [ 7] Engine           RUN   -    engine_amxx_i386  v1.8.2-d  pl1   ANY   ANY  
 [ 8] Ham Sandwich     RUN   -    hamsandwich_amxx  v1.8.2-d  pl1   ANY   ANY
meta version:
Code:
Metamod v1.20p36  2013/02/18 (5:13)
by Will Day
   http://www.metamod.org/
 Patch: Metamod-P (mm-p) v36
 by Jussi Kivilinna
    http://metamod-p.sourceforge.net/
compiled: Feb 19 2013, 00:06:29 EET (optimized)
amxx version:
Code:
AMX Mod X 1.8.2-dev (http://www.amxmodx.org)
Authors:
	David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko
	Felix "SniperBeamer" Geyer, Jonny "Got His Gun" Bergstrom
	Lukasz "SidLuke" Wlasinski, Christian "Basic-Master" Hammacher
	Borja "faluco" Ferrer, Scott "DS" Ehlert
Compiled: Feb 23 2013, 21:56:56
Build ID: 1.8.2-dev 72:cd0ac515a81a
Core mode: JIT+ASM32
I dont modify anything.
OS: Linux Ubuntu 12.10
lqlqlq is offline
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 12:24.


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