Raised This Month: $ Target: $400
 0% 

Plugin Request: FAIR Mod


Post New Thread Reply   
 
Thread Tools Display Modes
terryjackson
Junior Member
Join Date: May 2007
Old 05-27-2007 , 09:00   Re: Plugin Request: FAIR Mod
Reply With Quote #11

lol thanks guys, the effort is much appriciated

so just to clarify id like the damage GIVEN to be modified, not the damage taken

And this might sound like a stupid question but in the Warcraft mod for HL I know some of the abilities you get for one of the races is for the damage increase....isnt there a way to just port that code over for something like this?
terryjackson is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 05-27-2007 , 13:54   Re: Plugin Request: FAIR Mod
Reply With Quote #12

Well, it may look like to the end user that it increases, but it actually sends out a completely separate damage msg.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
pRED*
Join Date: Dec 2006
Old 05-27-2007 , 16:10   Re: Plugin Request: FAIR Mod
Reply With Quote #13

I don't have time to look it up now but how does the blood mage natural ability thing work?
Because that is reduced damage..

Extra damage is easy.. Just check damage done, multiply by your factor and create some fakedamage. Reducing is harder without HS..
pRED* is offline
terryjackson
Junior Member
Join Date: May 2007
Old 05-27-2007 , 18:02   Re: Plugin Request: FAIR Mod
Reply With Quote #14

I just wiki-ed the WC3 mod and all the abilities related to damage are for increasing it, as you said, not decreasing....my mistake.
http://wc3mods.net/wiki/index.php?st...in_Information

But if increasing damage is easy shouldn't decreasing it be easy too? You said you would multiply the damage by some factor to increase it, so couldn't you just multiply the damage with a decimal factor to decrease it?

Unless it doesn't take float types......but if it did, couldn't you just multiply the damage by a factor of 0.5 to get half damage or something like that?

Then you would create the fakedamage and apply it?

But anyway if using HS will make your life easier then by all means go ahead and use it. I'm just greatful that someone is willing to give it a shot.
terryjackson is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 05-27-2007 , 19:04   Re: Plugin Request: FAIR Mod
Reply With Quote #15

I think this plugin should work, but for some reason I just can't get hamsandwich to load properly on my server. It says "ExecuteHam is not a native, check your modules.ini" or something like that. I got tired of fiddling with it so I didn't get to actually test this plugin.

Code:
#include <amxmodx> #include <hamsandwich> #include <cstrike> #define PLUGIN "Damage Equalizer" #define VERSION "1.0" #define AUTHOR "stupok69" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         RegisterHam(Ham_TakeDamage, "player", "player_hurt") } public player_hurt(this, idinflictor, idattacker, Float:damage, damagebits) {     if(is_user_alive(idattacker))     {         static Float:frags, Float:deaths                 frags = float(get_user_frags(idattacker))         deaths = float(cs_get_user_deaths(idattacker))                 if(frags <= 0.0) frags = 1.0         if(deaths <= 0.0) deaths = 1.0                 //If the attacker has a 2:1 ratio, he will deal %50 percent damage.         damage *= 1 / (frags / deaths)                 if(damage < 1.0) damage = 1.0                 ExecuteHam(Ham_TakeDamage, this, idinflictor, idattacker, Float:damage, damagebits)                 client_print(idattacker, print_chat, "You inflicted %f damage.", damage)                 return HAM_SUPERCEDE     }         return HAM_IGNORED }
stupok is offline
terryjackson
Junior Member
Join Date: May 2007
Old 05-29-2007 , 05:58   Re: Plugin Request: FAIR Mod
Reply With Quote #16

So then the ham sandwich thing didn't initialize properly? Then it wouldn't work since you need it to modify the damage right?
terryjackson is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 05-29-2007 , 11:44   Re: Plugin Request: FAIR Mod
Reply With Quote #17

The plugin I wrote will do exactly what you wanted. However, I didn't get the hamsandwich module to load properly on my server so I couldn't test the plugin.
stupok is offline
terryjackson
Junior Member
Join Date: May 2007
Old 05-31-2007 , 18:00   Re: Plugin Request: FAIR Mod
Reply With Quote #18

Sorry for sounding dense, but how can it work and do what i asked if the ham sandwich module didn't initialize? Don't you need it to create the fake damage thing?

Either way I am going to be purchasing a cz server (either friday or saturday) so I'll let you know if it worked or not.

Cheers.



EDIT:
Oh, lol, and please guide me (or link me to a tutorial) on how to load this plug into my server when I purchase it
terryjackson is offline
totopito
BANNED
Join Date: Apr 2007
Location: In Your Room
Old 10-19-2007 , 17:28   Re: Plugin Request: FAIR Mod
Reply With Quote #19

These eyes are my life, my service, the point in life is to search people and make them suffer, ill be in your room when you need me

Edit:
[IMG]http://img150.**************/img150/527/hahabanfo3.jpg[/IMG]

User was banned for this mindless spamming drivel...don't be like him. - Roach

Last edited by Roach; 10-19-2007 at 21:09.
totopito is offline
Send a message via MSN to totopito
Old 10-19-2007, 20:26
vvg125
This message has been deleted by Greentryst. Reason: reply to deleted post
Old 10-19-2007, 21:00
allenwr
This message has been deleted by Greentryst. Reason: reply to deleted post
Old 10-19-2007, 21:46
Drak
This message has been deleted by Greentryst. Reason: reply to deleted post
Old 10-20-2007, 03:31
allenwr
This message has been deleted by Greentryst. Reason: reply to deleted post
Roach
Writes love letters to sawce Daily
Join Date: Jul 2006
Location: Internet
Old 10-20-2007 , 12:25   Re: Plugin Request: FAIR Mod
Reply With Quote #20

Back on topic gentlemen....
__________________
Quote:
Originally Posted by Brad View Post
That sounds like a really good idea!
Now replace the word "good" with "dumb".
What was your rationale for proposing such a thing?
Roach 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 20:30.


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