Raised This Month: $65 Target: $400
 16% 

Super Destructive Grenades V2


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-14-2014 , 05:48   Re: Super Destructive Grenades V2
Reply With Quote #51

I see no problem, though cvars should be put in amxx.cfg.

Just tested myself without your cvar values and it works fine. So it's most likely you did not test properly or cvars was not set as expected, something you can check with "cvarlist sdg_".
__________________
Arkshine is offline
MALON
Member
Join Date: Jan 2008
Old 05-14-2014 , 12:14   Re: Super Destructive Grenades V2
Reply With Quote #52

Quote:
Originally Posted by Arkshine View Post
I see no problem, though cvars should be put in amxx.cfg.

Just tested myself without your cvar values and it works fine. So it's most likely you did not test properly or cvars was not set as expected, something you can check with "cvarlist sdg_".
Hm, Strange....When I have the CVARS in server.cfg, I get the below result:

Code:
cvarlist sdg_
CVar List
--------------
sdg_break_mode  :        2
sdg_breakables_damage :     1000
sdg_explode_radius :     1000
sdg_knockback_player :     1000
sdg_knockback_weapons :     1000
sdg_through_walls :        1
sdg_version     :       21, sv
--------------
  7 CVars for [sdg_]
CvarList ? for syntax
But if I put the cvars in amxx.cfg like you said, this is the result:

Code:
cvarlist sdg_
CVar List
--------------
sdg_break_mode  :        1
sdg_breakables_damage :       75
sdg_explode_radius :      300
sdg_knockback_player :        8
sdg_knockback_weapons :       10
sdg_through_walls :        0
sdg_version     :       21, sv
--------------
  7 CVars for [sdg_]
CvarList ? for syntax
I went back and forth 5 times, double checking and making absolutely sure that my claim is true.

EDIT: Forgot to mention, that even when the cvars show up as being properly set, I still do not die, go flying, or break boxes.

EDIT2: If anyone is curious, I can get other plugins to work, such as Advanced Team Attack Controls, AMX Parachute, Poison Bullets, etc, just not this one

Last edited by MALON; 05-14-2014 at 12:33.
MALON is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-14-2014 , 12:51   Re: Super Destructive Grenades V2
Reply With Quote #53

I still think you don't test properly. But assuming you're doing right, the only other possible I can think is the function which is called when an explosion happens, is not triggered.

Compile this plugin, I've added debug text.

1) Make sure you're using this plugin (amxx list -> you should see version 2.1.0-debug)
2) In game just buy an HE and throw it on the ground and see what happens.

If nothing happens, check the AMXX log (amxmodx/logs/) ; in latest you should see output (at least first line, example below).
E.g.
Code:
L 05/14/2014 - 17:47:23: [Untitled.amxx] Orpheu Hook: 1
L 05/14/2014 - 17:47:43: [Untitled.amxx] CGrenade_Detonate3 : 317
L 05/14/2014 - 17:47:43: [Untitled.amxx]        m_usEvent = 25
L 05/14/2014 - 17:47:43: [Untitled.amxx]                find_knockback_entities = j = 0, ent = 317, owner = 8, origin = 1608.2 2595.0 -7.9 radius = 300.0, damage = 75.0, ff = 0, mode = 1, wallhit = 0
L 05/14/2014 - 17:47:43: [Untitled.amxx]                find_knockback_entities = j = 1, ent = 317, owner = 8, origin = 1608.2 2595.0 -57.9 radius = 300.0, damage = 75.0, ff = 0, mode = 1, wallhit = 0
L 05/14/2014 - 17:47:43: [Untitled.amxx]                find_knockback_entities = j = 2, ent = 317, owner = 8, origin = 1608.2 2595.0 -82.9 radius = 300.0, damage = 75.0, ff = 0, mode = 1, wallhit = 0
L 05/14/2014 - 17:47:43: [Untitled.amxx]                find_knockback_entities = j = 3, ent = 317, owner = 8, origin = 1608.2 2595.0 -82.9 radius = 300.0, damage = 75.0, ff = 0, mode = 1, wallhit = 0
Attached Files
File Type: sma Get Plugin or Get Source (super_destructive_grenades_v21.sma - 171 views - 6.9 KB)
__________________

Last edited by Arkshine; 05-14-2014 at 12:52.
Arkshine is offline
MALON
Member
Join Date: Jan 2008
Old 05-14-2014 , 13:06   Re: Super Destructive Grenades V2
Reply With Quote #54

Quote:
Originally Posted by Arkshine View Post
I still think you don't test properly. But assuming you're doing right, the only other possible I can think is the function which is called when an explosion happens, is not triggered.

Compile this plugin, I've added debug text.

1) Make sure you're using this plugin (amxx list -> you should see version 2.1.0-debug)
2) In game just buy an HE and throw it on the ground and see what happens.

If nothing happens, check the AMXX log (amxmodx/logs/) ; in latest you should see output (at least first line, example below).
E.g.
Code:
L 05/14/2014 - 17:47:23: [Untitled.amxx] Orpheu Hook: 1
L 05/14/2014 - 17:47:43: [Untitled.amxx] CGrenade_Detonate3 : 317
L 05/14/2014 - 17:47:43: [Untitled.amxx]        m_usEvent = 25
L 05/14/2014 - 17:47:43: [Untitled.amxx]                find_knockback_entities = j = 0, ent = 317, owner = 8, origin = 1608.2 2595.0 -7.9 radius = 300.0, damage = 75.0, ff = 0, mode = 1, wallhit = 0
L 05/14/2014 - 17:47:43: [Untitled.amxx]                find_knockback_entities = j = 1, ent = 317, owner = 8, origin = 1608.2 2595.0 -57.9 radius = 300.0, damage = 75.0, ff = 0, mode = 1, wallhit = 0
L 05/14/2014 - 17:47:43: [Untitled.amxx]                find_knockback_entities = j = 2, ent = 317, owner = 8, origin = 1608.2 2595.0 -82.9 radius = 300.0, damage = 75.0, ff = 0, mode = 1, wallhit = 0
L 05/14/2014 - 17:47:43: [Untitled.amxx]                find_knockback_entities = j = 3, ent = 317, owner = 8, origin = 1608.2 2595.0 -82.9 radius = 300.0, damage = 75.0, ff = 0, mode = 1, wallhit = 0
Okay, this is what I get:

Code:
amxx list
Currently loaded plugins:
       name                    version     author            file             status
 [  1] Super Destructive Gren  2.1.0-debu  hornet            super_destructi  running
1 plugins, 1 running

cvarlist sdg_
CVar List
--------------
sdg_break_mode  :        2
sdg_breakables_damage :     1000
sdg_explode_radius :     1000
sdg_knockback_player :     1000
sdg_knockback_weapons :     1000
sdg_through_walls :        1
sdg_version     :       21, sv
--------------
  7 CVars for [sdg_]
CvarList ? for syntax

L 05/14/2014 - 16:03:11: [super_destructive_grenades_v21.amxx] CGrenade_Detonate3 : 125
L 05/14/2014 - 16:03:11: [super_destructive_grenades_v21.amxx]  m_usEvent = 0
EDIT: forgot to add amxx logs...this is what I have

Code:
L 05/14/2014 - 16:02:10: -------- Mapchange to de_dust2 --------
L 05/14/2014 - 16:02:13: [super_destructive_grenades_v21.amxx] Orpheu Hook: 1
L 05/14/2014 - 16:03:11: [super_destructive_grenades_v21.amxx] CGrenade_Detonate3 : 125
L 05/14/2014 - 16:03:11: [super_destructive_grenades_v21.amxx]     m_usEvent = 0

Last edited by MALON; 05-14-2014 at 13:08.
MALON is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-14-2014 , 13:16   Re: Super Destructive Grenades V2
Reply With Quote #55

Ah found. I bet you're testing under linux, isn't it?
Try this one (I've removed the debug text), v2.1.1. This should work now.

@Author; grenade is derived from CBaseMonster so linux offset is +5 not +4.
Attached Files
File Type: sma Get Plugin or Get Source (super_destructive_grenades_v21.sma - 217 views - 6.5 KB)
__________________

Last edited by Arkshine; 05-14-2014 at 13:17.
Arkshine is offline
MALON
Member
Join Date: Jan 2008
Old 05-14-2014 , 13:31   Re: Super Destructive Grenades V2
Reply With Quote #56

Quote:
Originally Posted by Arkshine View Post
Ah found. I bet you're testing under linux, isn't it?
Try this one (I've removed the debug text), v2.1.1. This should work now.

@Author; grenade is derived from CBaseMonster so linux offset is +5 not +4.
Hey! It worked now!

The funny thing is that my very first post was me asking "So this plugin doesn't work with linux?" and then in my third post, it was explicitly stated that I was running linux >_> <_<

Thank you though, everything is successful!
MALON is offline
JuanPabloOlivosCordova
Senior Member
Join Date: Aug 2013
Old 10-05-2018 , 03:35   Re: Super Destructive Grenades V2
Reply With Quote #57

hi it didnt work

I tried arhskines one

it worked for one second, then my server crashed, I can send what the console said, but it wrote like 1000 sentences after it crashed


im using gungmae

and orpeu
__________________
<a href="https://www.gametracker.com/server_info/108.61.184.122:27065/" target="_blank"><img src="https://cache.gametracker.com/server_info/108.61.184.122:27065/b_560_95_1.png" border="0" width="560" height="95" alt=""/></a>
JuanPabloOlivosCordova is offline
JuanPabloOlivosCordova
Senior Member
Join Date: Aug 2013
Old 10-13-2018 , 08:37   Re: Super Destructive Grenades V2
Reply With Quote #58

hi sorry I meant ,I used Hornets plugin, it only worked for one second, after I thew the nade, then the server crashes
__________________
<a href="https://www.gametracker.com/server_info/108.61.184.122:27065/" target="_blank"><img src="https://cache.gametracker.com/server_info/108.61.184.122:27065/b_560_95_1.png" border="0" width="560" height="95" alt=""/></a>
JuanPabloOlivosCordova is offline
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 10-30-2018 , 10:17   Re: Super Destructive Grenades V2
Reply With Quote #59

Any idea why I get this error?
PHP Code:
L 10/30/2018 14:20:17Start of error session.
L 10/30/2018 14:20:17Info (map "fy_snow") (file "addons/amxmodx/logs/error_20181030.log")
L 10/30/2018 14:20:17: [ORPHEU] Function "CGrenade::Detonate3" not found
L 10
/30/2018 14:20:17: [AMXXDisplaying debug trace (plugin "super_destructive_grenades_v21.amxx")
L 10/30/2018 14:20:17: [AMXXRun time error 10native error (native "OrpheuGetFunction")
L 10/30/2018 14:20:17: [AMXX]    [0super_destructive_grenades_v21.sma::plugin_init (line 88
Note that I did this
PHP Code:
Extract CGrenade folder into cstrike/addons/amxmodx/configs/orpheu/functions
Edit- my bad... problem was in that I wryte plugin name in plugins.ini

Last edited by Krtola; 10-30-2018 at 12:23.
Krtola 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 06:22.


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