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

[01/11/2010] MapBug - Health Fix (1hp,35hp,...)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 09-26-2010 , 14:25   [01/11/2010] MapBug - Health Fix (1hp,35hp,...)
Reply With Quote #1

Health Fix

Description:

This plugin is mainly made for knife servers.
On maps like 1hp_final, 35hp_wires the trigger_hurt sometimes doesnt work for some reason.
This plugin changes ur health if it doesn't match with the health you should have on that map.

Made because of This Topic

Changelog:

Code:
Version 1.4: Added falling down damage check
Version 1.3: Added support for 200hp maps
Version 1.2: Securty Check Added (Your health wont be fixed on maps without trigger_hurts (you fall down and get hurt, 1hp, 50hp,..)
Version 1.1: Little Changes
Version 1.0: Initial Release


Modules:

Hamsandwich
Fun

note: Sorry, this has not been tested by myself. Feedback please.
Attached Files
File Type: sma Get Plugin or Get Source (healthfix.sma - 1166 views - 2.0 KB)
__________________
I am out of order!

Last edited by grimvh2; 02-22-2011 at 13:00.
grimvh2 is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 09-26-2010 , 14:40   Re: [26/09/2010] Health Fix
Reply With Quote #2

- Don't register Ham_Spawn if it's NONE
- You should check if health bigger than given, because player could taken damage already (somehow )
- "Your" not "Ur"
__________________
xPaw is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 09-26-2010 , 14:46   Re: [26/09/2010] Health Fix
Reply With Quote #3

Thx

edit: done, thx for comment.

Quote:
Originally Posted by xPaw View Post
- You should check if health bigger than given, because player could taken damage already (somehow )
What exactly do you mean?
__________________
I am out of order!

Last edited by grimvh2; 09-26-2010 at 14:50.
grimvh2 is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 09-26-2010 , 15:01   Re: [26/09/2010] Health Fix
Reply With Quote #4

Quote:
Originally Posted by grimvh2 View Post
Thx

edit: done, thx for comment.



What exactly do you mean?
Remove if() from FwdPlayerSpawnPost

And i meant:
if(iHealth > iHealths[iMapType])
__________________
xPaw is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-26-2010 , 16:23   Re: [26/09/2010] Health Fix
Reply With Quote #5

You should :

- Change title (more descriptive)
- Make the detection more dynamic (with entities for example)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 09-26-2010 , 16:24   Re: [26/09/2010] Health Fix
Reply With Quote #6

Quote:
Originally Posted by ConnorMcLeod View Post
You should :

- Make the detection more dynamic (with entities for example)
You mean like checking for trigger_hurt ?
__________________
I am out of order!
grimvh2 is offline
avril-lavigne
Banned
Join Date: Apr 2009
Old 09-27-2010 , 12:23   Re: [26/09/2010] MapBug - Health Fix (1hp,35hp,...)
Reply With Quote #7

useful when humans from wc3 have over 100hp ... stupid
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-27-2010 , 15:10   Re: [26/09/2010] Health Fix
Reply With Quote #8

Quote:
Originally Posted by grimvh2 View Post
You mean like checking for trigger_hurt ?
Yes.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 09-27-2010 , 15:51   Re: [26/09/2010] MapBug - Health Fix (1hp,35hp,...)
Reply With Quote #9

Can you retrieve the damage that the trigger_hurt does? Don't know and can't find anything about it.
__________________
I am out of order!
grimvh2 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-28-2010 , 01:13   Re: [26/09/2010] MapBug - Health Fix (1hp,35hp,...)
Reply With Quote #10

Quote:
Originally Posted by grimvh2 View Post
Can you retrieve the damage that the trigger_hurt does? Don't know and can't find anything about it.
Then, make tests and dumps with some entity plugins tools.
Try to find solutions by yourself ;)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 16:16.


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