AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   AntiEGON (https://forums.alliedmods.net/showthread.php?t=82626)

Flasher 12-26-2008 20:22

AntiEGON
 
2 Attachment(s)
AntiEgon plugin by Lev.
Authors of parts of code: Flipper_SPb, KORD_12.7, DaTa. Thank you m8s!

Info:
Plugin is designed to modify egon weapon usage.
Supported modes:
  • 0 - plugin makes no changes;
  • 1 - egon damage is multiplied by specilied factor (default mode);
  • 2 - egon weapon is replaced with ammo_gaussclip which is spoofed as egon (same behaviour as in antiegon version 1.5);
  • 3 - egon weapon is replaced with specified entity (same behaviour as in antiegon version 2.0).
CVARs:
antiegon_mode <0|1|2|3> (default=1) // Plugin mode.
antiegon_multiplier <float number> (default=0.5) // Damage modifier factor.
antiegon_entityset <entity name> (default=ammo_gaussclip) // Replacement entity name (for mode 3).
Installation:
  • put antiegon.amxx to plugins folder;
  • add antiegon.amxx to config\plugins.ini file.
Credits:
DaTa for entity replacement code.
Flipper_SPb for spoofing replacement entity as egon and code improvements.
KORD_12.7 for damage modifying code.
Change Log:
v1.5 (downloaded 308 times)
[!] Fixed: recursive calls to handler of CurWeapon event prevented thus eliminating "Run time error 3: stack error".
v2.0 (downloaded 436 times)
[!] Change: this version is using pure new way - just replacing egon to whatever you want (by default - gauss ammo). Thanks to Argus.
v3.0 [2010.03.12] (downloaded 2 times)
! New: different working modes.
! New: mode with modifying egon damage.
! New: mode with spoofing replacement entity as egon.
v3.1 [2010.03.12] (downloaded 208 times)
! Fixed: damage multiplier now working correctly.
v3.2 [2010.11.09]
! Fixed: spoofed egon (mode 2) is falling from level if stayed close to a wall (on boot_camp for example).


danielkza 12-26-2008 22:22

Re: AntiEGON
 
I see no reason why the error would happen. You should try adding some debug logs printing some of the values. I would do that but I'm on the notebook, and Steam is in use in the desktop.

Flasher 12-26-2008 22:36

Re: AntiEGON
 
It faults on "new" statment. I see nothing I could print to help with this. As I understand memory is somehow leaks. Also I doesn't find how to reproduce error. I have small capacity server (max 8 players) so I don't understand why this happen at all.

danielkza 12-26-2008 22:37

Re: AntiEGON
 
Quote:

Originally Posted by Flasher (Post 733791)
It faults on "new" statment. I see nothing I could print to help with this. As I understand memory is somehow leaks.

Line 79:
Code:

prevWeapon[plrid] = weapons[num - 1];
Try printing plrid and num, you have nothing to lose...

Flasher 12-26-2008 22:44

Re: AntiEGON
 
Oh, sorry man. I posted log from different version. In this version it would be line 65.
BTW In some plugin versions AMXX doesn't display even the line where error happens (I think this is some line order dependent):
Code:

L 12/25/2008 - 17:07:13: Start of error session.
L 12/25/2008 - 17:07:13: Info (map "subtransit") (file "addons/amxmodx/logs/error_20081225.log")
L 12/25/2008 - 17:07:13: [AMXX] Displaying debug trace (plugin "antiegon.amxx")
L 12/25/2008 - 17:07:13: [AMXX] Run time error 3: stack error
L 12/25/2008 - 17:51:52: Start of error session.
L 12/25/2008 - 17:51:52: Info (map "subtransit") (file "addons/amxmodx/logs/error_20081225.log")
L 12/25/2008 - 17:51:52: [AMXX] Displaying debug trace (plugin "antiegon.amxx")
L 12/25/2008 - 17:51:52: [AMXX] Run time error 3: stack error


danielkza 12-26-2008 22:47

Re: AntiEGON
 
Well, there's no error in there, maybe it's an OS/library problem. I'll test it later in my box.

Flasher 12-26-2008 22:51

Re: AntiEGON
 
No. There is error. It just can't display stack trace.
I will try to print heapspace() to log in different parts of plugin may be it will help to find leak.

danielkza 12-27-2008 00:31

Re: AntiEGON
 
Quote:

Originally Posted by Flasher (Post 733799)
No. There is error. It just can't display stack trace.
I will try to print heapspace() to log in different parts of plugin may be it will help to find leak.

I mean I see nothing wrong with the code, or anything that could cause a stack error.

Flasher 12-27-2008 20:40

Re: AntiEGON
 
Ok. I give up for some time.
Started new thread in Scripting Help (http://forums.alliedmods.net/showthread.php?t=82735).

Flasher 01-02-2009 21:35

Re: AntiEGON
 
Version 1.5
[!] Fixed: recursive calls to handler of CurWeapon event prevented thus eliminating "Run time error 3: stack error".


All times are GMT -4. The time now is 08:38.

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