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

Requesting a HE damage multiplier that works and does not mess with scoreboard.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ark_Procession
Senior Member
Join Date: Jun 2020
Location: Argentina
Old 06-24-2022 , 18:44   Requesting a HE damage multiplier that works and does not mess with scoreboard.
Reply With Quote #1

Hello, been looking for this for ages and every plugin i found does not work, scoreboard doesn't count or bugs something else or sometimes does not work. i want a consistent he damage multiplier , is this possible to do?

note that i am using orpheu, rehlds, reapi and regame if useful.

can someone please make this for me?

thank you all.

Last edited by Ark_Procession; 06-24-2022 at 18:45.
Ark_Procession is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 06-25-2022 , 18:35   Re: Requesting a HE damage multiplier that works and does not mess with scoreboard.
Reply With Quote #2

Quote:
Originally Posted by Ark_Procession View Post
Hello, been looking for this for ages and every plugin i found does not work, scoreboard doesn't count or bugs something else or sometimes does not work. i want a consistent he damage multiplier , is this possible to do?

note that i am using orpheu, rehlds, reapi and regame if useful.

can someone please make this for me?

thank you all.
Code:
/*Tired of weak grenades?*/ #include <amxmodx> #include <amxmisc> #include <engine> #include <hamsandwich> #define PLUGIN  "Grenade Damage Adjust" #define VERSION "06-25-22" #define AUTHOR  "SPiNX" #define HE_IMMUNITY_ACCESS     ADMIN_RCON #if !defined DMG_GRENADE const DMG_GRENADE = (1<<24) #endif new Float:Xmultipler new const CvarXmultiplerDesc[]="Grenade damage multiplier" new g_MOD_DMG public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR);     register_touch("grenade", "func_breakable", "@pop")     register_touch("grenade", "func_pushable", "@pop")     RegisterHam(Ham_TakeDamage, "player", "Fw_Damage");     bind_pcvar_num(get_cvar_pointer("mp_grenade_multiplier") ?     get_cvar_pointer("mp_grenade_multiplier") :     create_cvar("mp_grenade_multiplier", "10.0" ,FCVAR_SERVER, CvarXmultiplerDesc,.has_min = true, .min_val = 0.0, .has_max = true, .max_val = 10.0), Xmultipler)     g_MOD_DMG = cstrike_running() ? DMG_GRENADE : DMG_BLAST } @pop(grenade, breakable)     ExecuteHam(Ham_TakeDamage,breakable,breakable,grenade,500.0,DMG_CRUSH) public Fw_Damage(victim, inflictor, attacker, Float:fDamage, dmgbits) {     if(is_user_connected(victim) && !is_user_bot(attacker))     {         if( dmgbits == g_MOD_DMG)         {             if(fDamage)             {                     #define DAMAGE       4                     new Damage_adj  = fDamage*Xmultipler;                     if(/*access(victim, HE_IMMUNITY_ACCESS) || */!Xmultipler)                         return HAM_SUPERCEDE                     else                     {                         SetHamParamFloat(DAMAGE,float(Damage_adj))                         if(is_user_connected(attacker))                         {                             client_print attacker, print_center, "%i", Damage_adj                             client_print attacker, print_console, "%n hit %n with %i grenade damage", attacker, victim, Damage_adj                         }                     }             }         }         else return HAM_IGNORED     }     return HAM_HANDLED }
__________________
DJEarthQuake is offline
Ark_Procession
Senior Member
Join Date: Jun 2020
Location: Argentina
Old 06-26-2022 , 01:59   Re: Requesting a HE damage multiplier that works and does not mess with scoreboard.
Reply With Quote #3

Quote:
Originally Posted by DJEarthQuake View Post
Code:
/*Tired of weak grenades?*/ #include <amxmodx> #include <amxmisc> #include <engine> #include <hamsandwich> #define PLUGIN  "Grenade Damage Adjust" #define VERSION "06-25-22" #define AUTHOR  "SPiNX" #define HE_IMMUNITY_ACCESS     ADMIN_RCON #if !defined DMG_GRENADE const DMG_GRENADE = (1<<24) #endif new Float:Xmultipler new const CvarXmultiplerDesc[]="Grenade damage multiplier" new g_MOD_DMG public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR);     register_touch("grenade", "func_breakable", "@pop")     register_touch("grenade", "func_pushable", "@pop")     RegisterHam(Ham_TakeDamage, "player", "Fw_Damage");     bind_pcvar_num(get_cvar_pointer("mp_grenade_multiplier") ?     get_cvar_pointer("mp_grenade_multiplier") :     create_cvar("mp_grenade_multiplier", "10.0" ,FCVAR_SERVER, CvarXmultiplerDesc,.has_min = true, .min_val = 0.0, .has_max = true, .max_val = 10.0), Xmultipler)     g_MOD_DMG = cstrike_running() ? DMG_GRENADE : DMG_BLAST } @pop(grenade, breakable)     ExecuteHam(Ham_TakeDamage,breakable,breakable,grenade,500.0,DMG_CRUSH) public Fw_Damage(victim, inflictor, attacker, Float:fDamage, dmgbits) {     if(is_user_connected(victim) && !is_user_bot(attacker))     {         if( dmgbits == g_MOD_DMG)         {             if(fDamage)             {                     #define DAMAGE       4                     new Damage_adj  = fDamage*Xmultipler;                     if(/*access(victim, HE_IMMUNITY_ACCESS) || */!Xmultipler)                         return HAM_SUPERCEDE                     else                     {                         SetHamParamFloat(DAMAGE,float(Damage_adj))                         if(is_user_connected(attacker))                         {                             client_print attacker, print_center, "%i", Damage_adj                             client_print attacker, print_console, "%n hit %n with %i grenade damage", attacker, victim, Damage_adj                         }                     }             }         }         else return HAM_IGNORED     }     return HAM_HANDLED }
Forgot to add, running condition zero.

Is that the reason this is not working for me?

EDIT: tested it with bots, can you make it so bots are not left out?

HTML Code:
if(is_user_connected(victim) && !is_user_bot(attacker))

Last edited by Ark_Procession; 06-26-2022 at 02:01.
Ark_Procession is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 06-26-2022 , 10:13   Re: Requesting a HE damage multiplier that works and does not mess with scoreboard.
Reply With Quote #4

Quote:
Originally Posted by Ark_Procession View Post
Forgot to add, running condition zero.
Rewritten with cs_ham_bots_api. Install it and include.
PHP Code:
/*Tired of weak grenades?*/
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <hamsandwich>

#define CZ ///uncomment for CZ bot damage

#if defined CZ
#tryinclude cs_ham_bots_api
//https://github.com/djearthquake/amxx/tree/main/scripting/czero/AI
#endif

#define PLUGIN  "Grenade Damage Adjust"
#define VERSION "06-25-22"
#define AUTHOR  "SPiNX"

#define HE_IMMUNITY_ACCESS     ADMIN_RCON

#if !defined DMG_GRENADE
const DMG_GRENADE = (1<<24)
#endif

new Float:Xmultipler
new const CvarXmultiplerDesc[]="Grenade damage multiplier"
new bool:bOF_run
new g_MOD_DMG

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);

    
register_touch("grenade""func_breakable""@pop")
    
register_touch("grenade""func_pushable""@pop")

    
bind_pcvar_num(get_cvar_pointer("mp_grenade_multiplier") ?
    
get_cvar_pointer("mp_grenade_multiplier") :
    
create_cvar("mp_grenade_multiplier""10.0" ,FCVAR_SERVERCvarXmultiplerDesc,.has_min true, .min_val 0.0, .has_max true, .max_val 10.0), Xmultipler)

    
bOF_run =  is_running("gearbox") || is_running("valve")
    
g_MOD_DMG = !bOF_run DMG_GRENADE DMG_BLAST

    RegisterHam
(Ham_TakeDamage"player""Fw_Damage");
#if defined CZ
    
if(is_running("czero"))
    {
        
RegisterHamBots(Ham_TakeDamage"Fw_Damage")
    }
#endif
}

@
pop(grenadebreakable)
    
ExecuteHam(Ham_TakeDamage,breakable,breakable,grenade,500.0,DMG_CRUSH)

public 
Fw_Damage(victiminflictorattackerFloat:fDamagedmgbits)
{
    if(
is_user_connected(victim) && !is_user_bot(attacker))
    {
        if( 
dmgbits == g_MOD_DMG)
        {
            if(
fDamage)
            {
                    
#define DAMAGE       4
                    
new Damage_adj  fDamage*Xmultipler;

                    if(
/*access(victim, HE_IMMUNITY_ACCESS) ||*/ !Xmultipler)
                        return 
HAM_SUPERCEDE
                    
else
                    {
                        
SetHamParamFloat(DAMAGEfloat(Damage_adj))
                        if(
is_user_connected(attacker))
                        {
                            
client_print attackerprint_center"%d"Damage_adj
                            client_print attacker
print_console"%n hit %n with %d grenade damage"attackervictimDamage_adj
                        
}

                    }


            }

        }
        else return 
HAM_IGNORED
    
}
    return 
HAM_HANDLED

__________________

Last edited by DJEarthQuake; 06-26-2022 at 10:18. Reason: #define CZ so not to break all other mods!
DJEarthQuake is offline
Ark_Procession
Senior Member
Join Date: Jun 2020
Location: Argentina
Old 06-26-2022 , 12:35   Re: Requesting a HE damage multiplier that works and does not mess with scoreboard.
Reply With Quote #5

Quote:
Originally Posted by DJEarthQuake View Post
Rewritten with cs_ham_bots_api. Install it and include.
PHP Code:
/*Tired of weak grenades?*/
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <hamsandwich>

#define CZ ///uncomment for CZ bot damage

#if defined CZ
#tryinclude cs_ham_bots_api
//https://github.com/djearthquake/amxx/tree/main/scripting/czero/AI
#endif

#define PLUGIN  "Grenade Damage Adjust"
#define VERSION "06-25-22"
#define AUTHOR  "SPiNX"

#define HE_IMMUNITY_ACCESS     ADMIN_RCON

#if !defined DMG_GRENADE
const DMG_GRENADE = (1<<24)
#endif

new Float:Xmultipler
new const CvarXmultiplerDesc[]="Grenade damage multiplier"
new bool:bOF_run
new g_MOD_DMG

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);

    
register_touch("grenade""func_breakable""@pop")
    
register_touch("grenade""func_pushable""@pop")

    
bind_pcvar_num(get_cvar_pointer("mp_grenade_multiplier") ?
    
get_cvar_pointer("mp_grenade_multiplier") :
    
create_cvar("mp_grenade_multiplier""10.0" ,FCVAR_SERVERCvarXmultiplerDesc,.has_min true, .min_val 0.0, .has_max true, .max_val 10.0), Xmultipler)

    
bOF_run =  is_running("gearbox") || is_running("valve")
    
g_MOD_DMG = !bOF_run DMG_GRENADE DMG_BLAST

    RegisterHam
(Ham_TakeDamage"player""Fw_Damage");
#if defined CZ
    
if(is_running("czero"))
    {
        
RegisterHamBots(Ham_TakeDamage"Fw_Damage")
    }
#endif
}

@
pop(grenadebreakable)
    
ExecuteHam(Ham_TakeDamage,breakable,breakable,grenade,500.0,DMG_CRUSH)

public 
Fw_Damage(victiminflictorattackerFloat:fDamagedmgbits)
{
    if(
is_user_connected(victim) && !is_user_bot(attacker))
    {
        if( 
dmgbits == g_MOD_DMG)
        {
            if(
fDamage)
            {
                    
#define DAMAGE       4
                    
new Damage_adj  fDamage*Xmultipler;

                    if(
/*access(victim, HE_IMMUNITY_ACCESS) ||*/ !Xmultipler)
                        return 
HAM_SUPERCEDE
                    
else
                    {
                        
SetHamParamFloat(DAMAGEfloat(Damage_adj))
                        if(
is_user_connected(attacker))
                        {
                            
client_print attackerprint_center"%d"Damage_adj
                            client_print attacker
print_console"%n hit %n with %d grenade damage"attackervictimDamage_adj
                        
}

                    }


            }

        }
        else return 
HAM_IGNORED
    
}
    return 
HAM_HANDLED

Seems solid work, it is working really great. Thank you so so much! finally i have this!

i can donate little amount of USD because i dont use that currency in my country.
PM your paypal account

Last edited by Ark_Procession; 06-26-2022 at 12:36. Reason: forgot to thank!
Ark_Procession is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 06-26-2022 , 13:50   Re: Requesting a HE damage multiplier that works and does not mess with scoreboard.
Reply With Quote #6

You are welcome. I might take you up on that and send a message.

It helped me also. This is what I was using before, which is a monster by comparison.

OP4 Death Accelerator Ammo | HL Neon grenade trails The radius of the damage is substantially increased.

While I keep it on the down low radioactive grenade makes an interesting feature on CZ also. Since the C4 is a grenade this zaps people who stand too close. Bots if programmed with screenfade will be stunned and freeze when hit with the radioactivity. Suddenly all grenades are lethal. As the grenades bounce they make various entertaining tones. Solid as hell. Tested for years.

The Half-Life radioactive Neon grenade trail grenades, mortars, hive, crossbow, RPG project!



There is yet another plugin I can see you digging called Ark. One of them is death by "Ark sight" if too close when it detonates around inactive players. Never released. I should as to back it up. It was based off Satellite Rain. The think and the removal of it crashes 1 out of 100. Haven't looked at it in years. The explosion matches the radioactivity. When real close users see purple and green when medium range.
__________________
DJEarthQuake is offline
Ark_Procession
Senior Member
Join Date: Jun 2020
Location: Argentina
Old 06-26-2022 , 15:19   Re: Requesting a HE damage multiplier that works and does not mess with scoreboard.
Reply With Quote #7

Quote:
Originally Posted by DJEarthQuake View Post
You are welcome. I might take you up on that and send a message.

It helped me also. This is what I was using before, which is a monster by comparison.

OP4 Death Accelerator Ammo | HL Neon grenade trails The radius of the damage is substantially increased.

While I keep it on the down low radioactive grenade makes an interesting feature on CZ also. Since the C4 is a grenade this zaps people who stand too close. Bots if programmed with screenfade will be stunned and freeze when hit with the radioactivity. Suddenly all grenades are lethal. As the grenades bounce they make various entertaining tones. Solid as hell. Tested for years.

The Half-Life radioactive Neon grenade trail grenades, mortars, hive, crossbow, RPG project!



There is yet another plugin I can see you digging called Ark. One of them is death by "Ark sight" if too close when it detonates around inactive players. Never released. I should as to back it up. It was based off Satellite Rain. The think and the removal of it crashes 1 out of 100. Haven't looked at it in years. The explosion matches the radioactivity. When real close users see purple and green when medium range.
That looks neat!

but i am more looking for "realism" in czero. thats why my requests are usually simple enhances & tweaks
and quality of life plugins!

let me know if you got some of those ! lol

really man, thanks for your time and the grenade multiplier it will make a difference!!
Ark_Procession is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 06-26-2022 , 16:36   Re: Requesting a HE damage multiplier that works and does not mess with scoreboard.
Reply With Quote #8

C4 experience might be the only one up your alley as I code mainly for HL OF, the first mod of HL.
The more frags the player has the shorter the fuse when T and the more frags one has when a CT, experience, it increases the timer based on that. It makes a small TE_LIGHTNING between defuser and C4.
__________________
DJEarthQuake is offline
Ark_Procession
Senior Member
Join Date: Jun 2020
Location: Argentina
Old 06-26-2022 , 21:04   Re: Requesting a HE damage multiplier that works and does not mess with scoreboard.
Reply With Quote #9

Quote:
Originally Posted by DJEarthQuake View Post
C4 experience might be the only one up your alley as I code mainly for HL OF, the first mod of HL.
The more frags the player has the shorter the fuse when T and the more frags one has when a CT, experience, it increases the timer based on that. It makes a small TE_LIGHTNING between defuser and C4.
i did not understand well what it does, but will check it out! thanks a lot!

speaking of c4, with you experience with making plugins, do you think it would be far to complicated
to separate the timer fix in this plugin to a new plugin? : https://forums.alliedmods.net/showthread.php?t=338128
Ark_Procession is offline
Ark_Procession
Senior Member
Join Date: Jun 2020
Location: Argentina
Old 06-27-2022 , 12:18   Re: Requesting a HE damage multiplier that works and does not mess with scoreboard.
Reply With Quote #10

Quote:
Originally Posted by DJEarthQuake View Post
Rewritten with cs_ham_bots_api. Install it and include.
PHP Code:
/*Tired of weak grenades?*/
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <hamsandwich>

#define CZ ///uncomment for CZ bot damage

#if defined CZ
#tryinclude cs_ham_bots_api
//https://github.com/djearthquake/amxx/tree/main/scripting/czero/AI
#endif

#define PLUGIN  "Grenade Damage Adjust"
#define VERSION "06-25-22"
#define AUTHOR  "SPiNX"

#define HE_IMMUNITY_ACCESS     ADMIN_RCON

#if !defined DMG_GRENADE
const DMG_GRENADE = (1<<24)
#endif

new Float:Xmultipler
new const CvarXmultiplerDesc[]="Grenade damage multiplier"
new bool:bOF_run
new g_MOD_DMG

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);

    
register_touch("grenade""func_breakable""@pop")
    
register_touch("grenade""func_pushable""@pop")

    
bind_pcvar_num(get_cvar_pointer("mp_grenade_multiplier") ?
    
get_cvar_pointer("mp_grenade_multiplier") :
    
create_cvar("mp_grenade_multiplier""10.0" ,FCVAR_SERVERCvarXmultiplerDesc,.has_min true, .min_val 0.0, .has_max true, .max_val 10.0), Xmultipler)

    
bOF_run =  is_running("gearbox") || is_running("valve")
    
g_MOD_DMG = !bOF_run DMG_GRENADE DMG_BLAST

    RegisterHam
(Ham_TakeDamage"player""Fw_Damage");
#if defined CZ
    
if(is_running("czero"))
    {
        
RegisterHamBots(Ham_TakeDamage"Fw_Damage")
    }
#endif
}

@
pop(grenadebreakable)
    
ExecuteHam(Ham_TakeDamage,breakable,breakable,grenade,500.0,DMG_CRUSH)

public 
Fw_Damage(victiminflictorattackerFloat:fDamagedmgbits)
{
    if(
is_user_connected(victim) && !is_user_bot(attacker))
    {
        if( 
dmgbits == g_MOD_DMG)
        {
            if(
fDamage)
            {
                    
#define DAMAGE       4
                    
new Damage_adj  fDamage*Xmultipler;

                    if(
/*access(victim, HE_IMMUNITY_ACCESS) ||*/ !Xmultipler)
                        return 
HAM_SUPERCEDE
                    
else
                    {
                        
SetHamParamFloat(DAMAGEfloat(Damage_adj))
                        if(
is_user_connected(attacker))
                        {
                            
client_print attackerprint_center"%d"Damage_adj
                            client_print attacker
print_console"%n hit %n with %d grenade damage"attackervictimDamage_adj
                        
}

                    }


            }

        }
        else return 
HAM_IGNORED
    
}
    return 
HAM_HANDLED


Request #1: Please, if you may remove ability to break "plant zone boxes" or whatever they are called
since when a Hegrenade touches them by throwing it, they will explode dramatically and remove essential cover on plant zones.

Bug detected: Probably related to Request #1, If you plant the C4 in those boxes , after planting, the box you are standing on explodes, killing you and anyone near.

Request #2: Deactivate by CVAR the damage print info.

Last edited by Ark_Procession; 06-27-2022 at 12:18.
Ark_Procession 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 21:11.


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