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

SetHamParamFloat Weird screen ^^


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 05-20-2009 , 09:02   SetHamParamFloat Weird screen ^^
Reply With Quote #1

So what is wrong here? I've tested and when I hit enemy with grenade screen goes very weird

PHP Code:
#define DMG_HEGRENADE (1<<24)

new g_hegrenade_rank[33]; 
PHP Code:
RegisterHam(Ham_TakeDamage"player""Fwd_PlayerDamaged"
PHP Code:
public Fwd_PlayerDamaged(idinflictorattackerdamagedamagebits)
{
    if ( !(
<= attacker <= g_iMaxPlayers) )
        return 
HAM_IGNORED;
    if( 
damagebits DMG_HEGRENADE && id != attacker && g_hegrenade_rank[attacker] == 1)
    {
        
SetHamParamFloat(4damage 3.0);
        return 
HAM_HANDLED;
    }
    return 
HAM_IGNORED;


Last edited by xbatista; 05-20-2009 at 09:22.
xbatista is offline
Send a message via Skype™ to xbatista
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 05-20-2009 , 09:20   Re: SetHamParamFloat Weird screen ^^
Reply With Quote #2

PHP Code:
public Fwd_PlayerDamaged(idinflictorattackerdamagedamagebits)

--->

public Fwd_PlayerDamaged(idinflictorattackerFloat:damagedamagebits
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 05-20-2009 , 09:25   Re: SetHamParamFloat Weird screen ^^
Reply With Quote #3

Again my stupid thinking...How I don't saw this :/
Btw Thanks
xbatista is offline
Send a message via Skype™ to xbatista
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 09:26.


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