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

[KZ] Silent Healer


Post New Thread Reply   
 
Thread Tools Display Modes
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 09-07-2008 , 03:49   Re: Kreedz - Silent Healer
Reply With Quote #21

Miczu, i think just better remove sound, isnt better than func_door
__________________
xPaw is offline
Miczu
Member
Join Date: Jul 2007
Old 09-07-2008 , 04:00   Re: Kreedz - Silent Healer
Reply With Quote #22

@xPaw
Altering entity data: one per entity (it could be 1-4 times)
Blocking sound: one per single heal (it could be x0-x000 times)+checks by other sounds.
__________________
Entity Lab - ultimate entity data source
Miczu is offline
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 09-07-2008 , 06:42   Re: Kreedz - Silent Healer
Reply With Quote #23

just to help you... actually healingDOORS is the name of all default healers kreedz included in his timer prefab for kz maps. he included some kind of a box and buttons... they look different but both way use func_doors with an dmg-kvd value which is lesser than 0.
those buttons are trigger_multiple which trigger a func_door above them to move down whenever the palyer pushes it and player will get hp cuz the doors will do -10000 dmg on block -> heal. the healtbox just moves down the doors when you walk through it...
should be enough to find the func_doors easily, as i said the kvd value you might need is "dmg" ^^
hf

edit:
i wont give you any code since Miczu is correct... i would have created 99% of the plugin xD
__________________

Last edited by SchlumPF*; 09-08-2008 at 00:40.
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
Miczu
Member
Join Date: Jul 2007
Old 09-07-2008 , 07:13   Re: Kreedz - Silent Healer
Reply With Quote #24

Img

@SchlumPF* whith your info it's easy to detect which func_door is healing
__________________
Entity Lab - ultimate entity data source
Miczu is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 09-07-2008 , 12:50   Re: Kreedz - Silent Healer
Reply With Quote #25

there is a default 1 , but there are also other kinds of healers
__________________
I am out of order!
grimvh2 is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 09-07-2008 , 14:19   Re: Kreedz - Silent Healer
Reply With Quote #26

grimvh2 show me these healers pls
__________________
xPaw is offline
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 09-08-2008 , 00:39   Re: Kreedz - Silent Healer
Reply With Quote #27

download the xj mapping pack, it includes a prefab of the timer and the common healers which are used. but be sure you ungroup the entitys to see every single component ^^
__________________
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-08-2008 , 00:59   Re: Kreedz - Silent Healer
Reply With Quote #28

If x-olent code doesn't work, try hooking FM_KeyValue forward.
Filter with KV_KeyName "dmg"
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
sreddoMlabolG
BANNED
Join Date: Aug 2008
Location: +Karma If I helped you i
Old 09-27-2008 , 23:10   Re: [Kreedz] Silent Healer
Reply With Quote #29

Good job xPaw , +Karma
sreddoMlabolG is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 09-28-2008 , 17:23   Re: [Kreedz] Silent Healer
Reply With Quote #30

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

#define PLUGIN "block sounds AIO"
#define VERSION "1.0"
#define AUTHOR "unknow"

new Fallsound
new Watersound
new Healthboxsound
new Radiosound

public plugin_init() {
    
    
register_plugin(PLUGINVERSIONAUTHOR);
        
register_forward(FM_EmitSound,"ForwardEmitSound")
    
register_forward(FM_EmitSound"EmitSound");
        
Fallsound register_cvar("bs_Fallsound","0")
        
Watersound register_cvar("bs_Watersound","0")
        
Healthboxsound register_cvar("bs_Healthboxsound","0")
        
Radiosound register_cvar("bs_Radiosound","0")

        
register_clcmd"radio1","soundblock")
      
register_clcmd"radio2","soundblock")
     
register_clcmd"radio3","soundblock")
        
register_clcmd"coverme","soundblock")
        
register_clcmd"takepoint","soundblock")
        
register_clcmd"holdpos","soundblock")
        
register_clcmd"regroup","soundblock")
        
register_clcmd"followme","soundblock")
        
register_clcmd"takingfire","soundblock")
        
register_clcmd"go","soundblock")
        
register_clcmd"fallback","soundblock")
        
register_clcmd"sticktog","soundblock")
        
register_clcmd"getinpos","soundblock")
        
register_clcmd"stormfront","soundblock")
        
register_clcmd"report","soundblock")
        
register_clcmd"roger","soundblock")
        
register_clcmd"enemyspot","soundblock")
        
register_clcmd"needbackup","soundblock")
        
register_clcmd"sectorclear","soundblock")
        
register_clcmd"inposition","soundblock")
        
register_clcmd"reportingin","soundblock")
        
register_clcmd"getout","soundblock")
        
register_clcmd"negative","soundblock")
        
register_clcmd"enemydown","soundblock")
}

public 
ForwardEmitSound(id,Channel,const Sample[])
{
    if(
containi(Sample,"die") != -&& is_user_connected(id))
        return 
FMRES_SUPERCEDE

    
return FMRES_IGNORED
}

public 
EmitSound(entitychannel, const sound[])
{
    if(
pev_valid(entity))
    {
        if(
get_pcvar_num(Fallsound) == 0
        {
            if(
contain(sound"player/pl_pain2.wav")!=-1)
            {
                return 
FMRES_SUPERCEDE;
            }
            if(
contain(sound"player/pl_pain3.wav")!=-1)
            {
                return 
FMRES_SUPERCEDE;
            }
            if(
contain(sound"player/pl_pain4.wav")!=-1)
            {
                return 
FMRES_SUPERCEDE;
            }
            if(
contain(sound"player/pl_pain5.wav")!=-1)
            {
                return 
FMRES_SUPERCEDE;
            }
            if(
contain(sound"player/pl_pain6.wav")!=-1)
            {
                return 
FMRES_SUPERCEDE;
            }
            if(
contain(sound"player/pl_pain7.wav")!=-1)
            {
                return 
FMRES_SUPERCEDE;
            }
            if(
contain(sound"player/bhit_kevlar-1.wav")!=-1)
            {
                return 
FMRES_SUPERCEDE;
            }
            if(
contain(sound"player/bhit_flesh-1.wav")!=-1)
            {
                return 
FMRES_SUPERCEDE;
            }
            if(
contain(sound"player/bhit_flesh-2.wav")!=-1)
            {
                return 
FMRES_SUPERCEDE;
            }
            if(
contain(sound"player/bhit_flesh-3.wav")!=-1)
            {
                return 
FMRES_SUPERCEDE;
            }
        }
        if(
get_pcvar_num(Watersound) == 0
        {
            if(
contain(sound"player/pl_swim1.wav")!=-1)
            {
                return 
FMRES_SUPERCEDE;
            }
    
            if(
contain(sound"player/pl_swim2.wav")!=-1)
            {
                return 
FMRES_SUPERCEDE;
            }
    
            if(
contain(sound"player/pl_swim3.wav")!=-1)
            {
                return 
FMRES_SUPERCEDE;
            }
    
            if(
contain(sound"player/pl_swim4.wav")!=-1)
            {
                return 
FMRES_SUPERCEDE;
            }

            if(
contain(sound"player/waterrun.wav")!=-1)
            {
                return 
FMRES_SUPERCEDE;
            }
        }

        if(
get_pcvar_num(Healthboxsound) == 0
        {
            if(
contain(sound"doors/doorstop1")!=-1)
            {
                return 
FMRES_SUPERCEDE;
            }
            if(
contain(sound"doors/doorstop2")!=-1)
            {
                return 
FMRES_SUPERCEDE;
            }
            if(
contain(sound"doors/doorstop3")!=-1)
            {
                return 
FMRES_SUPERCEDE;
            }
        }
        



    }
    return 
FMRES_IGNORED;
}

public 
soundblock(id)
{
    if(
get_pcvar_num(Radiosound) == 0
    {

        return 
PLUGIN_HANDLED    
        
    
}
    return 
PLUGIN_CONTINUE;

}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1031\\ f0\\ fs16 \n\\ par }
*/ 
credits:

SlaYer
Hawk552
Emp`
Alucard^ is offline
Send a message via Skype™ to Alucard^
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:02.


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