View Single Post
G-Dog
Senior Member
Join Date: Dec 2005
Location: Thunderstorm Central
Old 09-10-2012 , 08:02   Re: Hero: Danimoth X
Reply With Quote #31

Quote:
Originally Posted by wsupbetch View Post
Can anyone help me:

1. Sometimes my teammates go invisible, but most likely rarely happens. (usually original CS models go invisible, but when combined with scream, soldier, hmg, it doesn't)

2. When another teammate of mine has the same skill, it makes an annoying sound that has a message "You are De-Cloaked" when i'm not even in range of the person that has danimoth at all.

Able to fix anyone????
for the first, that should happen if your teammates get within "danimoth_radius" distance of you, set to -1 to disable that aspect. for the second issue replace
PHP Code:
public DanimothCloak(id)
{
    new 
distanceBetween
    
new origin[3]
    
get_user_origin(id,origin)
    
    for(new 
team 1team <= SH_MAXSLOTSteam++){
        if( 
is_user_alive(team) && ( get_user_team(id) == get_user_team(team)) && gIsInvisible[team] == ){
            new 
origin1[3]
            
get_user_origin(team,origin1)
        
            
distanceBetween get_distance(originorigin1 )
            if( 
distanceBetween get_pcvar_num(pCvarCloakRadius) ){
                
emit_sound(idCHAN_STATIC"shmod/danimoth_cloak.wav"VOL_NORMATTN_NORM0PITCH_NORM)
                
emit_sound(teamCHAN_STATIC"shmod/danimoth_cloak.wav"VOL_NORMATTN_NORM0PITCH_NORM)
                
DanimothInvisibility(teamget_pcvar_num(pCvarCloakPercent))
                
gIsInvisible[team] = 1
            
}
        }
    }     
}
//----------------------------------------------------------------------------------------------
public DanimothDeCloak(id)
{
    new 
distanceBetween
    
new origin[3]
    
get_user_origin(id,origin)
    
    for(new 
team 1team <= SH_MAXSLOTSteam++){
        if( 
is_user_alive(team) && ( get_user_team(id) == get_user_team(team)) && gIsInvisible[team] == ){
            new 
origin1[3]
            
get_user_origin(team,origin1)
            
            
distanceBetween get_distance(originorigin1 )
            if( 
distanceBetween get_pcvar_num(pCvarCloakRadius) ){
                
shUnglow(team)
                
client_print(team,print_center,"[SH]Danimoth: You are De-cloaked")
                
gIsInvisible[team] = 0
            
}
        }
    }      

with
PHP Code:
public DanimothCloak(id)
{
    new 
distanceBetweenidteamalpharadius 
    
new origin[3], origin1[3]
    
get_user_origin(id,origin)
    
idteam get_user_team(id)
    
alpharadius get_pcvar_num(pCvarCloakRadius)
    
    for(new 
team 1team <= SH_MAXSLOTSteam++){
        if ( 
team == id ) continue;
        if( 
is_user_alive(team) && ( idteam == get_user_team(team)) && gIsInvisible[team] == ){
            
get_user_origin(team,origin1)
        
            
distanceBetween get_distance(originorigin1 )
            if( 
distanceBetween alpharadius  ){
                
emit_sound(idCHAN_STATIC"shmod/danimoth_cloak.wav"VOL_NORMATTN_NORM0PITCH_NORM)
                
emit_sound(teamCHAN_STATIC"shmod/danimoth_cloak.wav"VOL_NORMATTN_NORM0PITCH_NORM)
                
DanimothInvisibility(teamget_pcvar_num(pCvarCloakPercent))
                
gIsInvisible[team] = 1
            
}
        }
    }     
}
//----------------------------------------------------------------------------------------------
public DanimothDeCloak(id)
{
    new 
distanceBetweenidteamalpharadius
    
new origin[3], origin1[3]
    
get_user_origin(id,origin)
    
idteam get_user_team(id
    
alpharadius get_pcvar_num(pCvarCloakRadius)
    
    for(new 
team 1team <= SH_MAXSLOTSteam++){
        if ( 
team == id ) continue;
        if( 
is_user_alive(team) && ( idteam == get_user_team(team)) && gIsInvisible[team] == ){
            
get_user_origin(team,origin1)
            
            
distanceBetween get_distance(originorigin1 )
            if( 
distanceBetween alpharadius ){
                
shUnglow(team)
                
client_print(team,print_center,"[SH]Danimoth: You are De-cloaked")
                
gIsInvisible[team] = 0
            
}
        }
    }      

__________________
If at first you don't succeed, then skydiving isn't for you.

Last edited by G-Dog; 09-10-2012 at 08:09. Reason: trying to alter code directly in browser can get confusing
G-Dog is offline
Send a message via AIM to G-Dog