AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   CSDM (https://forums.alliedmods.net/forumdisplay.php?f=87)
-   -   CSDM 2.1h and health over 100 problem (https://forums.alliedmods.net/showthread.php?t=57694)

toader_octavian 07-09-2007 12:35

CSDM 2.1h and health over 100 problem
 
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.

KWo 07-09-2007 14:55

Re: CSDM 2.1h and health over 100 problem
 
It's fixed by Simon Logic in 2.1i (not released yet).

toader_octavian 07-10-2007 02:29

Re: CSDM 2.1h and health over 100 problem
 
Ok!:up:


All times are GMT -4. The time now is 20:36.

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