Raised This Month: $32 Target: $400
 8% 

AntiEGON


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Half-Life        Category:   Gameplay        Approver:   Hawk552 (427)
Flasher
Senior Member
Join Date: Apr 2008
Old 12-26-2008 , 20:22   AntiEGON
Reply With Quote #1

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).

Attached Files
File Type: sma Get Plugin or Get Source (antiegon.sma - 2856 views - 5.8 KB)

Last edited by Flasher; 11-09-2010 at 12:09.
Flasher is offline
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 12-26-2008 , 22:22   Re: AntiEGON
Reply With Quote #2

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.
__________________

Community / No support through PM
danielkza is offline
Flasher
Senior Member
Join Date: Apr 2008
Old 12-26-2008 , 22:36   Re: AntiEGON
Reply With Quote #3

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.

Last edited by Flasher; 12-26-2008 at 22:38.
Flasher is offline
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 12-26-2008 , 22:37   Re: AntiEGON
Reply With Quote #4

Quote:
Originally Posted by Flasher View Post
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...
__________________

Community / No support through PM

Last edited by danielkza; 12-26-2008 at 22:37. Reason: typo
danielkza is offline
Flasher
Senior Member
Join Date: Apr 2008
Old 12-26-2008 , 22:44   Re: AntiEGON
Reply With Quote #5

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

Last edited by Flasher; 12-26-2008 at 22:47.
Flasher is offline
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 12-26-2008 , 22:47   Re: AntiEGON
Reply With Quote #6

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

Community / No support through PM
danielkza is offline
Flasher
Senior Member
Join Date: Apr 2008
Old 12-26-2008 , 22:51   Re: AntiEGON
Reply With Quote #7

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.
Flasher is offline
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 12-27-2008 , 00:31   Re: AntiEGON
Reply With Quote #8

Quote:
Originally Posted by Flasher View Post
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.
__________________

Community / No support through PM
danielkza is offline
Flasher
Senior Member
Join Date: Apr 2008
Old 12-27-2008 , 20:40   Re: AntiEGON
Reply With Quote #9

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

Last edited by Flasher; 12-29-2008 at 01:41. Reason: Discussion moved to Scripting Help
Flasher is offline
Flasher
Senior Member
Join Date: Apr 2008
Old 01-02-2009 , 21:35   Re: AntiEGON
Reply With Quote #10

Version 1.5
[!] Fixed: recursive calls to handler of CurWeapon event prevented thus eliminating "Run time error 3: stack error".
Flasher is offline
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 12:02.


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