AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Jailbreak Problem in ff of "gurad" (https://forums.alliedmods.net/showthread.php?t=242850)

Snitch 06-25-2014 18:39

Jailbreak Problem in ff of "gurad"
 
solved

Flick3rR 06-25-2014 18:44

Re: Jailbreak Problem in ff of "gurad"
 
So what is exactly the bug here? You didn't mention any problems. Is there really one, or you want something to be added?

Snitch 06-26-2014 01:31

Re: Jailbreak Problem in ff of "gurad"
 
Quote:

Originally Posted by Flick3rR (Post 2157354)
So what is exactly the bug here? You didn't mention any problems. Is there really one, or you want something to be added?

I said the problem is, when u choose box: on enable
Guard can kill another ct, i want to block it, if u can check tinto where is problem or add something to block

Or the problem come from box public, another code

aron9forever 06-26-2014 07:44

Re: Jailbreak Problem in ff of "gurad"
 
there's no hooking of attacks so it can't be from this plugin
for box to work, jail servers require ff to be on always and block attacks when box is off with , usually, ham_attack or takedamage.

That's what you gotta look for

Snitch 06-26-2014 11:42

Re: Jailbreak Problem in ff of "gurad"
 
Quote:

Originally Posted by aron9forever (Post 2157555)
there's no hooking of attacks so it can't be from this plugin
for box to work, jail servers require ff to be on always and block attacks when box is off with , usually, ham_attack or takedamage.

That's what you gotta look for

i got this in Box Code

can u explain wat problem here?
why Still guards can kill another Guards with HE and weapons?
Code:

    RegisterHam( Ham_TakeDamage, "player", "FwdTakeDamage_Pre", 0 );
PHP Code:

public FwdTakeDamage_PreiAttackeriVictimiInflictorFloat:fDamageiDmgBits )
{
    if ( !
is_user_connectediAttacker ) || !is_user_connectediVictim ) )
        return 
1;
    
    new 
CsTeams:iTeams];
    
    
iTeams] = cs_get_user_teamiAttacker );
    
    
iTeams] = cs_get_user_teamiVictim );
    
    if ( 
iTeams] == CS_TEAM_CT && iTeams] == iTeams] && g_pFriendlyFire )
        return 
4;
        
    return 
1;



Flick3rR 06-26-2014 14:07

Re: Jailbreak Problem in ff of "gurad"
 
This
PHP Code:

g_pFriendlyFire 

is undefined. But I guess it's the number of the cvar for the friendlyfire. The two other checks are enough, so I suggest you to remove this condition in the check:
PHP Code:

 && g_pFriendlyFire 


Snitch 06-26-2014 14:32

Re: Jailbreak Problem in ff of "gurad"
 
Quote:

Originally Posted by Flick3rR (Post 2157765)
This
PHP Code:

g_pFriendlyFire 

is undefined. But I guess it's the number of the cvar for the friendlyfire. The two other checks are enough, so I suggest you to remove this condition in the check:
PHP Code:

 && g_pFriendlyFire 


should i Remove
Code:

&& g_pFriendlyFire
:arrow:
PHP Code:

public FwdTakeDamage_PreiAttackeriVictimiInflictorFloat:fDamageiDmgBits )
{
    if ( !
is_user_connectediAttacker ) || !is_user_connectediVictim ) )
        return 
1;
    
    new 
CsTeams:iTeams];
    
    
iTeams] = cs_get_user_teamiAttacker );
    
    
iTeams] = cs_get_user_teamiVictim );
    
    if ( 
iTeams] == CS_TEAM_CT && iTeams] == iTeams] )
        return 
4;
        
    return 
1;


now ct cant kill others Ct with HE and weapons?

GuskiS 06-26-2014 15:25

Re: Jailbreak Problem in ff of "gurad"
 
Ham_TakeDamage will block only he grenades damage. To block weapons you need to use Ham_TraceAttack.

mottzi 06-26-2014 15:39

Re: Jailbreak Problem in ff of "gurad"
 
Since when would TakeDamage not block weapon damage?

GuskiS 06-26-2014 17:12

Re: Jailbreak Problem in ff of "gurad"
 
Quote:

Originally Posted by mottzi (Post 2157812)
Since when would TakeDamage not block weapon damage?

Sorry, miss spelled things. Indeed, TakeDamage block damage, but if you hook TraceAttack and block it, there won't be any blood, speed blocking etc. same as attacking teammate with FF off.


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

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