AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Remove effect of blood [SOLVED] (https://forums.alliedmods.net/showthread.php?t=87376)

L// 03-10-2009 19:07

Remove effect of blood [SOLVED]
 
Hi guys...

How can I remove or render invisible the effect of blood when one is attacked?

(Use Ham module plz :wink:)

L// 03-10-2009 19:31

Re: Remove effect of blood [SOLVED]
 
Solved

PHP Code:

public fw_bloodcolor(id)
{
    
SetHamReturnInteger(-1)
    return 
HAM_SUPERCEDE 



Arkshine 03-10-2009 19:32

Re: Remove effect of blood
 
Try :

Code:
    #include <amxmodx>     #include <hamsandwich>         public plugin_init()     {         register_plugin( "Remove Blood", "1.0.0", "Arkshine" );         RegisterHam( Ham_BloodColor, "player", "Forward_BloodColor" );     }         public Forward_BloodColor ( const Client )     {         SetHamReturnInteger(-1);         return HAM_SUPERCEDE;     }

EDIT : Ah, you found alone. ;)

Hunter-Digital 03-11-2009 07:14

Re: Remove effect of blood [SOLVED]
 
is there a fakemeta way to do this ? :-? I don't want to include ham just for that :}

Exolent[jNr] 03-11-2009 07:41

Re: Remove effect of blood [SOLVED]
 
Quote:

Originally Posted by Hunter-Digital (Post 778352)
I don't want to include ham just for that :}

Why not? It does exactly what you want quite efficiently.

Arkshine 03-11-2009 07:51

Re: Remove effect of blood [SOLVED]
 
It's probably possible to use the offset m_bloodColor ( 89 ) and to set it to -1. But I don't know if setting one time is enough or setting before each shot. Try yourself.

But yeah, Ham would be more efficient.

Hunter-Digital 03-11-2009 08:55

Re: Remove effect of blood [SOLVED]
 
Okay... the "client" variable is the player ID of wich the blood flies from ?

anakin_cstrike 03-11-2009 10:06

Re: Remove effect of blood [SOLVED]
 
Quote:

Originally Posted by Hunter-Digital (Post 778415)
Okay... the "client" variable is the player ID of wich the blood flies from ?

Yes.


All times are GMT -4. The time now is 08:50.

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