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

Grenade damage changer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SS. Kommando
Member
Join Date: Oct 2005
Old 06-01-2006 , 14:15   Grenade damage changer
Reply With Quote #1

I want a plugin that can change grenade damage. The reason being that I've got a non falldamage and grenade knockback plugin, and I need this one so I can make it possible to do grenade-jumps on my server.

The game I want it to be for is zombie panic: www.zombiepanic.org
SS. Kommando is offline
SS. Kommando
Member
Join Date: Oct 2005
Old 06-01-2006 , 14:16  
Reply With Quote #2

By the way, if there is any plugin like this already, please inform me. I have been searching but could not find anything like this.
SS. Kommando is offline
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 06-01-2006 , 14:22  
Reply With Quote #3

I made a plugin that multiplies the damage of a grenade
http://forums.alliedmods.net/showthread.php?t=28602
__________________
- Bye bye!
nightscreem is offline
SS. Kommando
Member
Join Date: Oct 2005
Old 06-01-2006 , 17:07  
Reply With Quote #4

Yes, I know. I have tried it already, but it couldn't make the damage any weaker. Do you think you please could make it possible to reduce damage - even remove it, if possible?

Thanks for reply nonetheless.
SS. Kommando is offline
SS. Kommando
Member
Join Date: Oct 2005
Old 06-03-2006 , 10:14  
Reply With Quote #5

Hey, someone reply to this!
SS. Kommando is offline
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 06-03-2006 , 19:54  
Reply With Quote #6

if you want it weaker set amx_hemulti to 0.5 or something
1 = normal
0.5 = half
__________________
- Bye bye!
nightscreem is offline
SS. Kommando
Member
Join Date: Oct 2005
Old 06-04-2006 , 13:18  
Reply With Quote #7

I only tested to put minus, but I'll try what you said. Thanks for the input. I will say if it works once I have tried it.
SS. Kommando is offline
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 06-05-2006 , 08:56  
Reply With Quote #8

LOL
if you do amx_he mutli -2
you will get damage * -2
example
Quote:
60*-2 = -120
so health=100
100-(-120)
so 100+120
that's math
so he normally he would get health instead of losing it
__________________
- Bye bye!
nightscreem is offline
SS. Kommando
Member
Join Date: Oct 2005
Old 06-05-2006 , 12:07  
Reply With Quote #9

Apparently this doesn't work for the game I have server for. Tested it again but with no results.
SS. Kommando is offline
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 06-05-2006 , 13:16  
Reply With Quote #10

try this version
now you can use the 0.5
I don't know it will show killed with grenade
Code:
/* ========================================================================================== *** He Damage Multiplier *** author:  Nightscream msn:        <a href="mailto:[email protected]">[email protected]</a>         Version:    1.0 ========================================================================================== Credits:    VEN (helped me fix the deathmessage & frags)         Kleenex (helped me fix the deathmessage) ========================================================================================== ### Cvars ### amx_hemulti 1.0(normal)  this will multiplier the damage of the he grenade ========================================================================================== ### Modules ### Engine required Fun required ========================================================================================== ### Tested On ### Listen server | Condition zero | Windows XP | AMXX 1.71 ========================================================================================== ### Suggestions ### Got some suggestions post them in the topic or in pm me ========================================================================================== ### Changelog ### 1.0 Release */ #include <amxmodx> #include <amxmisc> #include <fun> #include <engine> #define PLUGINNAME  "He damage Multiplier" #define VERSION  "1.0" #define AUTHOR    "Nightscream" #define MAX_CZ_LENGHT   32 public plugin_init() {     register_plugin( PLUGINNAME, VERSION, AUTHOR )     register_cvar( "amx_hemulti", "1.00" );     register_event( "Damage", "hedmg", "be" ); } public hedmg( id ) {         new victim_id = id;     new dmg_take = read_data( 2 );     //new dmgtype = read_data( 3 );     new Float:multiplier = get_cvar_float( "amx_hemulti" );     new Float:damage = dmg_take * multiplier;     new health = get_user_health( victim_id )         new iWeapID, attacker_id = get_user_attacker( victim_id, iWeapID );         if( !is_user_connected( attacker_id ) || !is_user_alive( victim_id ) ) {         return PLUGIN_HANDLED     }         if( iWeapID == CSW_HEGRENADE ) {                             if( damage > health ) {             set_msg_block( get_user_msgid( "DeathMsg" ), BLOCK_ONCE )             user_kill(victim_id)                         message_begin( MSG_ALL, get_user_msgid( "DeathMsg" ),{ 0,0,0 },0 )             write_byte( attacker_id )             write_byte( victim_id )             write_byte( 0 )             write_string( "grenade" )             message_end()                         new frags = get_user_frags( attacker_id )             set_user_frags( attacker_id, frags+1 )                         return PLUGIN_CONTINUE         }         set_user_health( victim_id, health - floatround(damage) );     }         return PLUGIN_CONTINUE }
__________________
- Bye bye!
nightscreem 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 19:18.


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