Raised This Month: $ Target: $400
 0% 

CSDM 2.1h and health over 100 problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
toader_octavian
Member
Join Date: Oct 2006
Location: Romania
Old 07-09-2007 , 12:35   CSDM 2.1h and health over 100 problem
Reply With Quote #1

For all the servers that use CSDM 2.1h itemmode together with a plugin that makes your health higher than 100 (ex: Superheromod/Warcraft/Runemod etc.).
When you pickup package containing weapons it will reset your life to 100 when you have over 100 health .
I found the problem in the csdm_itemmode.sma and fixed it:
Line 695:
Code:
value = get_user_health(ptd)
if (value + 15 < 100)
	set_pev(ptd, pev_health, float(value + 15))
else if (100 - value > 0)
	set_pev(ptd, pev_health, float(100))
I don't know if this bug is in CSDM 2.1.
__________________
I will be banned soon.
toader_octavian is offline
KWo
AMX Mod X Beta Tester
Join Date: Jul 2004
Location: Poland
Old 07-09-2007 , 14:55   Re: CSDM 2.1h and health over 100 problem
Reply With Quote #2

It's fixed by Simon Logic in 2.1i (not released yet).
__________________
The Fullpack of podbot mm V3B22 - 24 apr 2012!!! is available here.
The All-In-One 3.2a package - 02 jun 2013 (AMX X 1.8.2 [with ATAC 3.0.1b , CSDM2.1.3c beta, CM OE 0.6.5, podbot mm V3B22c and mm 1.20) is available here.
The newest Beta V3B23a (rel. 28 august 2018!!!) is available here.
KWo is offline
toader_octavian
Member
Join Date: Oct 2006
Location: Romania
Old 07-10-2007 , 02:29   Re: CSDM 2.1h and health over 100 problem
Reply With Quote #3

Ok!
__________________
I will be banned soon.
toader_octavian 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 20:38.


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